simplify this test to test the esentials.
[oota-llvm.git] / test / CodeGen / PowerPC / available-externally.ll
1 ; RUN: llvm-as < %s | llc | grep {bl L_exact_log2.stub}
2 ; PR4482
3 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
4 target triple = "powerpc-apple-darwin8"
5
6 define i32 @foo(i64 %x) nounwind {
7 entry:
8         %A = call i32 @exact_log2(i64 %x) nounwind
9         ret i32 %A
10 }
11
12 define available_externally i32 @exact_log2(i64 %x) nounwind {
13 entry:
14         ret i32 42
15 }