summary refs log tree commit diff
path: root/lisc
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-07-24 09:30:44 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-09-15 23:01:29 -0400
commitea811ab7c2a1165f9b6210cad680635699e95176 (patch)
treeaafeb99ccdf7d052b50666017d4a7ff815859a62 /lisc
parent49130f9edde3f47be4683897165635988cb3a7b6 (diff)
downloadroux-ea811ab7c2a1165f9b6210cad680635699e95176.tar.gz
add simple spill test
Diffstat (limited to 'lisc')
-rw-r--r--lisc/test/spill.ssa18
1 files changed, 18 insertions, 0 deletions
diff --git a/lisc/test/spill.ssa b/lisc/test/spill.ssa
new file mode 100644
index 0000000..9e24e9e
--- /dev/null
+++ b/lisc/test/spill.ssa
@@ -0,0 +1,18 @@
+# Test with NReg == 3
+# there must be a spill
+# happening on %c.
+# If you replace the sub
+# by an add or comment
+# the two marked lines
+# there should be no
+# spill.
+
+@start
+	%f = copy 0      # here
+	%b = copy 1
+	%c = copy 2
+	%a = sub %b, %c
+	%d = copy %b
+	%e = copy %f     # and here
+	%g = copy %a
+	ret