Add x86 fast-isel for calls returning first-class aggregates. rdar://9435872.
[oota-llvm.git] / test / CodeGen / X86 / fast-isel-call.ll
1 ; RUN: llc < %s -fast-isel -march=x86 | FileCheck %s
2
3 define i32 @t() nounwind {
4 tak:
5         %tmp = call i1 @foo()
6         br i1 %tmp, label %BB1, label %BB2
7 BB1:
8         ret i32 1
9 BB2:
10         ret i32 0
11 ; CHECK: calll
12 ; CHECK-NEXT: testb     $1
13 }
14
15 declare i1 @foo() zeroext nounwind