aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuraid Madina <duraid@octopus.com.au>2006-02-11 07:32:15 +0000
committerDuraid Madina <duraid@octopus.com.au>2006-02-11 07:32:15 +0000
commit631a140054d90fd1a32a27b7fba9c5c4fc455402 (patch)
tree435e15e7f42dc0ac828246668919cdf42f4e7c37
parent8587eb3a51117b630c18236cc53eb865e76faf2d (diff)
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
-rw-r--r--lib/Target/IA64/IA64InstrInfo.td8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/Target/IA64/IA64InstrInfo.td b/lib/Target/IA64/IA64InstrInfo.td
index 7dc184c861..a4e6cba1a2 100644
--- a/lib/Target/IA64/IA64InstrInfo.td
+++ b/lib/Target/IA64/IA64InstrInfo.td
@@ -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",