1 ; RUN: llc < %s -march=x86 | FileCheck %s
2 ; <rdar://problem/8449754>
4 define i32 @add32carry(i32 %sum, i32 %x) nounwind readnone ssp {
6 ; CHECK: sbbl %ecx, %ecx
8 ; CHECK: subl %ecx, %eax
9 %add4 = add i32 %x, %sum
10 %cmp = icmp ult i32 %add4, %x
11 %inc = zext i1 %cmp to i32
12 %z.0 = add i32 %add4, %inc