[mips][FastISel] Fix call lowering by bailing out on "fastcc" calls.
[oota-llvm.git] / test / CodeGen / Mips / Fast-ISel / fastcc-miss.ll
1 ; RUN: llc < %s -march=mipsel -mcpu=mips32r2 -O0 -relocation-model=pic \
2 ; RUN:     -fast-isel=true -mips-fast-isel -fast-isel-verbose 2>&1 | \
3 ; RUN:   FileCheck %s
4
5 ; CHECK:      FastISel missed call:
6 ; CHECK-SAME: %call = call fastcc i32 @foo(i32 signext %a, i32 signext %b)
7
8 define internal i32 @bar(i32 signext %a, i32 signext %b) {
9   %s = and i32 %a, %b
10   ret i32 %s
11 }
12
13 define i32 @foo(i32 signext %a, i32 signext %b) {
14   %call = call fastcc i32 @foo(i32 signext %a, i32 signext %b)
15   ret i32 %call
16 }