Implement cast fp -> bool

llvm-svn: 11728
This commit is contained in:
Chris Lattner 2004-02-23 03:21:41 +00:00
parent d31caa438a
commit 7e90628a8a
1 changed files with 4 additions and 2 deletions

View File

@ -1978,8 +1978,10 @@ void ISel::emitCastOperation(MachineBasicBlock *BB,
break;
}
case cFP:
assert(0 && "FIXME: implement cast FP to bool");
abort();
BMI(BB, IP, X86::FTST, 1).addReg(SrcReg);
BMI(BB, IP, X86::FNSTSWr8, 0);
BMI(BB, IP, X86::SAHF, 1);
break;
}
// If the zero flag is not set, then the value is true, set the byte to