Skip to content

Commit f69cbb4

Browse files
committed
[X86] Regenerate vp2intersect tests
Enable nounwind to remove unnecessary stack manipulation code llvm-svn: 367421
1 parent c8c5226 commit f69cbb4

File tree

1 file changed

+21
-16
lines changed

1 file changed

+21
-16
lines changed

llvm/test/CodeGen/X86/vp2intersect_multiple_pairs.ll

+21-16
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,15 @@
44

55
; Test with more than four live mask pairs
66

7-
define void @test(<16 x i32> %a0, <16 x i32> %b0,
8-
<16 x i32> %a1, <16 x i32> %b1,
9-
<16 x i32> %a2, <16 x i32> %b2,
10-
<16 x i32> %a3, <16 x i32> %b3,
11-
<16 x i32> %a4, <16 x i32> %b4,
12-
i16* nocapture %m0, i16* nocapture %m1) {
7+
define void @test(<16 x i32> %a0, <16 x i32> %b0, <16 x i32> %a1, <16 x i32> %b1, <16 x i32> %a2, <16 x i32> %b2, <16 x i32> %a3, <16 x i32> %b3, <16 x i32> %a4, <16 x i32> %b4, i16* nocapture %m0, i16* nocapture %m1) nounwind {
138
; X86-LABEL: test:
149
; X86: # %bb.0: # %entry
1510
; X86-NEXT: pushl %ebp
16-
; X86-NEXT: .cfi_def_cfa_offset 8
17-
; X86-NEXT: .cfi_offset %ebp, -8
1811
; X86-NEXT: movl %esp, %ebp
19-
; X86-NEXT: .cfi_def_cfa_register %ebp
2012
; X86-NEXT: pushl %edi
2113
; X86-NEXT: pushl %esi
2214
; X86-NEXT: andl $-64, %esp
2315
; X86-NEXT: subl $64, %esp
24-
; X86-NEXT: .cfi_offset %esi, -16
25-
; X86-NEXT: .cfi_offset %edi, -12
2616
; X86-NEXT: movl 456(%ebp), %esi
2717
; X86-NEXT: vmovaps 328(%ebp), %zmm3
2818
; X86-NEXT: vmovaps 200(%ebp), %zmm4
@@ -62,20 +52,24 @@ define void @test(<16 x i32> %a0, <16 x i32> %b0,
6252
; X86-NEXT: kmovw %k2, %edi
6353
; X86-NEXT: addl %ecx, %edx
6454
; X86-NEXT: kmovw %k1, %ecx
55+
; X86-NEXT: addl %edi, %ecx
56+
; X86-NEXT: addl %eax, %ecx
57+
; X86-NEXT: addl %edx, %ecx
58+
; X86-NEXT: movw %cx, (%esi)
59+
; X86-NEXT: leal -8(%ebp), %esp
60+
; X86-NEXT: popl %esi
61+
; X86-NEXT: popl %edi
62+
; X86-NEXT: popl %ebp
63+
; X86-NEXT: retl
6564
;
6665
; X64-LABEL: test:
6766
; X64: # %bb.0: # %entry
6867
; X64-NEXT: pushq %rbp
69-
; X64-NEXT: .cfi_def_cfa_offset 16
70-
; X64-NEXT: .cfi_offset %rbp, -16
7168
; X64-NEXT: movq %rsp, %rbp
72-
; X64-NEXT: .cfi_def_cfa_register %rbp
7369
; X64-NEXT: pushq %r14
7470
; X64-NEXT: pushq %rbx
7571
; X64-NEXT: andq $-64, %rsp
7672
; X64-NEXT: subq $64, %rsp
77-
; X64-NEXT: .cfi_offset %rbx, -32
78-
; X64-NEXT: .cfi_offset %r14, -24
7973
; X64-NEXT: movq %rdi, %r14
8074
; X64-NEXT: vmovaps 16(%rbp), %zmm8
8175
; X64-NEXT: vp2intersectd %zmm1, %zmm0, %k0
@@ -111,6 +105,17 @@ define void @test(<16 x i32> %a0, <16 x i32> %b0,
111105
; X64-NEXT: kmovw {{[0-9]+}}(%rsp), %k1
112106
; X64-NEXT: kmovw %k0, %edi
113107
; X64-NEXT: kmovw %k1, %ebx
108+
; X64-NEXT: addl %edi, %eax
109+
; X64-NEXT: addl %ecx, %edx
110+
; X64-NEXT: leal (%rbx,%rsi), %ecx
111+
; X64-NEXT: addl %eax, %ecx
112+
; X64-NEXT: addl %edx, %ecx
113+
; X64-NEXT: movw %cx, (%r14)
114+
; X64-NEXT: leaq -16(%rbp), %rsp
115+
; X64-NEXT: popq %rbx
116+
; X64-NEXT: popq %r14
117+
; X64-NEXT: popq %rbp
118+
; X64-NEXT: retq
114119
entry:
115120
%0 = call { <16 x i1>, <16 x i1> } @llvm.x86.avx512.vp2intersect.d.512(<16 x i32> %a0, <16 x i32> %b0)
116121
%1 = call { <16 x i1>, <16 x i1> } @llvm.x86.avx512.vp2intersect.d.512(<16 x i32> %a1, <16 x i32> %b1)

0 commit comments

Comments
 (0)