aboutsummaryrefslogtreecommitdiff
path: root/test/isel5.ssa
diff options
context:
space:
mode:
Diffstat (limited to 'test/isel5.ssa')
-rw-r--r--test/isel5.ssa16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/isel5.ssa b/test/isel5.ssa
new file mode 100644
index 0000000..9c546d7
--- /dev/null
+++ b/test/isel5.ssa
@@ -0,0 +1,16 @@
+# make sure the local symbols used for
+# fp constants do not get a _ prefix
+# on apple arm hardware
+
+export function w $main() {
+@start
+ %r =d copy d_1.2
+ %x =w call $printf(l $fmt, ..., d %r)
+ ret 0
+}
+
+data $fmt = { b "%.06f\n", b 0 }
+
+# >>> output
+# 1.200000
+# <<<