mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
ARM: Let the assembler reject v5 instructions in v4 mode.
PR18524. llvm-svn: 199559
This commit is contained in:
parent
718dd2ef23
commit
1f0b6cda68
@ -186,7 +186,8 @@ def ARMvminnm : SDNode<"ARMISD::VMINNM", SDT_ARMVMINNM, []>;
|
||||
def HasV4T : Predicate<"Subtarget->hasV4TOps()">,
|
||||
AssemblerPredicate<"HasV4TOps", "armv4t">;
|
||||
def NoV4T : Predicate<"!Subtarget->hasV4TOps()">;
|
||||
def HasV5T : Predicate<"Subtarget->hasV5TOps()">;
|
||||
def HasV5T : Predicate<"Subtarget->hasV5TOps()">,
|
||||
AssemblerPredicate<"HasV5TOps", "armv5t">;
|
||||
def HasV5TE : Predicate<"Subtarget->hasV5TEOps()">,
|
||||
AssemblerPredicate<"HasV5TEOps", "armv5te">;
|
||||
def HasV6 : Predicate<"Subtarget->hasV6Ops()">,
|
||||
|
8
test/MC/ARM/not-armv4.s
Normal file
8
test/MC/ARM/not-armv4.s
Normal file
@ -0,0 +1,8 @@
|
||||
@ RUN: not llvm-mc < %s -triple armv4-unknown-unknown -show-encoding 2>&1 | FileCheck %s
|
||||
|
||||
@ PR18524
|
||||
@ CHECK: error: instruction requires: armv5t
|
||||
clz r4,r9
|
||||
|
||||
@ CHECK: error: instruction requires: armv6t2
|
||||
rbit r4,r9
|
Loading…
Reference in New Issue
Block a user