zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 94b504c9e41c84825708701a2bf7a3cc7bdca375 (tree)
parent a3beda27fc9093b6d4d5538104d2704590d7cf2b
Author: LemonBoy <thatlemon@gmail.com>
Date:   Mon,  6 May 2019 21:43:34 +0200

Fix float comparison result in __aeabi_{f,d}cmp*

Diffstat:
Mstd/special/compiler_rt/arm/aeabi_dcmp.zig | 2+-
Mstd/special/compiler_rt/arm/aeabi_fcmp.zig | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/std/special/compiler_rt/arm/aeabi_dcmp.zig b/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: diff --git a/std/special/compiler_rt/arm/aeabi_fcmp.zig b/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: