mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-12 14:48:52 +00:00
shader_recompiler/frontend: Implement bitcmp instructions (#1550)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user