brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.3 KiB · 53ebff2 Raw
54 lines · plain
1@ RUN: llvm-mc -triple=thumbv7em -show-encoding < %s | FileCheck %s2@ RUN: not llvm-mc -triple=thumbv7m -show-encoding 2>&1 < %s | FileCheck --check-prefix=CHECK-V7M %s3 4  .syntax unified5 6@ Check that the assembler can handle the documented syntax from the ARM ARM.7@ These tests test instruction encodings specific to ARMv7E-M.8 9@------------------------------------------------------------------------------10@ MSR11@------------------------------------------------------------------------------12 13        msr  apsr_g, r014        msr  apsr_nzcvqg, r015        msr  iapsr_g, r016        msr  iapsr_nzcvqg, r017        msr  eapsr_g, r018        msr  eapsr_nzcvqg, r019        msr  xpsr_g, r020        msr  xpsr_nzcvqg, r021 22@ CHECK: msr	apsr_g, r0              @ encoding: [0x80,0xf3,0x00,0x84]23@ CHECK: msr	apsr_nzcvqg, r0         @ encoding: [0x80,0xf3,0x00,0x8c]24@ CHECK: msr	iapsr_g, r0             @ encoding: [0x80,0xf3,0x01,0x84]25@ CHECK: msr	iapsr_nzcvqg, r0        @ encoding: [0x80,0xf3,0x01,0x8c]26@ CHECK: msr	eapsr_g, r0             @ encoding: [0x80,0xf3,0x02,0x84]27@ CHECK: msr	eapsr_nzcvqg, r0        @ encoding: [0x80,0xf3,0x02,0x8c]28@ CHECK: msr	xpsr_g, r0              @ encoding: [0x80,0xf3,0x03,0x84]29@ CHECK: msr	xpsr_nzcvqg, r0         @ encoding: [0x80,0xf3,0x03,0x8c]30@ CHECK-V7M: error: invalid operand for instruction31@ CHECK-V7M-NEXT:         msr  apsr_g, r032@ CHECK-V7M-NEXT:              ^33@ CHECK-V7M: error: invalid operand for instruction34@ CHECK-V7M-NEXT:         msr  apsr_nzcvqg, r035@ CHECK-V7M-NEXT:              ^36@ CHECK-V7M: error: invalid operand for instruction37@ CHECK-V7M-NEXT:         msr  iapsr_g, r038@ CHECK-V7M-NEXT:              ^39@ CHECK-V7M: error: invalid operand for instruction40@ CHECK-V7M-NEXT:         msr  iapsr_nzcvqg, r041@ CHECK-V7M-NEXT:              ^42@ CHECK-V7M: error: invalid operand for instruction43@ CHECK-V7M-NEXT:         msr  eapsr_g, r044@ CHECK-V7M-NEXT:              ^45@ CHECK-V7M: error: invalid operand for instruction46@ CHECK-V7M-NEXT:         msr  eapsr_nzcvqg, r047@ CHECK-V7M-NEXT:              ^48@ CHECK-V7M: error: invalid operand for instruction49@ CHECK-V7M-NEXT:         msr  xpsr_g, r050@ CHECK-V7M-NEXT:              ^51@ CHECK-V7M: error: invalid operand for instruction52@ CHECK-V7M-NEXT:         msr  xpsr_nzcvqg, r053@ CHECK-V7M-NEXT:              ^54