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;
}
//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