Skip to content

Commit

Permalink
test/CodeGen/X86: Relax test case
Browse files Browse the repository at this point in the history
No need to hardcode register or expecting totally unnecessary spills
from the allocator.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346575 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
MatzeB committed Nov 10, 2018
1 parent bc177f5 commit 02fce9c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/CodeGen/X86/2009-04-12-FastIselOverflowCrash.ll
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ define fastcc i32 @test() nounwind {
entry:
; CHECK-LABEL: test:
; CHECK: ## %bb.0:
; CHECK-NEXT: movl $1, %eax
; CHECK-NEXT: addl $0, %eax
; CHECK-NEXT: seto %cl
; CHECK-NEXT: movl %eax, -{{[0-9]+}}(%rsp) ## 4-byte Spill
; CHECK-NEXT: movb %cl, -{{[0-9]+}}(%rsp) ## 1-byte Spill
; CHECK-NEXT: jo LBB0_2
; CHECK-NEXT: movl $1, [[REG:%e[a-z]+]]
; CHECK-NEXT: addl $0, [[REG]]
; CHECK-NEXT: seto {{%[a-z]+l}}
; CHECK: jo LBB0_2
%tmp1 = call %0 @llvm.sadd.with.overflow.i32(i32 1, i32 0)
%tmp2 = extractvalue %0 %tmp1, 1
br i1 %tmp2, label %.backedge, label %BB3
Expand Down

0 comments on commit 02fce9c

Please sign in to comment.