From: Jim Grosbach Date: Wed, 26 May 2010 01:22:21 +0000 (+0000) Subject: fix off by 1 (insn) error in eh.sjlj.setjmp thumb code sequence. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=54e13eceff09ee79dc6408be990aabdee1a561dc;p=oota-llvm.git fix off by 1 (insn) error in eh.sjlj.setjmp thumb code sequence. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104661 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/ARMInstrThumb.td b/lib/Target/ARM/ARMInstrThumb.td index 86be60cfbae..40f924b679f 100644 --- a/lib/Target/ARM/ARMInstrThumb.td +++ b/lib/Target/ARM/ARMInstrThumb.td @@ -930,7 +930,7 @@ let Defs = AddrModeNone, SizeSpecial, NoItinerary, "str\t$val, [$src, #8]\t${:comment} begin eh.setjmp\n" "\tmov\t$val, pc\n" - "\tadds\t$val, #9\n" + "\tadds\t$val, #7\n" "\tstr\t$val, [$src, #4]\n" "\tmovs\tr0, #0\n" "\tb\t1f\n" diff --git a/lib/Target/ARM/ARMInstrThumb2.td b/lib/Target/ARM/ARMInstrThumb2.td index 7b1c2c160aa..b91c089fa5d 100644 --- a/lib/Target/ARM/ARMInstrThumb2.td +++ b/lib/Target/ARM/ARMInstrThumb2.td @@ -2399,7 +2399,7 @@ let Defs = AddrModeNone, SizeSpecial, NoItinerary, "str\t$val, [$src, #8]\t${:comment} begin eh.setjmp\n" "\tmov\t$val, pc\n" - "\tadds\t$val, #9\n" + "\tadds\t$val, #7\n" "\tstr\t$val, [$src, #4]\n" "\tmovs\tr0, #0\n" "\tb\t1f\n" @@ -2415,7 +2415,7 @@ let Defs = AddrModeNone, SizeSpecial, NoItinerary, "str\t$val, [$src, #8]\t${:comment} begin eh.setjmp\n" "\tmov\t$val, pc\n" - "\tadds\t$val, #9\n" + "\tadds\t$val, #7\n" "\tstr\t$val, [$src, #4]\n" "\tmovs\tr0, #0\n" "\tb\t1f\n"