summary refs log tree commit diff
path: root/lisc
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-09-11 14:27:46 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-09-15 23:01:33 -0400
commit9bb69bf4c7dae1e15fb505e0a54d950f9621df84 (patch)
tree51cf73d4b2f2d382f87be53d51bb863b4ee6d970 /lisc
parentece185f06705864ae55cbe15fea88c6bc4315f62 (diff)
downloadroux-9bb69bf4c7dae1e15fb505e0a54d950f9621df84.tar.gz
diagnose float structs
Diffstat (limited to 'lisc')
-rw-r--r--lisc/isel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisc/isel.c b/lisc/isel.c
index a018cd5..80bdae7 100644
--- a/lisc/isel.c
+++ b/lisc/isel.c
@@ -514,6 +514,8 @@ selcall(Fn *fn, Ins *i0, Ins *i1)
 		if (a->inmem)
 			continue;
 		if (i->op == OArgc) {
+			if (a->rty[0] == RSse || a->rty[1] == RSse)
+				diag("isel: unsupported float struct");
 			if (a->size > 8) {
 				r = TMP(ireg[ni+1]);
 				r1 = newtmp(fn);