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