diff options
| author | Andrew Lenharth <andrewl@lenharth.org> | 2005-03-15 19:51:19 +0000 |
|---|---|---|
| committer | Andrew Lenharth <andrewl@lenharth.org> | 2005-03-15 19:51:19 +0000 |
| commit | aa254d5f7927487d444e0fb9b31bf44f1392c52f (patch) | |
| tree | 90fed49d2ddd97377eb037794786aaef445ee3d3 | |
| parent | dd3fb83f32d767cacf15cd41cbad29114d90310b (diff) | |
| download | bcm5719-llvm-aa254d5f7927487d444e0fb9b31bf44f1392c52f.tar.gz bcm5719-llvm-aa254d5f7927487d444e0fb9b31bf44f1392c52f.zip | |
sure, I can set a flag, but if I never check it, why bother setting it? Should fix 20 programs :)
llvm-svn: 20623
| -rw-r--r-- | llvm/lib/Target/Alpha/AlphaISelPattern.cpp | 4 | ||||
| -rw-r--r-- | llvm/lib/Target/Alpha/AlphaInstrInfo.td | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaISelPattern.cpp b/llvm/lib/Target/Alpha/AlphaISelPattern.cpp index 99bb9b9963f..0e0e0ac314b 100644 --- a/llvm/lib/Target/Alpha/AlphaISelPattern.cpp +++ b/llvm/lib/Target/Alpha/AlphaISelPattern.cpp @@ -1291,8 +1291,8 @@ unsigned ISel::SelectExpr(SDOperand N) { 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; diff --git a/llvm/lib/Target/Alpha/AlphaInstrInfo.td b/llvm/lib/Target/Alpha/AlphaInstrInfo.td index 97f0bd6b707..9d4b91dc6a4 100644 --- a/llvm/lib/Target/Alpha/AlphaInstrInfo.td +++ b/llvm/lib/Target/Alpha/AlphaInstrInfo.td @@ -88,8 +88,10 @@ let Uses = [R29], } //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 |

