mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-25 21:03:18 +00:00
shader_recompiler/frontend: Implement bitcmp
instructions (#1550)
This commit is contained in:
parent
c45af9a2ca
commit
17c47bcd96
4 changed files with 52 additions and 0 deletions
|
@ -59,6 +59,11 @@ F64 IREmitter::Imm64(f64 value) const {
|
|||
return F64{Value{value}};
|
||||
}
|
||||
|
||||
template <>
|
||||
IR::U32 IREmitter::BitCast<IR::U32, IR::U1>(const IR::U1& value) {
|
||||
return IR::U32{Select(value, Imm32(1), Imm32(0))};
|
||||
}
|
||||
|
||||
template <>
|
||||
IR::U32 IREmitter::BitCast<IR::U32, IR::F32>(const IR::F32& value) {
|
||||
return Inst<IR::U32>(Opcode::BitCastU32F32, value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue