1 ; RUN: llc < %s -mtriple x86_64-apple-darwin11 -O0 -fast-isel-abort=1 | 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
16 ; CHECK: addq $10, %rax
19 define void @test2(i64*) nounwind ssp {
20 %2 = tail call %struct.x @f() nounwind
21 %3 = extractvalue %struct.x %2, 1
28 ; CHECK: addq $10, %rdx
31 declare %addovf @llvm.sadd.with.overflow.i32(i32, i32) nounwind readnone
33 define void @test3(i32 %x, i32 %y, i32* %z) {
34 %r = call %addovf @llvm.sadd.with.overflow.i32(i32 %x, i32 %y)
35 %sum = extractvalue %addovf %r, 0
36 %sum3 = mul i32 %sum, 3
37 %bit = extractvalue %addovf %r, 1
38 br i1 %bit, label %then, label %end
41 store i32 %sum3, i32* %z
49 ; CHECK: testb $1, %al