llvm.org GIT mirror llvm / 775c498
Recognize that ARM1176JZ[F]-S support TrustZone Summary: ARMv6KZ cores were set up incorrectly in ARM.td; also, the SMI mnemonic (the old name for SMC, as defined in ARMv6KZ) wasn't supported. Reviewers: jmolloy, rengolin Subscribers: aemerson, rengolin, llvm-commits Differential Revision: http://reviews.llvm.org/D14154 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251627 91177308-0d34-0410-b5e6-96231b3b80d8 Artyom Skrobov 4 years ago
4 changed file(s) with 7 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
359359 FeatureDB, FeatureMClass]>;
360360
361361 // V6K Processors.
362 def : Processor<"arm1176jz-s", ARMV6Itineraries, [HasV6KOps]>;
362 def : Processor<"arm1176jz-s", ARMV6Itineraries, [HasV6KOps,
363 FeatureTrustZone]>;
363364 def : Processor<"arm1176jzf-s", ARMV6Itineraries, [HasV6KOps, FeatureVFP2,
365 FeatureTrustZone,
364366 FeatureHasSlowFPVMLx]>;
365367 def : Processor<"mpcorenovfp", ARMV6Itineraries, [HasV6KOps]>;
366368 def : Processor<"mpcore", ARMV6Itineraries, [HasV6KOps, FeatureVFP2,
23282328 let Inst{23-4} = 0b01100000000000000111;
23292329 let Inst{3-0} = opt;
23302330 }
2331 def : MnemonicAlias<"smi", "smc">;
23312332
23322333 // Supervisor Call (Software Interrupt)
23332334 let isCall = 1, Uses = [SP] in {
0 @ RUN: not llvm-mc -triple=thumbv7-apple-darwin -mcpu=cortex-a8 -show-encoding -mattr=-trustzone < %s | FileCheck %s -check-prefix=NOTZ
11 @ RUN: llvm-mc -triple=thumbv7-apple-darwin -mcpu=cortex-a8 -show-encoding -mattr=trustzone < %s | FileCheck %s -check-prefix=TZ
2 @ RUN: not llvm-mc -triple=thumbv6kz -mcpu=arm1176jzf-s -show-encoding < %s | FileCheck %s -check-prefix=NOTZ
23
34 .syntax unified
45 .globl _func
0 @ RUN: not llvm-mc -triple=armv7-apple-darwin -mcpu=cortex-a8 -show-encoding -mattr=-trustzone < %s | FileCheck %s -check-prefix=NOTZ
11 @ RUN: llvm-mc -triple=armv7-apple-darwin -mcpu=cortex-a8 -show-encoding -mattr=trustzone < %s | FileCheck %s -check-prefix=TZ
2 @ RUN: llvm-mc -triple=armv6kz -mcpu=arm1176jz-s -show-encoding < %s | FileCheck %s -check-prefix=TZ
23
34 .syntax unified
45 .globl _func
1314 @------------------------------------------------------------------------------
1415 @ SMC
1516 @------------------------------------------------------------------------------
16 smc #0xf
17 smi #0xf @ SMI is old (ARMv6KZ) name for SMC
1718 smceq #0
1819
1920 @ NOTZ-NOT: smc #15