[ARM] Fix VCVT F32<->F64 encoding.

This commit is contained in:
Ryan Houdek 2013-08-03 00:45:33 +00:00
parent f58edd018c
commit ca7fb9f38e
1 changed files with 2 additions and 2 deletions

View File

@ -1242,10 +1242,10 @@ void ARMXEmitter::VCVT(ARMReg Dest, ARMReg Source, int flags)
if (single_to_double) if (single_to_double)
{ {
Write32(condition | (0x1D << 23) | ((Dest & 0x10) << 18) | (0x3 << 20) | (0x7 << 16) \ Write32(condition | (0x1D << 23) | ((Dest & 0x10) << 18) | (0x3 << 20) | (0x7 << 16) \
| ((Dest & 0xF) << 12) | (0x2F << 6) | ((Source & 0x1) << 5) | (Source >> 1)); | ((Dest & 0xF) << 12) | (0x2B << 6) | ((Source & 0x1) << 5) | (Source >> 1));
} else { } else {
Write32(condition | (0x1D << 23) | ((Dest & 0x1) << 22) | (0x3 << 20) | (0x7 << 16) \ Write32(condition | (0x1D << 23) | ((Dest & 0x1) << 22) | (0x3 << 20) | (0x7 << 16) \
| ((Dest & 0x1E) << 11) | (0x2B << 6) | ((Source & 0x10) << 1) | (Source & 0xF)); | ((Dest & 0x1E) << 11) | (0x2F << 6) | ((Source & 0x10) << 1) | (Source & 0xF));
} }
} }
} else if (single_reg) { } else if (single_reg) {