[llvm] r329524 - [X86][Btver2] Add vector extract costs
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 8 04:26:26 PDT 2018
Author: rksimon
Date: Sun Apr 8 04:26:26 2018
New Revision: 329524
URL: http://llvm.org/viewvc/llvm-project?rev=329524&view=rev
Log:
[X86][Btver2] Add vector extract costs
Modified:
llvm/trunk/lib/Target/X86/X86ScheduleBtVer2.td
llvm/trunk/test/CodeGen/X86/mmx-schedule.ll
llvm/trunk/test/CodeGen/X86/sse-schedule.ll
llvm/trunk/test/CodeGen/X86/sse2-schedule.ll
llvm/trunk/test/CodeGen/X86/sse41-schedule.ll
llvm/trunk/test/tools/llvm-mca/X86/BtVer2/resources-avx1.s
llvm/trunk/test/tools/llvm-mca/X86/BtVer2/resources-sse2.s
llvm/trunk/test/tools/llvm-mca/X86/BtVer2/resources-sse41.s
Modified: llvm/trunk/lib/Target/X86/X86ScheduleBtVer2.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ScheduleBtVer2.td?rev=329524&r1=329523&r2=329524&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ScheduleBtVer2.td (original)
+++ llvm/trunk/lib/Target/X86/X86ScheduleBtVer2.td Sun Apr 8 04:26:26 2018
@@ -370,6 +370,25 @@ defm : JWriteResFpuPair<WriteShuffle256,
defm : JWriteResFpuPair<WriteVarVecShift, [JFPU01, JVALU], 1>; // NOTE: Doesn't exist on Jaguar.
////////////////////////////////////////////////////////////////////////////////
+// Vector Extraction instructions.
+////////////////////////////////////////////////////////////////////////////////
+
+def JWritePEXTR : SchedWriteRes<[JFPU0, JFPA, JALU0]> { let Latency = 3; }
+def : InstRW<[JWritePEXTR], (instrs MMX_PEXTRWrr,
+ EXTRACTPSrr, VEXTRACTPSrr,
+ PEXTRBrr, VPEXTRBrr,
+ PEXTRDrr, VPEXTRDrr,
+ PEXTRQrr, VPEXTRQrr,
+ PEXTRWrr, VPEXTRWrr, PEXTRWrr_REV, VPEXTRWrr_REV)>;
+
+def JWritePEXTRSt : SchedWriteRes<[JFPU1, JSTC, JSAGU]> { let Latency = 3; }
+def : InstRW<[JWritePEXTRSt], (instrs EXTRACTPSmr, VEXTRACTPSmr,
+ PEXTRBmr, VPEXTRBmr,
+ PEXTRDmr, VPEXTRDmr,
+ PEXTRQmr, VPEXTRQmr,
+ PEXTRWmr, VPEXTRWmr)>;
+
+////////////////////////////////////////////////////////////////////////////////
// SSE42 String instructions.
////////////////////////////////////////////////////////////////////////////////
Modified: llvm/trunk/test/CodeGen/X86/mmx-schedule.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/mmx-schedule.ll?rev=329524&r1=329523&r2=329524&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/mmx-schedule.ll (original)
+++ llvm/trunk/test/CodeGen/X86/mmx-schedule.ll Sun Apr 8 04:26:26 2018
@@ -3018,7 +3018,7 @@ define i32 @test_pextrw(x86_mmx %a0) opt
;
; BTVER2-LABEL: test_pextrw:
; BTVER2: # %bb.0:
-; BTVER2-NEXT: pextrw $0, %mm0, %eax # sched: [1:0.50]
+; BTVER2-NEXT: pextrw $0, %mm0, %eax # sched: [3:1.00]
; BTVER2-NEXT: retq # sched: [4:1.00]
;
; ZNVER1-LABEL: test_pextrw:
Modified: llvm/trunk/test/CodeGen/X86/sse-schedule.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/sse-schedule.ll?rev=329524&r1=329523&r2=329524&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/sse-schedule.ll (original)
+++ llvm/trunk/test/CodeGen/X86/sse-schedule.ll Sun Apr 8 04:26:26 2018
@@ -2818,7 +2818,7 @@ define void @test_movhps(<4 x float> %a0
; BTVER2: # %bb.0:
; BTVER2-NEXT: vmovhpd {{.*#+}} xmm1 = xmm1[0],mem[0] sched: [6:1.00]
; BTVER2-NEXT: vaddps %xmm1, %xmm0, %xmm0 # sched: [3:1.00]
-; BTVER2-NEXT: vpextrq $1, %xmm0, (%rdi) # sched: [6:1.00]
+; BTVER2-NEXT: vpextrq $1, %xmm0, (%rdi) # sched: [3:1.00]
; BTVER2-NEXT: retq # sched: [4:1.00]
;
; ZNVER1-SSE-LABEL: test_movhps:
Modified: llvm/trunk/test/CodeGen/X86/sse2-schedule.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/sse2-schedule.ll?rev=329524&r1=329523&r2=329524&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/sse2-schedule.ll (original)
+++ llvm/trunk/test/CodeGen/X86/sse2-schedule.ll Sun Apr 8 04:26:26 2018
@@ -8970,13 +8970,13 @@ define i16 @test_pextrw(<8 x i16> %a0) {
;
; BTVER2-SSE-LABEL: test_pextrw:
; BTVER2-SSE: # %bb.0:
-; BTVER2-SSE-NEXT: pextrw $6, %xmm0, %eax # sched: [1:0.50]
+; BTVER2-SSE-NEXT: pextrw $6, %xmm0, %eax # sched: [3:1.00]
; BTVER2-SSE-NEXT: # kill: def $ax killed $ax killed $eax
; BTVER2-SSE-NEXT: retq # sched: [4:1.00]
;
; BTVER2-LABEL: test_pextrw:
; BTVER2: # %bb.0:
-; BTVER2-NEXT: vpextrw $6, %xmm0, %eax # sched: [1:0.50]
+; BTVER2-NEXT: vpextrw $6, %xmm0, %eax # sched: [3:1.00]
; BTVER2-NEXT: # kill: def $ax killed $ax killed $eax
; BTVER2-NEXT: retq # sched: [4:1.00]
;
Modified: llvm/trunk/test/CodeGen/X86/sse41-schedule.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/sse41-schedule.ll?rev=329524&r1=329523&r2=329524&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/sse41-schedule.ll (original)
+++ llvm/trunk/test/CodeGen/X86/sse41-schedule.ll Sun Apr 8 04:26:26 2018
@@ -797,14 +797,14 @@ define i32 @test_extractps(<4 x float> %
;
; BTVER2-SSE-LABEL: test_extractps:
; BTVER2-SSE: # %bb.0:
-; BTVER2-SSE-NEXT: extractps $3, %xmm0, %eax # sched: [1:0.50]
-; BTVER2-SSE-NEXT: extractps $1, %xmm0, (%rdi) # sched: [6:1.00]
+; BTVER2-SSE-NEXT: extractps $3, %xmm0, %eax # sched: [3:1.00]
+; BTVER2-SSE-NEXT: extractps $1, %xmm0, (%rdi) # sched: [3:1.00]
; BTVER2-SSE-NEXT: retq # sched: [4:1.00]
;
; BTVER2-LABEL: test_extractps:
; BTVER2: # %bb.0:
-; BTVER2-NEXT: vextractps $3, %xmm0, %eax # sched: [1:0.50]
-; BTVER2-NEXT: vextractps $1, %xmm0, (%rdi) # sched: [6:1.00]
+; BTVER2-NEXT: vextractps $3, %xmm0, %eax # sched: [3:1.00]
+; BTVER2-NEXT: vextractps $1, %xmm0, (%rdi) # sched: [3:1.00]
; BTVER2-NEXT: retq # sched: [4:1.00]
;
; ZNVER1-SSE-LABEL: test_extractps:
@@ -1650,14 +1650,14 @@ define i32 @test_pextrb(<16 x i8> %a0, i
;
; BTVER2-SSE-LABEL: test_pextrb:
; BTVER2-SSE: # %bb.0:
-; BTVER2-SSE-NEXT: pextrb $3, %xmm0, %eax # sched: [1:0.50]
-; BTVER2-SSE-NEXT: pextrb $1, %xmm0, (%rdi) # sched: [6:1.00]
+; BTVER2-SSE-NEXT: pextrb $3, %xmm0, %eax # sched: [3:1.00]
+; BTVER2-SSE-NEXT: pextrb $1, %xmm0, (%rdi) # sched: [3:1.00]
; BTVER2-SSE-NEXT: retq # sched: [4:1.00]
;
; BTVER2-LABEL: test_pextrb:
; BTVER2: # %bb.0:
-; BTVER2-NEXT: vpextrb $3, %xmm0, %eax # sched: [1:0.50]
-; BTVER2-NEXT: vpextrb $1, %xmm0, (%rdi) # sched: [6:1.00]
+; BTVER2-NEXT: vpextrb $3, %xmm0, %eax # sched: [3:1.00]
+; BTVER2-NEXT: vpextrb $1, %xmm0, (%rdi) # sched: [3:1.00]
; BTVER2-NEXT: retq # sched: [4:1.00]
;
; ZNVER1-SSE-LABEL: test_pextrb:
@@ -1766,15 +1766,15 @@ define i32 @test_pextrd(<4 x i32> %a0, i
; BTVER2-SSE-LABEL: test_pextrd:
; BTVER2-SSE: # %bb.0:
; BTVER2-SSE-NEXT: paddd %xmm0, %xmm0 # sched: [1:0.50]
-; BTVER2-SSE-NEXT: pextrd $3, %xmm0, %eax # sched: [1:0.50]
-; BTVER2-SSE-NEXT: pextrd $1, %xmm0, (%rdi) # sched: [6:1.00]
+; BTVER2-SSE-NEXT: pextrd $3, %xmm0, %eax # sched: [3:1.00]
+; BTVER2-SSE-NEXT: pextrd $1, %xmm0, (%rdi) # sched: [3:1.00]
; BTVER2-SSE-NEXT: retq # sched: [4:1.00]
;
; BTVER2-LABEL: test_pextrd:
; BTVER2: # %bb.0:
; BTVER2-NEXT: vpaddd %xmm0, %xmm0, %xmm0 # sched: [1:0.50]
-; BTVER2-NEXT: vpextrd $3, %xmm0, %eax # sched: [1:0.50]
-; BTVER2-NEXT: vpextrd $1, %xmm0, (%rdi) # sched: [6:1.00]
+; BTVER2-NEXT: vpextrd $3, %xmm0, %eax # sched: [3:1.00]
+; BTVER2-NEXT: vpextrd $1, %xmm0, (%rdi) # sched: [3:1.00]
; BTVER2-NEXT: retq # sched: [4:1.00]
;
; ZNVER1-SSE-LABEL: test_pextrd:
@@ -1872,14 +1872,14 @@ define i64 @test_pextrq(<2 x i64> %a0, <
;
; BTVER2-SSE-LABEL: test_pextrq:
; BTVER2-SSE: # %bb.0:
-; BTVER2-SSE-NEXT: pextrq $1, %xmm0, %rax # sched: [1:0.50]
-; BTVER2-SSE-NEXT: pextrq $1, %xmm0, (%rdi) # sched: [6:1.00]
+; BTVER2-SSE-NEXT: pextrq $1, %xmm0, %rax # sched: [3:1.00]
+; BTVER2-SSE-NEXT: pextrq $1, %xmm0, (%rdi) # sched: [3:1.00]
; BTVER2-SSE-NEXT: retq # sched: [4:1.00]
;
; BTVER2-LABEL: test_pextrq:
; BTVER2: # %bb.0:
-; BTVER2-NEXT: vpextrq $1, %xmm0, %rax # sched: [1:0.50]
-; BTVER2-NEXT: vpextrq $1, %xmm0, (%rdi) # sched: [6:1.00]
+; BTVER2-NEXT: vpextrq $1, %xmm0, %rax # sched: [3:1.00]
+; BTVER2-NEXT: vpextrq $1, %xmm0, (%rdi) # sched: [3:1.00]
; BTVER2-NEXT: retq # sched: [4:1.00]
;
; ZNVER1-SSE-LABEL: test_pextrq:
@@ -1974,14 +1974,14 @@ define i32 @test_pextrw(<8 x i16> %a0, i
;
; BTVER2-SSE-LABEL: test_pextrw:
; BTVER2-SSE: # %bb.0:
-; BTVER2-SSE-NEXT: pextrw $3, %xmm0, %eax # sched: [1:0.50]
-; BTVER2-SSE-NEXT: pextrw $1, %xmm0, (%rdi) # sched: [6:1.00]
+; BTVER2-SSE-NEXT: pextrw $3, %xmm0, %eax # sched: [3:1.00]
+; BTVER2-SSE-NEXT: pextrw $1, %xmm0, (%rdi) # sched: [3:1.00]
; BTVER2-SSE-NEXT: retq # sched: [4:1.00]
;
; BTVER2-LABEL: test_pextrw:
; BTVER2: # %bb.0:
-; BTVER2-NEXT: vpextrw $3, %xmm0, %eax # sched: [1:0.50]
-; BTVER2-NEXT: vpextrw $1, %xmm0, (%rdi) # sched: [6:1.00]
+; BTVER2-NEXT: vpextrw $3, %xmm0, %eax # sched: [3:1.00]
+; BTVER2-NEXT: vpextrw $1, %xmm0, (%rdi) # sched: [3:1.00]
; BTVER2-NEXT: retq # sched: [4:1.00]
;
; ZNVER1-SSE-LABEL: test_pextrw:
Modified: llvm/trunk/test/tools/llvm-mca/X86/BtVer2/resources-avx1.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-mca/X86/BtVer2/resources-avx1.s?rev=329524&r1=329523&r2=329524&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-mca/X86/BtVer2/resources-avx1.s (original)
+++ llvm/trunk/test/tools/llvm-mca/X86/BtVer2/resources-avx1.s Sun Apr 8 04:26:26 2018
@@ -1182,8 +1182,8 @@ vzeroupper
# CHECK-NEXT: 10 17 6.00 * vdpps $22, (%rax), %ymm1, %ymm2
# CHECK-NEXT: 1 1 0.50 vextractf128 $1, %ymm0, %xmm2
# CHECK-NEXT: 1 1 1.00 * vextractf128 $1, %ymm0, (%rax)
-# CHECK-NEXT: 1 1 0.50 vextractps $1, %xmm0, %ecx
-# CHECK-NEXT: 2 6 1.00 * vextractps $1, %xmm0, (%rax)
+# CHECK-NEXT: 1 3 1.00 vextractps $1, %xmm0, %ecx
+# CHECK-NEXT: 1 3 1.00 * vextractps $1, %xmm0, (%rax)
# CHECK-NEXT: 1 3 1.00 vhaddpd %xmm0, %xmm1, %xmm2
# CHECK-NEXT: 1 8 1.00 * vhaddpd (%rax), %xmm1, %xmm2
# CHECK-NEXT: 2 3 2.00 vhaddpd %ymm0, %ymm1, %ymm2
@@ -1427,14 +1427,14 @@ vzeroupper
# CHECK-NEXT: 2 6 2.00 * vpermilps $1, (%rax), %ymm2
# CHECK-NEXT: 6 3 3.00 vpermilps %ymm0, %ymm1, %ymm2
# CHECK-NEXT: 6 8 3.00 * vpermilps (%rax), %ymm1, %ymm2
-# CHECK-NEXT: 1 1 0.50 vpextrb $1, %xmm0, %ecx
-# CHECK-NEXT: 2 6 1.00 * vpextrb $1, %xmm0, (%rax)
-# CHECK-NEXT: 1 1 0.50 vpextrd $1, %xmm0, %ecx
-# CHECK-NEXT: 2 6 1.00 * vpextrd $1, %xmm0, (%rax)
-# CHECK-NEXT: 1 1 0.50 vpextrq $1, %xmm0, %rcx
-# CHECK-NEXT: 2 6 1.00 * vpextrq $1, %xmm0, (%rax)
-# CHECK-NEXT: 1 1 0.50 vpextrw $1, %xmm0, %ecx
-# CHECK-NEXT: 2 6 1.00 * vpextrw $1, %xmm0, (%rax)
+# CHECK-NEXT: 1 3 1.00 vpextrb $1, %xmm0, %ecx
+# CHECK-NEXT: 1 3 1.00 * vpextrb $1, %xmm0, (%rax)
+# CHECK-NEXT: 1 3 1.00 vpextrd $1, %xmm0, %ecx
+# CHECK-NEXT: 1 3 1.00 * vpextrd $1, %xmm0, (%rax)
+# CHECK-NEXT: 1 3 1.00 vpextrq $1, %xmm0, %rcx
+# CHECK-NEXT: 1 3 1.00 * vpextrq $1, %xmm0, (%rax)
+# CHECK-NEXT: 1 3 1.00 vpextrw $1, %xmm0, %ecx
+# CHECK-NEXT: 1 3 1.00 * vpextrw $1, %xmm0, (%rax)
# CHECK-NEXT: 1 1 0.50 vphaddd %xmm0, %xmm1, %xmm2
# CHECK-NEXT: 1 6 1.00 * vphaddd (%rax), %xmm1, %xmm2
# CHECK-NEXT: 1 1 0.50 vphaddsw %xmm0, %xmm1, %xmm2
@@ -1885,8 +1885,8 @@ vzeroupper
# CHECK-NEXT: - - - 6.00 6.00 - 2.00 2.00 - - - - - - vdpps $22, (%rax), %ymm1, %ymm2
# CHECK-NEXT: - - - 0.50 0.50 0.50 0.50 - - - - - - - vextractf128 $1, %ymm0, %xmm2
# CHECK-NEXT: - - - - - - 1.00 - - 1.00 1.00 - - - vextractf128 $1, %ymm0, (%rax)
-# CHECK-NEXT: - - - 0.50 0.50 0.50 0.50 - - - - - - - vextractps $1, %xmm0, %ecx
-# CHECK-NEXT: - - - 0.50 0.50 0.50 0.50 1.00 - 1.00 - - - - vextractps $1, %xmm0, (%rax)
+# CHECK-NEXT: 1.00 - - 1.00 - 1.00 - - - - - - - - vextractps $1, %xmm0, %ecx
+# CHECK-NEXT: - - - - - - 1.00 - - 1.00 1.00 - - - vextractps $1, %xmm0, (%rax)
# CHECK-NEXT: - - - 1.00 - 1.00 - - - - - - - - vhaddpd %xmm0, %xmm1, %xmm2
# CHECK-NEXT: - - - 1.00 - 1.00 - 1.00 - - - - - - vhaddpd (%rax), %xmm1, %xmm2
# CHECK-NEXT: - - - 2.00 - 2.00 - - - - - - - - vhaddpd %ymm0, %ymm1, %ymm2
@@ -2130,14 +2130,14 @@ vzeroupper
# CHECK-NEXT: - - - 1.00 1.00 1.00 1.00 2.00 - - - - - - vpermilps $1, (%rax), %ymm2
# CHECK-NEXT: - - - 3.00 3.00 1.00 1.00 - - - - - - - vpermilps %ymm0, %ymm1, %ymm2
# CHECK-NEXT: - - - 3.00 3.00 1.00 1.00 2.00 - - - - - - vpermilps (%rax), %ymm1, %ymm2
-# CHECK-NEXT: - - - - - 0.50 0.50 - - - - 0.50 0.50 - vpextrb $1, %xmm0, %ecx
-# CHECK-NEXT: - - - - - 0.50 0.50 1.00 - 1.00 - 0.50 0.50 - vpextrb $1, %xmm0, (%rax)
-# CHECK-NEXT: - - - - - 0.50 0.50 - - - - 0.50 0.50 - vpextrd $1, %xmm0, %ecx
-# CHECK-NEXT: - - - - - 0.50 0.50 1.00 - 1.00 - 0.50 0.50 - vpextrd $1, %xmm0, (%rax)
-# CHECK-NEXT: - - - - - 0.50 0.50 - - - - 0.50 0.50 - vpextrq $1, %xmm0, %rcx
-# CHECK-NEXT: - - - - - 0.50 0.50 1.00 - 1.00 - 0.50 0.50 - vpextrq $1, %xmm0, (%rax)
-# CHECK-NEXT: - - - - - 0.50 0.50 - - - - 0.50 0.50 - vpextrw $1, %xmm0, %ecx
-# CHECK-NEXT: - - - - - 0.50 0.50 1.00 - 1.00 - 0.50 0.50 - vpextrw $1, %xmm0, (%rax)
+# CHECK-NEXT: 1.00 - - 1.00 - 1.00 - - - - - - - - vpextrb $1, %xmm0, %ecx
+# CHECK-NEXT: - - - - - - 1.00 - - 1.00 1.00 - - - vpextrb $1, %xmm0, (%rax)
+# CHECK-NEXT: 1.00 - - 1.00 - 1.00 - - - - - - - - vpextrd $1, %xmm0, %ecx
+# CHECK-NEXT: - - - - - - 1.00 - - 1.00 1.00 - - - vpextrd $1, %xmm0, (%rax)
+# CHECK-NEXT: 1.00 - - 1.00 - 1.00 - - - - - - - - vpextrq $1, %xmm0, %rcx
+# CHECK-NEXT: - - - - - - 1.00 - - 1.00 1.00 - - - vpextrq $1, %xmm0, (%rax)
+# CHECK-NEXT: 1.00 - - 1.00 - 1.00 - - - - - - - - vpextrw $1, %xmm0, %ecx
+# CHECK-NEXT: - - - - - - 1.00 - - 1.00 1.00 - - - vpextrw $1, %xmm0, (%rax)
# CHECK-NEXT: - - - - - 0.50 0.50 - - - - 0.50 0.50 - vphaddd %xmm0, %xmm1, %xmm2
# CHECK-NEXT: - - - - - 0.50 0.50 1.00 - - - 0.50 0.50 - vphaddd (%rax), %xmm1, %xmm2
# CHECK-NEXT: - - - - - 0.50 0.50 - - - - 0.50 0.50 - vphaddsw %xmm0, %xmm1, %xmm2
Modified: llvm/trunk/test/tools/llvm-mca/X86/BtVer2/resources-sse2.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-mca/X86/BtVer2/resources-sse2.s?rev=329524&r1=329523&r2=329524&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-mca/X86/BtVer2/resources-sse2.s (original)
+++ llvm/trunk/test/tools/llvm-mca/X86/BtVer2/resources-sse2.s Sun Apr 8 04:26:26 2018
@@ -540,7 +540,7 @@ xorpd (%rax), %xmm2
# CHECK-NEXT: - - - - - 0.50 0.50 1.00 - - - 0.50 0.50 - pcmpgtd (%rax), %xmm2
# CHECK-NEXT: - - - - - 0.50 0.50 - - - - 0.50 0.50 - pcmpgtw %xmm0, %xmm2
# CHECK-NEXT: - - - - - 0.50 0.50 1.00 - - - 0.50 0.50 - pcmpgtw (%rax), %xmm2
-# CHECK-NEXT: - - - - - 0.50 0.50 - - - - 0.50 0.50 - pextrw $1, %xmm0, %ecx
+# CHECK-NEXT: 1.00 - - 1.00 - 1.00 - - - - - - - - pextrw $1, %xmm0, %ecx
# CHECK-NEXT: - - - - - 1.00 - - - - - - - 1.00 pmaddwd %xmm0, %xmm2
# CHECK-NEXT: - - - - - 1.00 - 1.00 - - - - - 1.00 pmaddwd (%rax), %xmm2
# CHECK-NEXT: - - - - - 0.50 0.50 - - - - 0.50 0.50 - pmaxsw %xmm0, %xmm2
Modified: llvm/trunk/test/tools/llvm-mca/X86/BtVer2/resources-sse41.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-mca/X86/BtVer2/resources-sse41.s?rev=329524&r1=329523&r2=329524&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-mca/X86/BtVer2/resources-sse41.s (original)
+++ llvm/trunk/test/tools/llvm-mca/X86/BtVer2/resources-sse41.s Sun Apr 8 04:26:26 2018
@@ -175,8 +175,8 @@ roundss $1, (%rax), %xmm2
# CHECK-NEXT: - - - 3.00 3.00 - 1.00 1.00 - - - - - - dppd $22, (%rax), %xmm2
# CHECK-NEXT: - - - 3.00 3.00 - 1.00 - - - - - - - dpps $22, %xmm0, %xmm2
# CHECK-NEXT: - - - 3.00 3.00 - 1.00 1.00 - - - - - - dpps $22, (%rax), %xmm2
-# CHECK-NEXT: - - - 0.50 0.50 0.50 0.50 - - - - - - - extractps $1, %xmm0, %ecx
-# CHECK-NEXT: - - - 0.50 0.50 0.50 0.50 1.00 - 1.00 - - - - extractps $1, %xmm0, (%rax)
+# CHECK-NEXT: 1.00 - - 1.00 - 1.00 - - - - - - - - extractps $1, %xmm0, %ecx
+# CHECK-NEXT: - - - - - - 1.00 - - 1.00 1.00 - - - extractps $1, %xmm0, (%rax)
# CHECK-NEXT: - - - 0.50 0.50 0.50 0.50 - - - - - - - insertps $1, %xmm0, %xmm2
# CHECK-NEXT: - - - 0.50 0.50 0.50 0.50 1.00 - - - - - - insertps $1, (%rax), %xmm2
# CHECK-NEXT: - - - - - 0.50 0.50 1.00 - - - 0.50 0.50 - movntdqa (%rax), %xmm2
@@ -190,13 +190,13 @@ roundss $1, (%rax), %xmm2
# CHECK-NEXT: - - - - - 0.50 0.50 1.00 - - - 0.50 0.50 - pblendw $11, (%rax), %xmm2
# CHECK-NEXT: - - - - - 0.50 0.50 - - - - 0.50 0.50 - pcmpeqq %xmm0, %xmm2
# CHECK-NEXT: - - - - - 0.50 0.50 1.00 - - - 0.50 0.50 - pcmpeqq (%rax), %xmm2
-# CHECK-NEXT: - - - - - 0.50 0.50 - - - - 0.50 0.50 - pextrb $1, %xmm0, %ecx
-# CHECK-NEXT: - - - - - 0.50 0.50 1.00 - 1.00 - 0.50 0.50 - pextrb $1, %xmm0, (%rax)
-# CHECK-NEXT: - - - - - 0.50 0.50 - - - - 0.50 0.50 - pextrd $1, %xmm0, %ecx
-# CHECK-NEXT: - - - - - 0.50 0.50 1.00 - 1.00 - 0.50 0.50 - pextrd $1, %xmm0, (%rax)
-# CHECK-NEXT: - - - - - 0.50 0.50 - - - - 0.50 0.50 - pextrq $1, %xmm0, %rcx
-# CHECK-NEXT: - - - - - 0.50 0.50 1.00 - 1.00 - 0.50 0.50 - pextrq $1, %xmm0, (%rax)
-# CHECK-NEXT: - - - - - 0.50 0.50 1.00 - 1.00 - 0.50 0.50 - pextrw $1, %xmm0, (%rax)
+# CHECK-NEXT: 1.00 - - 1.00 - 1.00 - - - - - - - - pextrb $1, %xmm0, %ecx
+# CHECK-NEXT: - - - - - - 1.00 - - 1.00 1.00 - - - pextrb $1, %xmm0, (%rax)
+# CHECK-NEXT: 1.00 - - 1.00 - 1.00 - - - - - - - - pextrd $1, %xmm0, %ecx
+# CHECK-NEXT: - - - - - - 1.00 - - 1.00 1.00 - - - pextrd $1, %xmm0, (%rax)
+# CHECK-NEXT: 1.00 - - 1.00 - 1.00 - - - - - - - - pextrq $1, %xmm0, %rcx
+# CHECK-NEXT: - - - - - - 1.00 - - 1.00 1.00 - - - pextrq $1, %xmm0, (%rax)
+# CHECK-NEXT: - - - - - - 1.00 - - 1.00 1.00 - - - pextrw $1, %xmm0, (%rax)
# CHECK-NEXT: - - - - - 1.00 - - - - - - - 1.00 phminposuw %xmm0, %xmm2
# CHECK-NEXT: - - - - - 1.00 - 1.00 - - - - - 1.00 phminposuw (%rax), %xmm2
# CHECK-NEXT: - - - - - 0.50 0.50 - - - - 0.50 0.50 - pinsrb $1, %eax, %xmm1
More information about the llvm-commits
mailing list