From: Jim Grosbach Date: Mon, 19 Sep 2011 23:58:31 +0000 (+0000) Subject: Thumb2 range check on CPS mode immediate. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0efe213ed5a2c1d2647dc1306e684da6147a611e;p=oota-llvm.git Thumb2 range check on CPS mode immediate. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140105 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/ARMInstrThumb2.td b/lib/Target/ARM/ARMInstrThumb2.td index e41d7ff1c21..e7bb06f3804 100644 --- a/lib/Target/ARM/ARMInstrThumb2.td +++ b/lib/Target/ARM/ARMInstrThumb2.td @@ -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