llvm.org GIT mirror llvm / 94e516e
[X86][AVX] Fix typo in vector rotate tests Was preventing rotate matching git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308171 91177308-0d34-0410-b5e6-96231b3b80d8 Simon Pilgrim 3 years ago
2 changed file(s) with 11 addition(s) and 17 deletion(s). Raw diff Collapse all Expand all
465465 ; AVX1-NEXT: vpsllq $4, %xmm0, %xmm4
466466 ; AVX1-NEXT: vpblendw {{.*#+}} xmm3 = xmm4[0,1,2,3],xmm3[4,5,6,7]
467467 ; AVX1-NEXT: vinsertf128 $1, %xmm2, %ymm3, %ymm2
468 ; AVX1-NEXT: vpsrlq $2, %xmm1, %xmm3
468 ; AVX1-NEXT: vpsrlq $4, %xmm1, %xmm3
469469 ; AVX1-NEXT: vpsrlq $14, %xmm1, %xmm1
470470 ; AVX1-NEXT: vpblendw {{.*#+}} xmm1 = xmm1[0,1,2,3],xmm3[4,5,6,7]
471471 ; AVX1-NEXT: vpsrlq $50, %xmm0, %xmm3
491491 ;
492492 ; XOPAVX1-LABEL: constant_rotate_v4i64:
493493 ; XOPAVX1: # BB#0:
494 ; XOPAVX1-NEXT: vpshlq {{.*}}(%rip), %xmm0, %xmm1
495 ; XOPAVX1-NEXT: vextractf128 $1, %ymm0, %xmm2
496 ; XOPAVX1-NEXT: vpshlq {{.*}}(%rip), %xmm2, %xmm3
497 ; XOPAVX1-NEXT: vinsertf128 $1, %xmm3, %ymm1, %ymm1
498 ; XOPAVX1-NEXT: vpxor %xmm3, %xmm3, %xmm3
499 ; XOPAVX1-NEXT: vpsubq {{.*}}(%rip), %xmm3, %xmm4
500 ; XOPAVX1-NEXT: vpshlq %xmm4, %xmm2, %xmm2
501 ; XOPAVX1-NEXT: vpsubq {{.*}}(%rip), %xmm3, %xmm3
502 ; XOPAVX1-NEXT: vpshlq %xmm3, %xmm0, %xmm0
503 ; XOPAVX1-NEXT: vinsertf128 $1, %xmm2, %ymm0, %ymm0
504 ; XOPAVX1-NEXT: vorps %ymm0, %ymm1, %ymm0
494 ; XOPAVX1-NEXT: vprotq {{.*}}(%rip), %xmm0, %xmm1
495 ; XOPAVX1-NEXT: vextractf128 $1, %ymm0, %xmm0
496 ; XOPAVX1-NEXT: vprotq {{.*}}(%rip), %xmm0, %xmm0
497 ; XOPAVX1-NEXT: vinsertf128 $1, %xmm0, %ymm1, %ymm0
505498 ; XOPAVX1-NEXT: retq
506499 ;
507500 ; XOPAVX2-LABEL: constant_rotate_v4i64:
508501 ; XOPAVX2: # BB#0:
509 ; XOPAVX2-NEXT: vpsllvq {{.*}}(%rip), %ymm0, %ymm1
510 ; XOPAVX2-NEXT: vpsrlvq {{.*}}(%rip), %ymm0, %ymm0
511 ; XOPAVX2-NEXT: vpor %ymm0, %ymm1, %ymm0
502 ; XOPAVX2-NEXT: vprotq {{.*}}(%rip), %xmm0, %xmm1
503 ; XOPAVX2-NEXT: vextracti128 $1, %ymm0, %xmm0
504 ; XOPAVX2-NEXT: vprotq {{.*}}(%rip), %xmm0, %xmm0
505 ; XOPAVX2-NEXT: vinserti128 $1, %xmm0, %ymm1, %ymm0
512506 ; XOPAVX2-NEXT: retq
513507 %shl = shl <4 x i64> %a,
514 %lshr = lshr <4 x i64> %a, 2>
508 %lshr = lshr <4 x i64> %a, 4>
515509 %or = or <4 x i64> %shl, %lshr
516510 ret <4 x i64> %or
517511 }
319319 ; AVX512-NEXT: vporq %zmm0, %zmm1, %zmm0
320320 ; AVX512-NEXT: retq
321321 %shl = shl <8 x i64> %a,
322 %lshr = lshr <8 x i64> %a, 2, i64 60, i64 50, i64 14, i64 2>
322 %lshr = lshr <8 x i64> %a, 4, i64 60, i64 50, i64 14, i64 4>
323323 %or = or <8 x i64> %shl, %lshr
324324 ret <8 x i64> %or
325325 }