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
4  .syntax unified
5  .globl _func
6
7@ Check that the assembler processes SMC instructions when TrustZone support is
8@ active and that it rejects them when this feature is not enabled
9
10_func:
11@ CHECK: _func
12
13
14@------------------------------------------------------------------------------
15@ SMC
16@------------------------------------------------------------------------------
17        smc #0xf
18        smceq #0
19
20@ NOTZ-NOT: smc 	#15
21@ NOTZ-NOT: smceq	#0
22@ TZ: smc	#15                     @ encoding: [0x7f,0x00,0x60,0xe1]
23@ TZ: smceq	#0                      @ encoding: [0x70,0x00,0x60,0x01]
24
25