Home | History | Annotate | Download | only in ARM
      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
      4 
      5   .syntax unified
      6   .globl _func
      7 
      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
     10 
     11 _func:
     12 @ CHECK: _func
     13 
     14 
     15 @------------------------------------------------------------------------------
     16 @ SMC
     17 @------------------------------------------------------------------------------
     18         smc #0xf
     19         ite eq
     20         smceq #0
     21 
     22 @ NOTZ-NOT: smc 	#15
     23 @ NOTZ-NOT: smceq	#0
     24 @ TZ: smc	#15                     @ encoding: [0xff,0xf7,0x00,0x80]
     25 @ TZ: ite	eq                      @ encoding: [0x0c,0xbf]
     26 @ TZ: smceq	#0                      @ encoding: [0xf0,0xf7,0x00,0x80]
     27