Skip to content

Commit c7b29d9

Browse files
Fixing broken test on linux
1 parent 622f767 commit c7b29d9

File tree

4 files changed

+508
-529
lines changed

4 files changed

+508
-529
lines changed

llvm/test/CodeGen/X86/eliminate-redundant-zext.ll

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
; register is a sub-register of the destination and the destination's upper
66
; bits are already known to be zero.
77

8-
; This is the original countholes test case from GitHub issue that demonstrates
8+
; This is the original countholes test case from GitHub issue #160710 that demonstrates
99
; the redundant movzbl %cl, %ecx in the loop
1010
define i32 @countholes(ptr %s) {
1111
; CHECK-LABEL: countholes:
@@ -17,12 +17,11 @@ define i32 @countholes(ptr %s) {
1717
; CHECK-NEXT: # %bb.1: # %while.body.preheader
1818
; CHECK-NEXT: incq %rdi
1919
; CHECK-NEXT: xorl %eax, %eax
20-
; CHECK-NEXT: leaq pre_table(%rip), %rdx
21-
; CHECK-NEXT: .p2align 4, 0x90
20+
; CHECK-NEXT: .p2align 4{{$}}
2221
; CHECK-NEXT: .LBB0_2: # %while.body
2322
; CHECK-NEXT: # =>This Inner Loop Header: Depth=1
24-
; CHECK-NEXT: addl $-48, %ecx
25-
; CHECK-NEXT: addl (%rdx,%rcx,4), %eax
23+
; CHECK-NOT: movzbl %cl, %ecx
24+
; CHECK: addl {{.*}}, %eax
2625
; CHECK-NEXT: movzbl (%rdi), %ecx
2726
; CHECK-NEXT: incq %rdi
2827
; CHECK-NEXT: cmpb $47, %cl

llvm/test/CodeGen/X86/opt-pipeline.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@
202202
; CHECK-NEXT: X86 vzeroupper inserter
203203
; CHECK-NEXT: Lazy Machine Block Frequency Analysis
204204
; CHECK-NEXT: X86 Byte/Word Instruction Fixup
205+
; CHECK-NEXT: X86 Eliminate Redundant Zero Extension
205206
; CHECK-NEXT: Lazy Machine Block Frequency Analysis
206207
; CHECK-NEXT: X86 Atom pad short functions
207208
; CHECK-NEXT: X86 LEA Fixup

llvm/test/CodeGen/X86/pr38539.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ define void @f() nounwind {
2323
; X86-NEXT: pushl %esi
2424
; X86-NEXT: andl $-16, %esp
2525
; X86-NEXT: subl $160, %esp
26-
; X86-NEXT: movl {{[0-9]+}}(%esp), %edi
26+
; X86-NEXT: movzbl {{[0-9]+}}(%esp), %edi
2727
; X86-NEXT: movl {{[0-9]+}}(%esp), %esi
2828
; X86-NEXT: movl {{[0-9]+}}(%esp), %edx
2929
; X86-NEXT: movzbl (%eax), %eax

0 commit comments

Comments
 (0)