]> granicus.if.org Git - llvm/commitdiff
[ARM] tSETEND needs IsThumb
authorOliver Stannard <oliver.stannard@arm.com>
Tue, 24 Oct 2017 09:03:33 +0000 (09:03 +0000)
committerOliver Stannard <oliver.stannard@arm.com>
Tue, 24 Oct 2017 09:03:33 +0000 (09:03 +0000)
This is the Thumb encoding, so the Requires list must include IsThumb.

No test because we happen to select the ARM one first, but that's just luck.

Differential Revision: https://reviews.llvm.org/D39190

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316421 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMInstrThumb.td

index 0bf6b72db3fa993a8c517ecc7016b0dcce94366b..d6b9a21c2b833ce59773c2c0a5077157e24339aa 100644 (file)
@@ -338,7 +338,7 @@ def tHLT : T1I<(outs), (ins imm0_63:$val), NoItinerary, "hlt\t$val",
 }
 
 def tSETEND : T1I<(outs), (ins setend_op:$end), NoItinerary, "setend\t$end",
-                  []>, T1Encoding<0b101101>, Requires<[IsNotMClass]>, Deprecated<HasV8Ops> {
+                  []>, T1Encoding<0b101101>, Requires<[IsThumb, IsNotMClass]>, Deprecated<HasV8Ops> {
   bits<1> end;
   // A8.6.156
   let Inst{9-5} = 0b10010;