diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-11-30 15:53:15 -0500 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-11-30 15:53:15 -0500 |
commit | 67db7b6578b855d8ee7e6c5ba67a3dd7020fd17e (patch) | |
tree | 68d755b32c734a5c1767ee49bb2898d76bd56edd /lisc | |
parent | 7c97ca6aae363b66e16f9ab97260a866706c2319 (diff) | |
download | roux-67db7b6578b855d8ee7e6c5ba67a3dd7020fd17e.tar.gz |
add a simple floating point test
Diffstat (limited to 'lisc')
-rw-r--r-- | lisc/test/double.ssa | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lisc/test/double.ssa b/lisc/test/double.ssa new file mode 100644 index 0000000..da60261 --- /dev/null +++ b/lisc/test/double.ssa @@ -0,0 +1,18 @@ +function $test() { +@start + %x1 =d copy `0.3 + %x2 =d sub %x1, `0.2 + %x3 =d sub %x2, `0.1 + +@loop + %x4 =d phi @start %x3, @loop %x5 + %i1 =w phi @start 0, @loop %i2 + %x5 =d add %x4, %x4 + %i2 =w add %i1, 1 + %c0 =d csle %x5, `1 + jnz %c0, @loop, @end + +@end + storew %i2, $a + ret +} |