mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
Can't re-materialize mov r, imm in thumb since mov would clobber the condition code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35479 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a145c6d766
commit
5e3c203cfd
@ -379,7 +379,7 @@ def tLSRrr : TIt<(ops GPR:$dst, GPR:$lhs, GPR:$rhs),
|
||||
"lsr $dst, $rhs",
|
||||
[(set GPR:$dst, (srl GPR:$lhs, GPR:$rhs))]>;
|
||||
|
||||
let isReMaterializable = 1 in
|
||||
// FIXME: This is not rematerializable because mov changes the condition code.
|
||||
def tMOVi8 : TI<(ops GPR:$dst, i32imm:$src),
|
||||
"mov $dst, $src",
|
||||
[(set GPR:$dst, imm0_255:$src)]>;
|
||||
|
Loading…
x
Reference in New Issue
Block a user