[llvm] r330563 - [X86] Add VEX_WIG to VEX encoded version of VCMPPSY/VCMPPDY.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 22 21:50:02 PDT 2018


Author: ctopper
Date: Sun Apr 22 21:50:01 2018
New Revision: 330563

URL: http://llvm.org/viewvc/llvm-project?rev=330563&view=rev
Log:
[X86] Add VEX_WIG to VEX encoded version of VCMPPSY/VCMPPDY.

Modified:
    llvm/trunk/lib/Target/X86/X86InstrSSE.td
    llvm/trunk/test/MC/Disassembler/X86/x86-64.txt

Modified: llvm/trunk/lib/Target/X86/X86InstrSSE.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrSSE.td?rev=330563&r1=330562&r2=330563&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrSSE.td (original)
+++ llvm/trunk/lib/Target/X86/X86InstrSSE.td Sun Apr 22 21:50:01 2018
@@ -2036,11 +2036,11 @@ defm VCMPPD : sse12_cmp_packed<VR128, f1
 defm VCMPPSY : sse12_cmp_packed<VR256, f256mem, AVXCC, v8f32,
                "cmp${cc}ps\t{$src2, $src1, $dst|$dst, $src1, $src2}",
                "cmpps\t{$cc, $src2, $src1, $dst|$dst, $src1, $src2, $cc}",
-               WriteFCmp, SSEPackedSingle, loadv8f32>, PS, VEX_4V, VEX_L;
+               WriteFCmp, SSEPackedSingle, loadv8f32>, PS, VEX_4V, VEX_L, VEX_WIG;
 defm VCMPPDY : sse12_cmp_packed<VR256, f256mem, AVXCC, v4f64,
                "cmp${cc}pd\t{$src2, $src1, $dst|$dst, $src1, $src2}",
                "cmppd\t{$cc, $src2, $src1, $dst|$dst, $src1, $src2, $cc}",
-               WriteFCmp, SSEPackedDouble, loadv4f64>, PD, VEX_4V, VEX_L;
+               WriteFCmp, SSEPackedDouble, loadv4f64>, PD, VEX_4V, VEX_L, VEX_WIG;
 let Constraints = "$src1 = $dst" in {
   defm CMPPS : sse12_cmp_packed<VR128, f128mem, SSECC, v4f32,
                  "cmp${cc}ps\t{$src2, $dst|$dst, $src2}",

Modified: llvm/trunk/test/MC/Disassembler/X86/x86-64.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/Disassembler/X86/x86-64.txt?rev=330563&r1=330562&r2=330563&view=diff
==============================================================================
--- llvm/trunk/test/MC/Disassembler/X86/x86-64.txt (original)
+++ llvm/trunk/test/MC/Disassembler/X86/x86-64.txt Sun Apr 22 21:50:01 2018
@@ -38,6 +38,12 @@
 # CHECK: vcmpeqsd
 0xc5 0x07 0xc2 0xc7 0x00
 
+# CHECK: vcmptrue_usps %ymm7, %ymm15, %ymm0
+0xc4 0xe1 0x84 0xc2 0xc7 0x1f
+
+# CHECK: vcmptrue_uspd %ymm7, %ymm15, %ymm0
+0xc4 0xe1 0x85 0xc2 0xc7 0x1f
+
 # CHECK: cmpeqps
 0x0f 0xc2 0xc7 0x00
 




More information about the llvm-commits mailing list