1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Fix vmov.f64 disassembly on targets where sizeof(long) != 8.

llvm-svn: 114240
This commit is contained in:
Benjamin Kramer 2010-09-17 23:48:07 +00:00
parent 8b988eb1d4
commit 1cad9b6521
2 changed files with 5 additions and 2 deletions

View File

@ -1588,9 +1588,9 @@ static APInt VFPExpandImm(unsigned char byte, unsigned N) {
Result = (uint64_t)slice(byte, 7, 7) << 63 |
(uint64_t)slice(byte, 5, 0) << 48;
if (bit6)
Result |= 0xffL << 54;
Result |= 0xffULL << 54;
else
Result |= 0x1L << 62;
Result |= 0x1ULL << 62;
}
return APInt(N, Result);
}

View File

@ -56,3 +56,6 @@
# CHECK: vmov.f32 s0, #1.328125e-01
0x01 0x0a 0xb4 0xee
# CHECK: vmov.f64 d0, #5.000000e-01
0x00 0x0b 0xb6 0xee