now short immediates will get matched (previously constants were all

triggering movl 64bit imm fat instructions)

llvm-svn: 26119
This commit is contained in:
Duraid Madina 2006-02-11 07:32:15 +00:00
parent 05bf90dddf
commit 0010a92375
1 changed files with 3 additions and 5 deletions

View File

@ -99,11 +99,9 @@ def immSExt14 : PatLeaf<(i64 imm), [{
return (v <= 8191 && v >= -8192); return (v <= 8191 && v >= -8192);
}]>; }]>;
def imm64 : PatLeaf<(i64 imm), [{ // imm64 predicate - True if the immediate fits in a 64-bit
// imm64 predicate - True if the immediate fits in a 64-bit // field - i.e., true. used to keep movl happy
// field - i.e., true. used to keep movl happy def imm64 : PatLeaf<(i64 imm)>;
return true;
}]>;
def ADD : AForm_DAG<0x03, 0x0b, (ops GR:$dst, GR:$src1, GR:$src2), def ADD : AForm_DAG<0x03, 0x0b, (ops GR:$dst, GR:$src1, GR:$src2),
"add $dst = $src1, $src2", "add $dst = $src1, $src2",