- fix wrong shift direction

This commit is contained in:
Magnus Norddahl 2018-10-14 08:53:18 +02:00
parent a3f6950a4f
commit cd211da2d8

View file

@ -207,7 +207,7 @@ static TArray<uint16_t> CreateUnwindInfo(asmjit::CCFunc *func)
opoffset = (uint32_t)assembler.getOffset(); opoffset = (uint32_t)assembler.getOffset();
opcode = UWOP_SAVE_XMM128_FAR; opcode = UWOP_SAVE_XMM128_FAR;
opinfo = regId; opinfo = regId;
codes.Push((uint16_t)(vecBase.getOffsetLo32() << 16)); codes.Push((uint16_t)(vecBase.getOffsetLo32() >> 16));
codes.Push((uint16_t)vecBase.getOffsetLo32()); codes.Push((uint16_t)vecBase.getOffsetLo32());
codes.Push(opoffset | (opcode << 8) | (opinfo << 12)); codes.Push(opoffset | (opcode << 8) | (opinfo << 12));
} }