26 lines · plain
1@ RUN: not llvm-mc -triple=armv7-apple-darwin -mcpu=cortex-a8 -show-encoding -mattr=-trustzone < %s | FileCheck %s -check-prefix=NOTZ2@ RUN: llvm-mc -triple=armv7-apple-darwin -mcpu=cortex-a8 -show-encoding -mattr=trustzone < %s | FileCheck %s -check-prefix=TZ3@ RUN: llvm-mc -triple=armv6kz -mcpu=arm1176jz-s -show-encoding < %s | FileCheck %s -check-prefix=TZ4 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 smi #0xf @ SMI is old (ARMv6KZ) name for SMC19 smceq #020 21@ NOTZ-NOT: smc #1522@ NOTZ-NOT: smceq #023@ TZ: smc #15 @ encoding: [0x7f,0x00,0x60,0xe1]24@ TZ: smceq #0 @ encoding: [0x70,0x00,0x60,0x01]25 26