diff --git a/compiler/arm/aoptcpu.pas b/compiler/arm/aoptcpu.pas index 2fe0267cae..3300194f4f 100644 --- a/compiler/arm/aoptcpu.pas +++ b/compiler/arm/aoptcpu.pas @@ -838,10 +838,10 @@ Implementation SM_LSR, SM_LSL: begin - hp1:=taicpu.op_reg_const(A_MOV,taicpu(p).oper[0]^.reg,0); - InsertLLItem(p.previous, p.next, hp1); + hp2:=taicpu.op_reg_const(A_MOV,taicpu(p).oper[0]^.reg,0); + InsertLLItem(p.previous, p.next, hp2); p.free; - p:=hp1; + p:=hp2; end; else internalerror(2008072803); diff --git a/tests/test/opt/tarmshift.pp b/tests/test/opt/tarmshift.pp index 2dec2b7a5f..75bb97f77e 100644 --- a/tests/test/opt/tarmshift.pp +++ b/tests/test/opt/tarmshift.pp @@ -1,4 +1,3 @@ -{ %norun } { %opt=-O2 } var i : longint;