1 ; RUN: llc < %s -mtriple x86_64-apple-darwin11 -O0 -fast-isel-abort | FileCheck %s
3 %struct.x = type { i64, i64 }
4 %addovf = type { i32, i1 }
7 define void @test1(i64*) nounwind ssp {
8 %2 = tail call %struct.x @f() nounwind
9 %3 = extractvalue %struct.x %2, 0
15 ; CHECK-NEXT: addq $10, %rax
18 define void @test2(i64*) nounwind ssp {
19 %2 = tail call %struct.x @f() nounwind
20 %3 = extractvalue %struct.x %2, 1
26 ; CHECK-NEXT: addq $10, %rdx
29 declare %addovf @llvm.sadd.with.overflow.i32(i32, i32) nounwind readnone
31 define void @test3(i32 %x, i32 %y, i32* %z) {
32 %r = call %addovf @llvm.sadd.with.overflow.i32(i32 %x, i32 %y)
33 %sum = extractvalue %addovf %r, 0
34 %sum3 = mul i32 %sum, 3
35 %bit = extractvalue %addovf %r, 1
36 br i1 %bit, label %then, label %end
39 store i32 %sum3, i32* %z
47 ; CHECK: testb $1, %al