Mercurial > pub > dyncall > dyncall
diff dyncallback/dyncall_callback_ppc32.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 | f5577f6bf97a |
children | f28b7f4f5749 |
line wrap: on
line diff
--- a/dyncallback/dyncall_callback_ppc32.S Tue Feb 25 16:07:45 2020 +0100 +++ b/dyncallback/dyncall_callback_ppc32.S Tue Feb 25 18:16:13 2020 +0100 @@ -123,9 +123,9 @@ mtctr r12 bctrl /* check 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, SP_RESULT (r1)