brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.1 KiB · d9eaa5a Raw
89 lines · plain
1@ RUN: not llvm-mc -triple=armv6 -show-encoding < %s > %t1 2> %t22@ RUN: FileCheck --check-prefix=CHECK-V6 %s < %t13@ RUN: FileCheck --check-prefix=CHECK-ERROR-V6 %s < %t24@ RUN: llvm-mc -triple=armv6k -show-encoding < %s \5@ RUN:     | FileCheck --check-prefix=CHECK-ARM %s6@ RUN: llvm-mc -triple=armv6t2 -show-encoding < %s \7@ RUN:     | FileCheck --check-prefix=CHECK-ARM %s8@ RUN: not llvm-mc -triple=thumb -mcpu=arm1156t2-s -show-encoding < %s > %t3 2> %t49@ RUN: FileCheck --check-prefix=CHECK-THUMB %s < %t310@ RUN: FileCheck --check-prefix=CHECK-ERROR-THUMB %s < %t411@ RUN: not llvm-mc -triple=armv6m -show-encoding < %s > %t5 2> %t612@ RUN: FileCheck --check-prefix=CHECK-V6M %s < %t513@ RUN: FileCheck --check-prefix=CHECK-ERROR-V6M %s < %t614 15  .syntax unified16 17@------------------------------------------------------------------------------18@ YIELD/WFE/WFI/SEV/CLREX - are not supported pre v6K19@------------------------------------------------------------------------------20        nop21        yield22        wfe23        wfi24        sev25        clrex26 27 28@------------------------------------------------------------------------------29@ v6 using ARM encoding30@------------------------------------------------------------------------------31@ CHECK-V6: mov	r0, r0                  @ encoding: [0x00,0x00,0xa0,0xe1]32@ CHECK-ERROR-V6: error: instruction requires: armv6k33@ CHECK-ERROR-V6: yield34@ CHECK-ERROR-V6: ^35@ CHECK-ERROR-V6: error: instruction requires: armv6k36@ CHECK-ERROR-V6: wfe37@ CHECK-ERROR-V6: ^38@ CHECK-ERROR-V6: error: instruction requires: armv6k39@ CHECK-ERROR-V6: wfi40@ CHECK-ERROR-V6: error: instruction requires: armv6k41@ CHECK-ERROR-V6: sev42@ CHECK-ERROR-V6: ^43@ CHECK-ERROR-V6: error: instruction requires: armv6k44@ CHECK-ERROR-V6: clrex45@ CHECK-ERROR-V6: ^46 47@------------------------------------------------------------------------------48@ v6K using ARM encoding49@------------------------------------------------------------------------------50@------------------------------------------------------------------------------51@ v6T2 using ARM encoding (arm triple)52@------------------------------------------------------------------------------53@ CHECK-ARM: nop                             @ encoding: [0x00,0xf0,0x20,0xe3]54@ CHECK-ARM: yield                           @ encoding: [0x01,0xf0,0x20,0xe3]55@ CHECK-ARM: wfe                             @ encoding: [0x02,0xf0,0x20,0xe3]56@ CHECK-ARM: wfi                             @ encoding: [0x03,0xf0,0x20,0xe3]57@ CHECK-ARM: sev                             @ encoding: [0x04,0xf0,0x20,0xe3]58@ CHECK-ARM: clrex                           @ encoding: [0x1f,0xf0,0x7f,0xf5]59 60@------------------------------------------------------------------------------61@ v6T2 using THUMB encoding (thumb triple)62@------------------------------------------------------------------------------63@ CHECK-THUMB: nop                             @ encoding: [0x00,0xbf]64@ CHECK-THUMB: yield                           @ encoding: [0x10,0xbf]65@ CHECK-THUMB: wfe                             @ encoding: [0x20,0xbf]66@ CHECK-THUMB: wfi                             @ encoding: [0x30,0xbf]67@ CHECK-THUMB: sev                             @ encoding: [0x40,0xbf]68@ CHECK-ERROR-THUMB: error: invalid instruction, any one of the following would fix this:69@ CHECK-ERROR-THUMB: clrex70@ CHECK-ERROR-THUMB: ^71@ CHECK-ERROR-THUMB: note: instruction requires: v7 clrex72@ CHECK-ERROR-THUMB: clrex73@ CHECK-ERROR-THUMB: ^74@ CHECK-ERROR-THUMB: note: instruction requires: arm-mode75@ CHECK-ERROR-THUMB: clrex76@ CHECK-ERROR-THUMB: ^77 78@------------------------------------------------------------------------------79@ v6M using THUMB encoding80@------------------------------------------------------------------------------81@ CHECK-V6M: nop                             @ encoding: [0x00,0xbf]82@ CHECK-V6M: yield                           @ encoding: [0x10,0xbf]83@ CHECK-V6M: wfe                             @ encoding: [0x20,0xbf]84@ CHECK-V6M: wfi                             @ encoding: [0x30,0xbf]85@ CHECK-V6M: sev                             @ encoding: [0x40,0xbf]86@ CHECK-ERROR-V6M: error: instruction requires: v7 clrex87@ CHECK-ERROR-V6M: clrex88@ CHECK-ERROR-V6M: ^89