mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-27 13:40:30 +00:00
Implement cast fp -> bool
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11728 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
16865af5d5
commit
311ca2e51f
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user