83 lines · plain
1# RUN: llvm-mc -triple=xtensa -mattr=+highpriinterrupts,+highpriinterrupts-level7 -disassemble %s | FileCheck -check-prefixes=CHECK-HPINTERRUPTS %s2# RUN: not llvm-mc -triple=xtensa -disassemble %s 2>&1 | FileCheck --implicit-check-not=warning: -check-prefixes=CHECK-CORE %s3 4## Verify that binary code is correctly disassembled with5## Xtensa highpriinterrupts option enabled. Also verify that dissasembling without6## Xtensa highpriinterrupts option generates warnings.7 8[0x10,0x31,0x00]9# CHECK-HPINTERRUPTS: rfi 110# CHECK-CORE: [[#@LINE-2]]:2: warning: invalid instruction encoding11 12[0x20,0xb2,0x61]13#CHECK-HPINTERRUPTS: xsr a2, epc214#CHECK-CORE: [[#@LINE-2]]:2: warning: invalid instruction encoding15 16[0x20,0xb3,0x61]17#CHECK-HPINTERRUPTS: xsr a2, epc318#CHECK-CORE: [[#@LINE-2]]:2: warning: invalid instruction encoding19 20[0x20,0xb4,0x61]21#CHECK-HPINTERRUPTS: xsr a2, epc422#CHECK-CORE: [[#@LINE-2]]:2: warning: invalid instruction encoding23 24[0x20,0xb5,0x61]25#CHECK-HPINTERRUPTS: xsr a2, epc526#CHECK-CORE: [[#@LINE-2]]:2: warning: invalid instruction encoding27 28[0x20,0xb6,0x61]29#CHECK-HPINTERRUPTS: xsr a2, epc630#CHECK-CORE: [[#@LINE-2]]:2: warning: invalid instruction encoding31 32[0x20,0xb7,0x61]33#CHECK-HPINTERRUPTS: xsr a2, epc734#CHECK-CORE: [[#@LINE-2]]:2: warning: invalid instruction encoding35 36[0x20,0xc2,0x61]37#CHECK-HPINTERRUPTS: xsr a2, eps238#CHECK-CORE: [[#@LINE-2]]:2: warning: invalid instruction encoding39 40[0x20,0xc3,0x61]41#CHECK-HPINTERRUPTS: xsr a2, eps342#CHECK-CORE: [[#@LINE-2]]:2: warning: invalid instruction encoding43 44[0x20,0xc4,0x61]45#CHECK-HPINTERRUPTS: xsr a2, eps446#CHECK-CORE: [[#@LINE-2]]:2: warning: invalid instruction encoding47 48[0x20,0xc5,0x61]49#CHECK-HPINTERRUPTS: xsr a2, eps550#CHECK-CORE: [[#@LINE-2]]:2: warning: invalid instruction encoding51 52[0x20,0xc6,0x61]53#CHECK-HPINTERRUPTS: xsr a2, eps654#CHECK-CORE: [[#@LINE-2]]:2: warning: invalid instruction encoding55 56[0x20,0xc7,0x61]57#CHECK-HPINTERRUPTS: xsr a2, eps758#CHECK-CORE: [[#@LINE-2]]:2: warning: invalid instruction encoding59 60[0x20,0xd2,0x61]61#CHECK-HPINTERRUPTS: xsr a2, excsave262#CHECK-CORE: [[#@LINE-2]]:2: warning: invalid instruction encoding63 64[0x20,0xd3,0x61]65#CHECK-HPINTERRUPTS: xsr a2, excsave366#CHECK-CORE: [[#@LINE-2]]:2: warning: invalid instruction encoding67 68[0x20,0xd4,0x61]69#CHECK-HPINTERRUPTS: xsr a2, excsave470#CHECK-CORE: [[#@LINE-2]]:2: warning: invalid instruction encoding71 72[0x20,0xd5,0x61]73#CHECK-HPINTERRUPTS: xsr a2, excsave574#CHECK-CORE: [[#@LINE-2]]:2: warning: invalid instruction encoding75 76[0x20,0xd6,0x61]77#CHECK-HPINTERRUPTS: xsr a2, excsave678#CHECK-CORE: [[#@LINE-2]]:2: warning: invalid instruction encoding79 80[0x20,0xd7,0x61]81#CHECK-HPINTERRUPTS: xsr a2, excsave782#CHECK-CORE: [[#@LINE-2]]:2: warning: invalid instruction encoding83