Thumb2 range check on CPS mode immediate.
authorJim Grosbach <grosbach@apple.com>
Mon, 19 Sep 2011 23:58:31 +0000 (23:58 +0000)
committerJim Grosbach <grosbach@apple.com>
Mon, 19 Sep 2011 23:58:31 +0000 (23:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140105 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMInstrThumb2.td

index e41d7ff1c2103a31d09c2cc6f5c8f3f7d18dcb36..e7bb06f3804ab7d687c11a4960a822ad248831a1 100644 (file)
@@ -3301,7 +3301,7 @@ let mode = 0, M = 0 in
   def t2CPS2p : t2CPS<(ins imod_op:$imod, iflags_op:$iflags),
                       "$imod.w\t$iflags">;
 let imod = 0, iflags = 0, M = 1 in
-  def t2CPS1p : t2CPS<(ins i32imm:$mode), "\t$mode">;
+  def t2CPS1p : t2CPS<(ins imm0_31:$mode), "\t$mode">;
 
 // A6.3.4 Branches and miscellaneous control
 // Table A6-14 Change Processor State, and hint instructions