http://llvm.org/bugs/show_bug.cgi?id=10677
Summary: Encoding issue with avx SIB dest
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Created an attachment (id=7078)
--> (http://llvm.org/bugs/attachment.cgi?id=7078)
Patch to x86 code emitter and test case
Have found an issue with this assembly writing to a memory location
vmovaps %xmm3, (%r14,%r11)
The Intel spec says it should have the REX.X bit set to 1 to use r11, but the
code emitter is not setting VEX.X to 0 (which sets REX.X to 1 as its inverted)
I've found the issue is that the switch statement in EmitVEXOpcodePrefix is
checking for MRMSrcReg but not MRMDestReg when checking whether to set the
VEX.X bit. I'm attaching a patch for this and a patch to the avx encoding test
case which has the correct decoding according to binutils objdump.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs