integer: Fix the UQSUB8 asserts
Forgot to invert the tested conditionals.
This commit is contained in:
parent
4a2fb659e3
commit
87a16323bc
@ -116,13 +116,13 @@ static bool Uqsub8() {
|
|||||||
|
|
||||||
// Regular subtraction
|
// Regular subtraction
|
||||||
asm volatile ("UQSUB8 %[out], %[Rm], %[Rn]" : [out] "=r"(output) : [Rm] "r"(rm), [Rn] "r"(rn));
|
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).
|
// Floor subtraction (50 - 70) == 0 with UQSUB8 (or any of the other UQSUB variants).
|
||||||
rm = 50;
|
rm = 50;
|
||||||
rn = 70;
|
rn = 70;
|
||||||
asm volatile ("UQSUB8 %[out], %[Rm], %[Rn]" : [out] "=r"(output) : [Rm] "r"(rm), [Rn] "r"(rn));
|
asm volatile ("UQSUB8 %[out], %[Rm], %[Rn]" : [out] "=r"(output) : [Rm] "r"(rm), [Rn] "r"(rn));
|
||||||
SoftAssert(output != 0);
|
SoftAssert(output == 0);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user