Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 02fce9c

Browse files
committed
test/CodeGen/X86: Relax test case
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
1 parent bc177f5 commit 02fce9c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

test/CodeGen/X86/2009-04-12-FastIselOverflowCrash.ll

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,10 @@ define fastcc i32 @test() nounwind {
1212
entry:
1313
; CHECK-LABEL: test:
1414
; CHECK: ## %bb.0:
15-
; CHECK-NEXT: movl $1, %eax
16-
; CHECK-NEXT: addl $0, %eax
17-
; CHECK-NEXT: seto %cl
18-
; CHECK-NEXT: movl %eax, -{{[0-9]+}}(%rsp) ## 4-byte Spill
19-
; CHECK-NEXT: movb %cl, -{{[0-9]+}}(%rsp) ## 1-byte Spill
20-
; CHECK-NEXT: jo LBB0_2
15+
; CHECK-NEXT: movl $1, [[REG:%e[a-z]+]]
16+
; CHECK-NEXT: addl $0, [[REG]]
17+
; CHECK-NEXT: seto {{%[a-z]+l}}
18+
; CHECK: jo LBB0_2
2119
%tmp1 = call %0 @llvm.sadd.with.overflow.i32(i32 1, i32 0)
2220
%tmp2 = extractvalue %0 %tmp1, 1
2321
br i1 %tmp2, label %.backedge, label %BB3

0 commit comments

Comments
 (0)