mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
Fix float comparison result in __aeabi_{f,d}cmp*
This commit is contained in:
parent
a3beda27fc
commit
94b504c9e4
@ -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:
|
||||
|
||||
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user