[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaISelPattern.cpp AlphaInstrInfo.td
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Tue Mar 15 11:51:35 PST 2005
Changes in directory llvm/lib/Target/Alpha:
AlphaISelPattern.cpp updated: 1.63 -> 1.64
AlphaInstrInfo.td updated: 1.32 -> 1.33
---
Log message:
sure, I can set a flag, but if I never check it, why bother setting it? Should fix 20 programs :)
---
Diffs of the changes: (+5 -3)
AlphaISelPattern.cpp | 4 ++--
AlphaInstrInfo.td | 4 +++-
2 files changed, 5 insertions(+), 3 deletions(-)
Index: llvm/lib/Target/Alpha/AlphaISelPattern.cpp
diff -u llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.63 llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.64
--- llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.63 Mon Mar 14 22:54:19 2005
+++ llvm/lib/Target/Alpha/AlphaISelPattern.cpp Tue Mar 15 13:51:19 2005
@@ -1291,8 +1291,8 @@
BuildMI(BB, Opc, 2, Tmp3).addReg(Tmp1).addReg(Tmp2);
//now arrange for Result (int) to have a 1 or 0
-
- BuildMI(BB, Alpha::CC2INT, 1, Result).addReg(Tmp3);
+ Opc = inv?Alpha::CC2INT_INV:Alpha::CC2INT;
+ BuildMI(BB, Opc, 1, Result).addReg(Tmp3);
// // Spill the FP to memory and reload it from there.
// unsigned Size = MVT::getSizeInBits(MVT::f64)/8;
Index: llvm/lib/Target/Alpha/AlphaInstrInfo.td
diff -u llvm/lib/Target/Alpha/AlphaInstrInfo.td:1.32 llvm/lib/Target/Alpha/AlphaInstrInfo.td:1.33
--- llvm/lib/Target/Alpha/AlphaInstrInfo.td:1.32 Mon Mar 14 13:23:45 2005
+++ llvm/lib/Target/Alpha/AlphaInstrInfo.td Tue Mar 15 13:51:19 2005
@@ -88,8 +88,10 @@
}
//This is an improvement on the old style setcc (FP)
-def CC2INT : PseudoInstAlpha<(ops GPRC:$RES, FPRC:$COND),
+def CC2INT_INV : PseudoInstAlpha<(ops GPRC:$RES, FPRC:$COND),
"lda $RES,1($$31)\n\tfbeq $COND, 42f\n\tbis $$31,$$31,$RES\n42:\n">;
+def CC2INT : PseudoInstAlpha<(ops GPRC:$RES, FPRC:$COND),
+ "lda $RES,1($$31)\n\tfbne $COND, 42f\n\tbis $$31,$$31,$RES\n42:\n">;
//***********************
//Real instructions
More information about the llvm-commits
mailing list