Mercurial > pub > dyncall > dyncall
comparison dyncallback/dyncall_callback_ppc64.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 |
comparison
equal
deleted
inserted
replaced
356:2f64957d6a46 | 357:d982a00c2177 |
---|---|
145 mtctr r12 | 145 mtctr r12 |
146 #endif | 146 #endif |
147 bctrl | 147 bctrl |
148 | 148 |
149 /* check result type */ | 149 /* check result type */ |
150 cmpi cr0, r3, 0x66 /* 'f */ | 150 cmpi cr0, 0, r3, 0x66 /* 'f */ |
151 beq .f32 | 151 beq .f32 |
152 cmpi cr0, r3, 0x64 /* 'd */ | 152 cmpi cr0, 0, r3, 0x64 /* 'd */ |
153 beq .f64 | 153 beq .f64 |
154 .i64: | 154 .i64: |
155 ld r3, SP_RESULT(r1) | 155 ld r3, SP_RESULT(r1) |
156 b .end | 156 b .end |
157 .end: | 157 .end: |