aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Mips/tail16.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/Mips/tail16.ll')
-rw-r--r--test/CodeGen/Mips/tail16.ll20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/CodeGen/Mips/tail16.ll b/test/CodeGen/Mips/tail16.ll
new file mode 100644
index 0000000..4e62e55
--- /dev/null
+++ b/test/CodeGen/Mips/tail16.ll
@@ -0,0 +1,20 @@
+; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips16 -soft-float -mips16-hard-float -relocation-model=pic < %s | FileCheck %s
+
+; Function Attrs: nounwind optsize
+define float @h() {
+entry:
+ %call = tail call float bitcast (float (...)* @g to float ()*)()
+ ret float %call
+; CHECK: .ent h
+; CHECK: save $16, $ra, $18, 32
+; CHECK: lw ${{[0-9]+}}, %got(__mips16_call_stub_sf_0)(${{[0-9]+}})
+; CHECK: restore $16, $ra, $18, 32
+; CHECK: .end h
+}
+
+; Function Attrs: optsize
+declare float @g(...)
+
+
+
+