mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix LIR_std2f implementation on ARM. [Bug 572679] [r=vlad]
--HG-- extra : convert_revision : 6998a52045d0d573bd78e2dd1bfd41c0a86309b0
This commit is contained in:
parent
aad41df407
commit
05a5c664a9
@ -1507,14 +1507,13 @@ Assembler::asm_store64(LOpcode op, LIns* value, int dr, LIns* base)
|
|||||||
Register rb = findRegFor(base, GpRegs);
|
Register rb = findRegFor(base, GpRegs);
|
||||||
|
|
||||||
if (value->isImmD()) {
|
if (value->isImmD()) {
|
||||||
underrunProtect(LD32_size*2 + 8);
|
union {
|
||||||
|
float f;
|
||||||
// XXX use another reg, get rid of dependency
|
uint32_t i;
|
||||||
|
} imm;
|
||||||
|
imm.f = (float)(value->immD());
|
||||||
asm_str(IP, rb, dr);
|
asm_str(IP, rb, dr);
|
||||||
asm_ld_imm(IP, value->immDlo(), false);
|
asm_ld_imm(IP, imm.i);
|
||||||
asm_str(IP, rb, dr+4);
|
|
||||||
asm_ld_imm(IP, value->immDhi(), false);
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user