Skip to content

Commit 4abbace

Browse files
committed
[X86] Add test showing failure to combine shuffle to bit rotation
1 parent 3f76497 commit 4abbace

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

llvm/test/CodeGen/X86/vector-shuffle-combining-xop.ll

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,15 @@ define <4 x i32> @combine_vpperm_10zz32BA(<4 x i32> %a0, <4 x i32> %a1) {
252252
ret <4 x i32> %res3
253253
}
254254

255+
define <16 x i8> @combine_vpperm_as_proti_v8i16(<16 x i8> %a0, <16 x i8> %a1) {
256+
; CHECK-LABEL: combine_vpperm_as_proti_v8i16:
257+
; CHECK: # %bb.0:
258+
; CHECK-NEXT: vpperm {{.*#+}} xmm0 = xmm0[1,0,3,2,5,4,7,6,9,8,11,10,13,12,15,14]
259+
; CHECK-NEXT: ret{{[l|q]}}
260+
%res0 = call <16 x i8> @llvm.x86.xop.vpperm(<16 x i8> %a0, <16 x i8> %a1, <16 x i8> <i8 1, i8 0, i8 3, i8 2, i8 5, i8 4, i8 7, i8 6, i8 9, i8 8, i8 11, i8 10, i8 13, i8 12, i8 15, i8 14>)
261+
ret <16 x i8> %res0
262+
}
263+
255264
define <16 x i8> @combine_shuffle_proti_v2i64(<2 x i64> %a0) {
256265
; CHECK-LABEL: combine_shuffle_proti_v2i64:
257266
; CHECK: # %bb.0:

0 commit comments

Comments
 (0)