llvm.org GIT mirror llvm / e9bd0c9
[X86][Btver2] Fix MMX PSHUFB schedule Match AMD Fam16h SOG + llvm-exegesis tests git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@343701 91177308-0d34-0410-b5e6-96231b3b80d8 Simon Pilgrim 1 year, 9 months ago
3 changed file(s) with 8 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
499499 defm : JWriteResFpuPair;
500500 defm : X86WriteResPairUnsupported;
501501 defm : X86WriteResPairUnsupported;
502 defm : JWriteResFpuPair4], 3>;
502 defm : JWriteResFpuPair1], 1>;
503503 defm : JWriteResFpuPair;
504504 defm : X86WriteResPairUnsupported;
505505 defm : X86WriteResPairUnsupported;
47144714 ;
47154715 ; BTVER2-LABEL: test_pshufb:
47164716 ; BTVER2: # %bb.0:
4717 ; BTVER2-NEXT: pshufb %mm1, %mm0 # sched: [2:2.00]
4718 ; BTVER2-NEXT: pshufb (%rdi), %mm0 # sched: [7:2.00]
4717 ; BTVER2-NEXT: pshufb %mm1, %mm0 # sched: [2:0.50]
4718 ; BTVER2-NEXT: pshufb (%rdi), %mm0 # sched: [7:1.00]
47194719 ; BTVER2-NEXT: movq %mm0, %rax # sched: [4:1.00]
47204720 ; BTVER2-NEXT: retq # sched: [4:1.00]
47214721 ;
153153 # CHECK-NEXT: 1 7 1.00 * pmulhrsw (%rax), %mm2
154154 # CHECK-NEXT: 1 2 1.00 pmulhrsw %xmm0, %xmm2
155155 # CHECK-NEXT: 1 7 1.00 * pmulhrsw (%rax), %xmm2
156 # CHECK-NEXT: 3 2 2.00 pshufb %mm0, %mm2
157 # CHECK-NEXT: 3 7 2.00 * pshufb (%rax), %mm2
156 # CHECK-NEXT: 1 2 0.50 pshufb %mm0, %mm2
157 # CHECK-NEXT: 1 7 1.00 * pshufb (%rax), %mm2
158158 # CHECK-NEXT: 3 2 2.00 pshufb %xmm0, %xmm2
159159 # CHECK-NEXT: 3 7 2.00 * pshufb (%rax), %xmm2
160160 # CHECK-NEXT: 1 1 0.50 psignb %mm0, %mm2
188188
189189 # CHECK: Resource pressure per iteration:
190190 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
191 # CHECK-NEXT: - - - - - 36.00 28.00 32.00 - - - 34.00 34.00 8.00
191 # CHECK-NEXT: - - - - - 36.00 28.00 32.00 - - - 31.00 31.00 8.00
192192
193193 # CHECK: Resource pressure by instruction:
194194 # CHECK-NEXT: [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] Instructions:
240240 # CHECK-NEXT: - - - - - 1.00 - 1.00 - - - - - 1.00 pmulhrsw (%rax), %mm2
241241 # CHECK-NEXT: - - - - - 1.00 - - - - - - - 1.00 pmulhrsw %xmm0, %xmm2
242242 # CHECK-NEXT: - - - - - 1.00 - 1.00 - - - - - 1.00 pmulhrsw (%rax), %xmm2
243 # CHECK-NEXT: - - - - - 0.50 0.50 - - - - 2.00 2.00 - pshufb %mm0, %mm2
244 # CHECK-NEXT: - - - - - 0.50 0.50 1.00 - - - 2.00 2.00 - pshufb (%rax), %mm2
243 # CHECK-NEXT: - - - - - 0.50 0.50 - - - - 0.50 0.50 - pshufb %mm0, %mm2
244 # CHECK-NEXT: - - - - - 0.50 0.50 1.00 - - - 0.50 0.50 - pshufb (%rax), %mm2
245245 # CHECK-NEXT: - - - - - 0.50 0.50 - - - - 2.00 2.00 - pshufb %xmm0, %xmm2
246246 # CHECK-NEXT: - - - - - 0.50 0.50 1.00 - - - 2.00 2.00 - pshufb (%rax), %xmm2
247247 # CHECK-NEXT: - - - - - 0.50 0.50 - - - - 0.50 0.50 - psignb %mm0, %mm2