Skip to content

Commit 070ac1d

Browse files
committed
[SystemZ] vec-perm-14.ll - partially regenerate checks so we can see all the vperm codegen
We can't use the script as we need to keep the shuffle mask constant pool checks, but do more than just check that a second vperm isn't generated
1 parent c2f5e43 commit 070ac1d

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

llvm/test/CodeGen/SystemZ/vec-perm-14.ll

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,23 @@
44

55
define void @fun() {
66
; CHECK-LABEL: fun:
7-
; CHECK: vperm
8-
; CHECK-NOT: vperm
7+
; CHECK: # %bb.0: # %bb
8+
; CHECK-NEXT: vlrepf %v0, 0(%r1)
9+
; CHECK-NEXT: vgbm %v1, 0
10+
; CHECK-NEXT: larl %r1, .LCPI0_0
11+
; CHECK-NEXT: vceqb %v0, %v0, %v1
12+
; CHECK-NEXT: vl %v1, 0(%r1), 3
13+
; CHECK-NEXT: vperm %v0, %v0, %v0, %v1
14+
; CHECK-NEXT: vlgvf %r0, %v0, 0
15+
; CHECK-NEXT: tmll %r0, 1
16+
; CHECK-NEXT: je .LBB0_2
17+
; CHECK-NEXT: # %bb.1: # %bb1
18+
; CHECK-NEXT: .LBB0_2: # %bb2
19+
; CHECK-NEXT: vlgvf %r0, %v0, 1
20+
; CHECK-NEXT: tmll %r0, 1
21+
; CHECK-NEXT: je .LBB0_4
22+
; CHECK-NEXT: # %bb.3: # %bb3
23+
; CHECK-NEXT: .LBB0_4: # %bb4
924
bb:
1025
%tmp = load <4 x i8>, ptr undef
1126
%tmp1 = icmp eq <4 x i8> zeroinitializer, %tmp

0 commit comments

Comments
 (0)