diff options
author | Richard Barton <richard.barton@arm.com> | 2012-05-02 09:43:18 +0000 |
---|---|---|
committer | Richard Barton <richard.barton@arm.com> | 2012-05-02 09:43:18 +0000 |
commit | 0a552d611efe9d1070aff1d35c7f169dd1ab0be7 (patch) | |
tree | 4cfbbafaf2fb2ff61c56f36ab3f376ac27a4777d /lib/Target/ARM/ARMInstrThumb.td | |
parent | a9a568a79dbaf7315db863b4808d31ad9f5f91dc (diff) | |
download | llvm-0a552d611efe9d1070aff1d35c7f169dd1ab0be7.tar.gz llvm-0a552d611efe9d1070aff1d35c7f169dd1ab0be7.tar.bz2 llvm-0a552d611efe9d1070aff1d35c7f169dd1ab0be7.tar.xz |
Disallow YIELD and other allocated nop hints in pre-ARMv6 architectures.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155983 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMInstrThumb.td')
-rw-r--r-- | lib/Target/ARM/ARMInstrThumb.td | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/Target/ARM/ARMInstrThumb.td b/lib/Target/ARM/ARMInstrThumb.td index 15cb9fa5d2..fe553c2150 100644 --- a/lib/Target/ARM/ARMInstrThumb.td +++ b/lib/Target/ARM/ARMInstrThumb.td @@ -258,16 +258,20 @@ def tNOP : T1pI<(outs), (ins), NoItinerary, "nop", "", []>, Requires<[IsThumb2]>; def tYIELD : T1pI<(outs), (ins), NoItinerary, "yield", "", []>, - T1SystemEncoding<0x10>; // A8.6.410 + T1SystemEncoding<0x10>, // A8.6.410 + Requires<[IsThumb2]>; def tWFE : T1pI<(outs), (ins), NoItinerary, "wfe", "", []>, - T1SystemEncoding<0x20>; // A8.6.408 + T1SystemEncoding<0x20>, // A8.6.408 + Requires<[IsThumb2]>; def tWFI : T1pI<(outs), (ins), NoItinerary, "wfi", "", []>, - T1SystemEncoding<0x30>; // A8.6.409 + T1SystemEncoding<0x30>, // A8.6.409 + Requires<[IsThumb2]>; def tSEV : T1pI<(outs), (ins), NoItinerary, "sev", "", []>, - T1SystemEncoding<0x40>; // A8.6.157 + T1SystemEncoding<0x40>, // A8.6.157 + Requires<[IsThumb2]>; // The imm operand $val can be used by a debugger to store more information // about the breakpoint. |