llvm.org GIT mirror llvm / 0ad8ddd
[X86][AVX] Regenerate tests with constant broadcast comments git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308131 91177308-0d34-0410-b5e6-96231b3b80d8 Simon Pilgrim 3 years ago
4 changed file(s) with 15 addition(s) and 15 deletion(s). Raw diff Collapse all Expand all
1818 define <4 x i32> @sext_inc_vec(<4 x i1> %x) nounwind {
1919 ; CHECK-LABEL: sext_inc_vec:
2020 ; CHECK: # BB#0:
21 ; CHECK-NEXT: vbroadcastss {{.*}}(%rip), %xmm1
21 ; CHECK-NEXT: vbroadcastss {{.*#+}} xmm1 = [1,1,1,1]
2222 ; CHECK-NEXT: vandnps %xmm1, %xmm0, %xmm0
2323 ; CHECK-NEXT: retq
2424 %ext = sext <4 x i1> %x to <4 x i32>
3030 ; CHECK-LABEL: cmpgt_sext_inc_vec:
3131 ; CHECK: # BB#0:
3232 ; CHECK-NEXT: vpcmpgtd %xmm1, %xmm0, %xmm0
33 ; CHECK-NEXT: vpbroadcastd {{.*}}(%rip), %xmm1
33 ; CHECK-NEXT: vpbroadcastd {{.*#+}} xmm1 = [1,1,1,1]
3434 ; CHECK-NEXT: vpandn %xmm1, %xmm0, %xmm0
3535 ; CHECK-NEXT: retq
3636 %cmp = icmp sgt <4 x i32> %x, %y
5555 ; CHECK-LABEL: cmpgt_sext_inc_vec256:
5656 ; CHECK: # BB#0:
5757 ; CHECK-NEXT: vpcmpgtq %ymm1, %ymm0, %ymm0
58 ; CHECK-NEXT: vpbroadcastq {{.*}}(%rip), %ymm1
58 ; CHECK-NEXT: vpbroadcastq {{.*#+}} ymm1 = [1,1,1,1]
5959 ; CHECK-NEXT: vpandn %ymm1, %ymm0, %ymm0
6060 ; CHECK-NEXT: retq
6161 %cmp = icmp sgt <4 x i64> %x, %y
9090 ; CHECK-NEXT: vpcmpeqd %xmm2, %xmm2, %xmm2
9191 ; CHECK-NEXT: vpxor %xmm2, %xmm1, %xmm1
9292 ; CHECK-NEXT: vpandn %xmm1, %xmm0, %xmm0
93 ; CHECK-NEXT: vpbroadcastd {{.*}}(%rip), %xmm1
93 ; CHECK-NEXT: vpbroadcastd {{.*#+}} xmm1 = [1,1,1,1]
9494 ; CHECK-NEXT: vpandn %xmm1, %xmm0, %xmm0
9595 ; CHECK-NEXT: retq
9696 %cmp1 = icmp ne <4 x i32> %a, %b
104104 ;
105105 ; AVX-LABEL: mul_v4i32c:
106106 ; AVX: # BB#0: # %entry
107 ; AVX-NEXT: vpbroadcastd {{.*}}(%rip), %xmm1
107 ; AVX-NEXT: vpbroadcastd {{.*#+}} xmm1 = [117,117,117,117]
108108 ; AVX-NEXT: vpmulld %xmm1, %xmm0, %xmm0
109109 ; AVX-NEXT: retq
110110 entry:
522522 ;
523523 ; AVX-LABEL: mul_v8i32c:
524524 ; AVX: # BB#0: # %entry
525 ; AVX-NEXT: vpbroadcastd {{.*}}(%rip), %ymm1
525 ; AVX-NEXT: vpbroadcastd {{.*#+}} ymm1 = [117,117,117,117,117,117,117,117]
526526 ; AVX-NEXT: vpmulld %ymm1, %ymm0, %ymm0
527527 ; AVX-NEXT: retq
528528 entry:
550550 ;
551551 ; AVX-LABEL: mul_v4i64c:
552552 ; AVX: # BB#0: # %entry
553 ; AVX-NEXT: vpbroadcastq {{.*}}(%rip), %ymm1
553 ; AVX-NEXT: vpbroadcastq {{.*#+}} ymm1 = [117,117,117,117]
554554 ; AVX-NEXT: vpmuludq %ymm1, %ymm0, %ymm2
555555 ; AVX-NEXT: vpsrlq $32, %ymm0, %ymm0
556556 ; AVX-NEXT: vpmuludq %ymm1, %ymm0, %ymm0
462462 ;
463463 ; AVX2-LABEL: gt_v4i32:
464464 ; AVX2: # BB#0:
465 ; AVX2-NEXT: vpbroadcastd {{.*}}(%rip), %xmm2
465 ; AVX2-NEXT: vpbroadcastd {{.*#+}} xmm2 = [2147483648,2147483648,2147483648,2147483648]
466466 ; AVX2-NEXT: vpxor %xmm2, %xmm1, %xmm1
467467 ; AVX2-NEXT: vpxor %xmm2, %xmm0, %xmm0
468468 ; AVX2-NEXT: vpcmpgtd %xmm1, %xmm0, %xmm0
475475 ;
476476 ; AVX512-LABEL: gt_v4i32:
477477 ; AVX512: # BB#0:
478 ; AVX512-NEXT: vpbroadcastd {{.*}}(%rip), %xmm2
478 ; AVX512-NEXT: vpbroadcastd {{.*#+}} xmm2 = [2147483648,2147483648,2147483648,2147483648]
479479 ; AVX512-NEXT: vpxor %xmm2, %xmm1, %xmm1
480480 ; AVX512-NEXT: vpxor %xmm2, %xmm0, %xmm0
481481 ; AVX512-NEXT: vpcmpgtd %xmm1, %xmm0, %xmm0
781781 ;
782782 ; AVX2-LABEL: lt_v4i32:
783783 ; AVX2: # BB#0:
784 ; AVX2-NEXT: vpbroadcastd {{.*}}(%rip), %xmm2
784 ; AVX2-NEXT: vpbroadcastd {{.*#+}} xmm2 = [2147483648,2147483648,2147483648,2147483648]
785785 ; AVX2-NEXT: vpxor %xmm2, %xmm0, %xmm0
786786 ; AVX2-NEXT: vpxor %xmm2, %xmm1, %xmm1
787787 ; AVX2-NEXT: vpcmpgtd %xmm0, %xmm1, %xmm0
794794 ;
795795 ; AVX512-LABEL: lt_v4i32:
796796 ; AVX512: # BB#0:
797 ; AVX512-NEXT: vpbroadcastd {{.*}}(%rip), %xmm2
797 ; AVX512-NEXT: vpbroadcastd {{.*#+}} xmm2 = [2147483648,2147483648,2147483648,2147483648]
798798 ; AVX512-NEXT: vpxor %xmm2, %xmm0, %xmm0
799799 ; AVX512-NEXT: vpxor %xmm2, %xmm1, %xmm1
800800 ; AVX512-NEXT: vpcmpgtd %xmm0, %xmm1, %xmm0
5757 ; AVX2-NEXT: vpslld $31, %xmm0, %xmm0
5858 ; AVX2-NEXT: vpmovsxdq %xmm0, %ymm0
5959 ; AVX2-NEXT: movq (%rdi,%rsi,8), %rax
60 ; AVX2-NEXT: vbroadcastsd {{.*}}(%rip), %ymm1
61 ; AVX2-NEXT: vbroadcastsd {{.*}}(%rip), %ymm2
60 ; AVX2-NEXT: vbroadcastsd {{.*#+}} ymm1 = [-0.5,-0.5,-0.5,-0.5]
61 ; AVX2-NEXT: vbroadcastsd {{.*#+}} ymm2 = [0.5,0.5,0.5,0.5]
6262 ; AVX2-NEXT: vblendvpd %ymm0, %ymm1, %ymm2, %ymm0
6363 ; AVX2-NEXT: vmovupd %ymm0, (%rax)
6464 ; AVX2-NEXT: vzeroupper
107107 ;
108108 ; AVX2-LABEL: test3:
109109 ; AVX2: ## BB#0:
110 ; AVX2-NEXT: vpbroadcastd {{.*}}(%rip), %xmm3
110 ; AVX2-NEXT: vpbroadcastd {{.*#+}} xmm3 = [1431655766,1431655766,1431655766,1431655766]
111111 ; AVX2-NEXT: vpshufd {{.*#+}} xmm4 = xmm3[1,1,3,3]
112112 ; AVX2-NEXT: vpshufd {{.*#+}} xmm5 = xmm0[1,1,3,3]
113113 ; AVX2-NEXT: vpmuldq %xmm4, %xmm5, %xmm4
116116 ; AVX2-NEXT: vpblendd {{.*#+}} xmm3 = xmm3[0],xmm4[1],xmm3[2],xmm4[3]
117117 ; AVX2-NEXT: vpsrld $31, %xmm3, %xmm4
118118 ; AVX2-NEXT: vpaddd %xmm4, %xmm3, %xmm3
119 ; AVX2-NEXT: vpbroadcastd {{.*}}(%rip), %xmm4
119 ; AVX2-NEXT: vpbroadcastd {{.*#+}} xmm4 = [3,3,3,3]
120120 ; AVX2-NEXT: vpmulld %xmm4, %xmm3, %xmm3
121121 ; AVX2-NEXT: vpsubd %xmm3, %xmm0, %xmm0
122122 ; AVX2-NEXT: vpxor %xmm3, %xmm3, %xmm3