[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / ARM / arm-thumb-trustzone.s
blobde38c7f15e0924795e039b088567e646a1320c64
1 @ RUN: not llvm-mc -triple=thumbv7-apple-darwin -mcpu=cortex-a8 -show-encoding -mattr=-trustzone < %s | FileCheck %s -check-prefix=NOTZ
2 @ RUN: llvm-mc -triple=thumbv7-apple-darwin -mcpu=cortex-a8 -show-encoding -mattr=trustzone < %s | FileCheck %s -check-prefix=TZ
3 @ RUN: not llvm-mc -triple=thumbv6kz -mcpu=arm1176jzf-s -show-encoding < %s | FileCheck %s -check-prefix=NOTZ
5 .syntax unified
6 .globl _func
8 @ Check that the assembler processes SMC instructions when TrustZone support is
9 @ active and that it rejects them when this feature is not enabled
11 _func:
12 @ CHECK: _func
15 @------------------------------------------------------------------------------
16 @ SMC
17 @------------------------------------------------------------------------------
18 smc #0xf
19 it eq
20 smceq #0
22 @ NOTZ-NOT: smc #15
23 @ NOTZ-NOT: smceq #0
24 @ TZ: smc #15 @ encoding: [0xff,0xf7,0x00,0x80]
25 @ TZ: it eq @ encoding: [0x08,0xbf]
26 @ TZ: smceq #0 @ encoding: [0xf0,0xf7,0x00,0x80]