aboutsummaryrefslogtreecommitdiff
path: root/tests/uint32-to-float.qbe
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-02-11 18:43:18 -0800
committerMichael Forney <mforney@mforney.org>2019-02-12 01:55:14 -0800
commiteddc4693e49f70cd214b7645cb9fce54a89fbb6c (patch)
treefa1b640f49cde25e323aa0629aed64c064da930e /tests/uint32-to-float.qbe
Initial import
Diffstat (limited to 'tests/uint32-to-float.qbe')
-rw-r--r--tests/uint32-to-float.qbe9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/uint32-to-float.qbe b/tests/uint32-to-float.qbe
new file mode 100644
index 0000000..0e90531
--- /dev/null
+++ b/tests/uint32-to-float.qbe
@@ -0,0 +1,9 @@
+export
+function s $f() {
+@start.1
+@body.2
+ %.1 =w call $g()
+ %.2 =l extuw %.1
+ %.3 =s sltof %.2
+ ret %.3
+}