From 9f17a1e96b376ade2ab706534e9bb94b0a52dbd6 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 4 Mar 2018 20:40:55 +0100 Subject: [PATCH] fix PR --- Ryujinx.Tests/Cpu/CpuTestSimdArithmetic.cs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Ryujinx.Tests/Cpu/CpuTestSimdArithmetic.cs b/Ryujinx.Tests/Cpu/CpuTestSimdArithmetic.cs index b8e1ef2a75..cfe83645cd 100644 --- a/Ryujinx.Tests/Cpu/CpuTestSimdArithmetic.cs +++ b/Ryujinx.Tests/Cpu/CpuTestSimdArithmetic.cs @@ -45,28 +45,25 @@ namespace Ryujinx.Tests.Cpu [TestCase(0x7FC00002u, 'P', true, 0x7FC00000u)] [TestCase(0x7FC00002u, 'M', true, 0x7FC00000u)] [TestCase(0x7FC00002u, 'Z', true, 0x7FC00000u)] - public void Frintx_S(uint A, char RoundType, bool DefaultNaN, uint Result) { int FpcrTemp = 0x0; switch(RoundType) { case 'N': - FpcrTemp &= ~((1 << 23) | (1 << 22)); + FpcrTemp = 0x0; break; case 'P': - FpcrTemp &= ~(1 << 23); - FpcrTemp |= 1 << 22; + FpcrTemp = 0x400000; break; case 'M': - FpcrTemp |= 1 << 23; - FpcrTemp &= ~(1 << 22); + FpcrTemp = 0x800000; break; case 'Z': - FpcrTemp |= (1 << 23) | (1 << 22); + FpcrTemp = 0xC00000; break; } if(DefaultNaN)