[mips][mips16] MIPS16 is not a CPU/Architecture but is an ASE.
[oota-llvm.git] / test / CodeGen / Mips / tail16.ll
1 ; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=pic   < %s | FileCheck %s 
2
3 ; Function Attrs: nounwind optsize
4 define float @h()  {
5 entry:
6   %call = tail call float bitcast (float (...)* @g to float ()*)() 
7   ret float %call
8 ; CHECK:        .ent    h
9 ; CHECK:        save    $16, $ra, $18, 32
10 ; CHECK:        lw      ${{[0-9]+}}, %got(__mips16_call_stub_sf_0)(${{[0-9]+}})
11 ; CHECK:        restore $16, $ra, $18, 32
12 ; CHECK:        .end    h
13 }
14
15 ; Function Attrs: optsize
16 declare float @g(...) 
17
18
19
20