mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 00:13:08 +00:00
Merge branch 'opcode-s-andn2-b32' of https://github.com/amiddendorp22/shadPS4 into opcode-s-andn2-b32
This commit is contained in:
commit
8b9a734450
@ -389,11 +389,11 @@ void Translator::S_AND_B32(NegateMode negate, const GcnInst& inst) {
|
|||||||
const IR::U32 src0{GetSrc(inst.src[0])};
|
const IR::U32 src0{GetSrc(inst.src[0])};
|
||||||
IR::U32 src1{GetSrc(inst.src[1])};
|
IR::U32 src1{GetSrc(inst.src[1])};
|
||||||
if (negate == NegateMode::Src1) {
|
if (negate == NegateMode::Src1) {
|
||||||
IR::U32 src1{ir.BitwiseNot(GetSrc(inst.src[1]))};
|
src1 = ir.BitwiseNot(src1);
|
||||||
}
|
}
|
||||||
IR::U32 result{ir.BitwiseAnd(src0, src1)};
|
IR::U32 result{ir.BitwiseAnd(src0, src1)};
|
||||||
if (negate == NegateMode::Result) {
|
if (negate == NegateMode::Result) {
|
||||||
IR::U32 result{ir.BitwiseNot(ir.BitwiseAnd(src0, src1))};
|
result = ir.BitwiseNot(result);
|
||||||
}
|
}
|
||||||
SetDst(inst.dst[0], result);
|
SetDst(inst.dst[0], result);
|
||||||
ir.SetScc(ir.INotEqual(result, ir.Imm32(0)));
|
ir.SetScc(ir.INotEqual(result, ir.Imm32(0)));
|
||||||
|
Loading…
Reference in New Issue
Block a user