Commit 94b504c9e4

LemonBoy <thatlemon@gmail.com>
2019-05-06 21:43:34
Fix float comparison result in __aeabi_{f,d}cmp*
1 parent a3beda2
Changed files (2)
std
special
std/special/compiler_rt/arm/aeabi_dcmp.zig
@@ -87,7 +87,7 @@ inline fn aeabi_dcmp(comptime cond: ConditionalOperator) void {
         .Ge => asm volatile (
             \\ bl        __ltdf2
             \\ cmp       r0, #0
-            \\ blt 1f
+            \\ bge 1f
             \\ movs      r0, #0
             \\ pop       { r4, pc }
             \\ 1:
std/special/compiler_rt/arm/aeabi_fcmp.zig
@@ -87,7 +87,7 @@ inline fn aeabi_fcmp(comptime cond: ConditionalOperator) void {
         .Ge => asm volatile (
             \\ bl        __ltsf2
             \\ cmp       r0, #0
-            \\ blt 1f
+            \\ bge 1f
             \\ movs      r0, #0
             \\ pop       { r4, pc }
             \\ 1: