| ; RUN: llc < %s -mtriple x86_64-apple-darwin11 -O0 -fast-isel-abort=1 | FileCheck %s |
| %struct.x = type { i64, i64 } |
| define void @test1(ptr) nounwind ssp { |
| %2 = tail call %struct.x @f() nounwind |
| %3 = extractvalue %struct.x %2, 0 |
| define void @test2(ptr) nounwind ssp { |
| %2 = tail call %struct.x @f() nounwind |
| %3 = extractvalue %struct.x %2, 1 |
| declare { i32, i1 } @llvm.sadd.with.overflow.i32(i32, i32) nounwind readnone |
| define void @test3(i32 %x, i32 %y, ptr %z) { |
| %r = call { i32, i1 } @llvm.sadd.with.overflow.i32(i32 %x, i32 %y) |
| %sum = extractvalue { i32, i1 } %r, 0 |
| %bit = extractvalue { i32, i1 } %r, 1 |
| br i1 %bit, label %then, label %end |