brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · de38c7f Raw
27 lines · plain
1@ RUN: not llvm-mc -triple=thumbv7-apple-darwin -mcpu=cortex-a8 -show-encoding -mattr=-trustzone < %s | FileCheck %s -check-prefix=NOTZ2@ RUN: llvm-mc -triple=thumbv7-apple-darwin -mcpu=cortex-a8 -show-encoding -mattr=trustzone < %s | FileCheck %s -check-prefix=TZ3@ RUN: not llvm-mc -triple=thumbv6kz -mcpu=arm1176jzf-s -show-encoding < %s | FileCheck %s -check-prefix=NOTZ4 5  .syntax unified6  .globl _func7 8@ Check that the assembler processes SMC instructions when TrustZone support is 9@ active and that it rejects them when this feature is not enabled10 11_func:12@ CHECK: _func13 14 15@------------------------------------------------------------------------------16@ SMC17@------------------------------------------------------------------------------18        smc #0xf19        it eq20        smceq #021 22@ NOTZ-NOT: smc 	#1523@ NOTZ-NOT: smceq	#024@ TZ: smc	#15                     @ encoding: [0xff,0xf7,0x00,0x80]25@ TZ: it	eq                      @ encoding: [0x08,0xbf]26@ TZ: smceq	#0                      @ encoding: [0xf0,0xf7,0x00,0x80]27