From 87a16323bcf54e741fe6f7e9848c82c90b9dd0e3 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 14 Dec 2014 02:17:44 -0500 Subject: [PATCH] integer: Fix the UQSUB8 asserts Forgot to invert the tested conditionals. --- source/tests/cpu/integer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/tests/cpu/integer.cpp b/source/tests/cpu/integer.cpp index ea73332..1d83755 100644 --- a/source/tests/cpu/integer.cpp +++ b/source/tests/cpu/integer.cpp @@ -116,13 +116,13 @@ static bool Uqsub8() { // Regular subtraction asm volatile ("UQSUB8 %[out], %[Rm], %[Rn]" : [out] "=r"(output) : [Rm] "r"(rm), [Rn] "r"(rn)); - SoftAssert(output != 20); + SoftAssert(output == 20); // Floor subtraction (50 - 70) == 0 with UQSUB8 (or any of the other UQSUB variants). rm = 50; rn = 70; asm volatile ("UQSUB8 %[out], %[Rm], %[Rn]" : [out] "=r"(output) : [Rm] "r"(rm), [Rn] "r"(rn)); - SoftAssert(output != 0); + SoftAssert(output == 0); return true; }