Mercurial > pub > dyncall > dyncall
diff dyncallback/dyncall_callback_ppc32_apple.s @ 357:d982a00c2177
- PPC64 asm syntax fix, specifying explicitly comparison mode for cmpi (newer toolchains complain, older ones took optional field of instruction which happened to be same value)
author | Tassilo Philipp |
---|---|
date | Tue, 25 Feb 2020 18:16:13 +0100 |
parents | 891e8ba15862 |
children | 26aa936d4841 |
line wrap: on
line diff
--- a/dyncallback/dyncall_callback_ppc32_apple.s Tue Feb 25 16:07:45 2020 +0100 +++ b/dyncallback/dyncall_callback_ppc32_apple.s Tue Feb 25 18:16:13 2020 +0100 @@ -135,9 +135,9 @@ mtctr r12 bctrl /* switch on base result type */ - cmpi cr0, r3, 0x66 /* 'f */ + cmpi cr0, 0, r3, 0x66 /* 'f */ beq .f32 - cmpi cr0, r3, 0x64 /* 'd */ + cmpi cr0, 0, r3, 0x64 /* 'd */ beq .f64 .i64: lwz r3, RESULT_OFFSET (r1)