brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.2 KiB · 53b7b91 Raw
67 lines · plain
1@ RUN: llvm-mc -triple=thumbv8r-apple-darwin -mcpu=cortex-r52 -show-encoding < %s | FileCheck %s2@ RUN: llvm-mc -triple=thumbv8r-apple-darwin -mcpu=cortex-r52plus -show-encoding < %s | FileCheck %s3@ RUN: llvm-mc -triple=thumbv7-apple-darwin -show-encoding < %s | FileCheck %s4@ RUN: llvm-mc -triple=thumbv6-apple-darwin -mcpu=cortex-m0 -show-encoding < %s | FileCheck %s 5@ RUN: not llvm-mc -triple=thumbv6-apple-darwin -show-encoding < %s > %t 2> %t26@ RUN: FileCheck %s --check-prefix=CHECK-EVIL-PRE-UAL < %t7@ RUN: FileCheck %s --check-prefix CHECK-ERROR < %t28 9  .syntax unified10 11        nop12        yield13        wfe14        wfi15        sev16@ CHECK: nop                            @ encoding: [0x00,0xbf]17@ CHECK: yield                          @ encoding: [0x10,0xbf]18@ CHECK: wfe                            @ encoding: [0x20,0xbf]19@ CHECK: wfi                            @ encoding: [0x30,0xbf]20@ CHECK: sev                            @ encoding: [0x40,0xbf]21 22@ CHECK-EVIL-PRE-UAL: mov r8, r8                     @ encoding: [0xc0,0x46]23 24        dmb sy25        dmb26        dsb sy27        dsb28        isb sy29        isb30@ CHECK: dmb	sy                      @ encoding: [0xbf,0xf3,0x5f,0x8f]31@ CHECK: dmb	sy                      @ encoding: [0xbf,0xf3,0x5f,0x8f]32@ CHECK: dsb	sy                      @ encoding: [0xbf,0xf3,0x4f,0x8f]33@ CHECK: dsb	sy                      @ encoding: [0xbf,0xf3,0x4f,0x8f]34@ CHECK: isb	sy                      @ encoding: [0xbf,0xf3,0x6f,0x8f]35@ CHECK: isb	sy                      @ encoding: [0xbf,0xf3,0x6f,0x8f]36 37 38@ CHECK-ERROR: error: instruction requires: armv6m or armv6t239@ CHECK-ERROR-NEXT: yield40 41@ CHECK-ERROR: error: instruction requires: armv6m or armv6t242@ CHECK-ERROR-NEXT: wfe43 44@ CHECK-ERROR: error: instruction requires: armv6m or armv6t245@ CHECK-ERROR-NEXT: wfi46 47@ CHECK-ERROR: error: instruction requires: armv6m or armv6t248@ CHECK-ERROR-NEXT: sev49 50@ CHECK-ERROR: error:51@ CHECK-ERROR-NEXT: dmb sy52 53@ CHECK-ERROR: error: instruction requires: data-barriers54@ CHECK-ERROR-NEXT: dmb55 56@ CHECK-ERROR: error:57@ CHECK-ERROR-NEXT: dsb sy58 59@ CHECK-ERROR: error: instruction requires: data-barriers60@ CHECK-ERROR-NEXT: dsb61 62@ CHECK-ERROR: error:63@ CHECK-ERROR-NEXT: isb sy64 65@ CHECK-ERROR: error: instruction requires: data-barriers66@ CHECK-ERROR-NEXT: isb67