mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
now short immediates will get matched (previously constants were all
triggering movl 64bit imm fat instructions) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26119 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8587eb3a51
commit
631a140054
@ -99,11 +99,9 @@ def immSExt14 : PatLeaf<(i64 imm), [{
|
||||
return (v <= 8191 && v >= -8192);
|
||||
}]>;
|
||||
|
||||
def imm64 : PatLeaf<(i64 imm), [{
|
||||
// imm64 predicate - True if the immediate fits in a 64-bit
|
||||
// field - i.e., true. used to keep movl happy
|
||||
return true;
|
||||
}]>;
|
||||
// imm64 predicate - True if the immediate fits in a 64-bit
|
||||
// field - i.e., true. used to keep movl happy
|
||||
def imm64 : PatLeaf<(i64 imm)>;
|
||||
|
||||
def ADD : AForm_DAG<0x03, 0x0b, (ops GR:$dst, GR:$src1, GR:$src2),
|
||||
"add $dst = $src1, $src2",
|
||||
|
Loading…
Reference in New Issue
Block a user