[X86][SNB] Fix typo in PEXTRDmr instregex, was missing VPEXTRDmr.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 10 May 2018 17:30:49 +0000 (17:30 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 10 May 2018 17:30:49 +0000 (17:30 +0000)
llvm-svn: 332002

llvm/lib/Target/X86/X86SchedSandyBridge.td
llvm/test/tools/llvm-mca/X86/SandyBridge/resources-avx1.s

index 821f657..9e836df 100644 (file)
@@ -800,10 +800,8 @@ def SBWriteResGroup45 : SchedWriteRes<[SBPort0,SBPort4,SBPort23,SBPort15]> {
   let NumMicroOps = 4;
   let ResourceCycles = [1,1,1,1];
 }
-def: InstRW<[SBWriteResGroup45], (instregex "PEXTRDmr",
-                                            "(V?)PEXTRQmr",
-                                            "PUSHF16",
-                                            "PUSHF64")>;
+def: InstRW<[SBWriteResGroup45], (instregex "(V?)PEXTR(D|Q)mr",
+                                            "PUSHF(16|64)")>;
 
 def SBWriteResGroup46 : SchedWriteRes<[SBPort4,SBPort5,SBPort01,SBPort23]> {
   let Latency = 5;
index 8d880ea..1bf54d7 100644 (file)
@@ -1430,7 +1430,7 @@ vzeroupper
 # CHECK-NEXT:  2      3     1.00                       vpextrb $1, %xmm0, %ecx
 # CHECK-NEXT:  3      5     1.00           *           vpextrb $1, %xmm0, (%rax)
 # CHECK-NEXT:  2      3     1.00                       vpextrd $1, %xmm0, %ecx
-# CHECK-NEXT:  3      5     1.00           *           vpextrd $1, %xmm0, (%rax)
+# CHECK-NEXT:  4      5     1.00           *           vpextrd $1, %xmm0, (%rax)
 # CHECK-NEXT:  2      3     1.00                       vpextrq $1, %xmm0, %rcx
 # CHECK-NEXT:  4      5     1.00           *           vpextrq $1, %xmm0, (%rax)
 # CHECK-NEXT:  2      3     1.00                       vpextrw $1, %xmm0, %ecx
@@ -1714,7 +1714,7 @@ vzeroupper
 
 # CHECK:      Resource pressure per iteration:
 # CHECK-NEXT: [0]    [1]    [2]    [3]    [4]    [5]    [6.0]  [6.1]
-# CHECK-NEXT:  -     572.00 224.50 307.00 39.00  354.50 177.50 177.50
+# CHECK-NEXT:  -     572.00 225.50 307.00 39.00  354.50 177.50 177.50
 
 # CHECK:      Resource pressure by instruction:
 # CHECK-NEXT: [0]    [1]    [2]    [3]    [4]    [5]    [6.0]  [6.1]   Instructions:
@@ -2130,7 +2130,7 @@ vzeroupper
 # CHECK-NEXT:  -      -     1.00   0.50    -     0.50    -      -      vpextrb $1, %xmm0, %ecx
 # CHECK-NEXT:  -      -      -     0.50   1.00   0.50   0.50   0.50    vpextrb $1, %xmm0, (%rax)
 # CHECK-NEXT:  -      -     1.00   0.50    -     0.50    -      -      vpextrd $1, %xmm0, %ecx
-# CHECK-NEXT:  -      -      -     0.50   1.00   0.50   0.50   0.50    vpextrd $1, %xmm0, (%rax)
+# CHECK-NEXT:  -      -     1.00   0.50   1.00   0.50   0.50   0.50    vpextrd $1, %xmm0, (%rax)
 # CHECK-NEXT:  -      -     1.00   0.50    -     0.50    -      -      vpextrq $1, %xmm0, %rcx
 # CHECK-NEXT:  -      -     1.00   0.50   1.00   0.50   0.50   0.50    vpextrq $1, %xmm0, (%rax)
 # CHECK-NEXT:  -      -     1.00   0.50    -     0.50    -      -      vpextrw $1, %xmm0, %ecx