Use static inline to do the right thing when built in C99 mode. Of course,
[llvm/stm8.git] / test / CodeGen / PowerPC / stubs.ll
blob4889263b4c4e99816e8a7b0e618100cf3906dc6b
1 ; RUN: llc %s -o - -mtriple=powerpc-apple-darwin8 | FileCheck %s
2 define ppc_fp128 @test1(i64 %X) nounwind readnone {
3 entry:
4   %0 = sitofp i64 %X to ppc_fp128
5   ret ppc_fp128 %0
8 ; CHECK: _test1:
9 ; CHECK: bl ___floatditf$stub
10 ; CHECK:        .section        __TEXT,__symbol_stub1,symbol_stubs,pure_instructions,16
11 ; CHECK: ___floatditf$stub:
12 ; CHECK:        .indirect_symbol ___floatditf
13 ; CHECK:        lis r11,ha16(___floatditf$lazy_ptr)
14 ; CHECK:        lwzu r12,lo16(___floatditf$lazy_ptr)(r11)
15 ; CHECK:        mtctr r12
16 ; CHECK:        bctr
17 ; CHECK:        .section        __DATA,__la_symbol_ptr,lazy_symbol_pointers
18 ; CHECK: ___floatditf$lazy_ptr:
19 ; CHECK:        .indirect_symbol ___floatditf
20 ; CHECK:        .long dyld_stub_binding_helper