[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / ARM / arm-trustzone.s
blob5ab27b58dfe1e3fa3da65e72064865bd81d4481e
1 @ RUN: not llvm-mc -triple=armv7-apple-darwin -mcpu=cortex-a8 -show-encoding -mattr=-trustzone < %s | FileCheck %s -check-prefix=NOTZ
2 @ RUN: llvm-mc -triple=armv7-apple-darwin -mcpu=cortex-a8 -show-encoding -mattr=trustzone < %s | FileCheck %s -check-prefix=TZ
3 @ RUN: llvm-mc -triple=armv6kz -mcpu=arm1176jz-s -show-encoding < %s | FileCheck %s -check-prefix=TZ
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 smi #0xf @ SMI is old (ARMv6KZ) name for SMC
19 smceq #0
21 @ NOTZ-NOT: smc #15
22 @ NOTZ-NOT: smceq #0
23 @ TZ: smc #15 @ encoding: [0x7f,0x00,0x60,0xe1]
24 @ TZ: smceq #0 @ encoding: [0x70,0x00,0x60,0x01]