summary refs log tree commit diff
path: root/arm64
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin@c9x.me>2017-06-06 18:06:34 -0400
committerQuentin Carbonneaux <quentin@c9x.me>2017-06-06 18:12:17 -0400
commit64c79edda0bc29d11b7efaffa9d051f64ea431d0 (patch)
tree9175df2701786764df606e347ed5b1f347916262 /arm64
parent9908ae067af59cb6e43997552cb0e03e8f082f31 (diff)
downloadroux-64c79edda0bc29d11b7efaffa9d051f64ea431d0.tar.gz
fix fp subtractions on amd64
The stashing of constants in gas.c was also
changed to support 16-bytes constants.
Diffstat (limited to 'arm64')
-rw-r--r--arm64/isel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arm64/isel.c b/arm64/isel.c
index 7ab368f..59f1579 100644
--- a/arm64/isel.c
+++ b/arm64/isel.c
@@ -84,7 +84,7 @@ fixarg(Ref *pr, int k, int phi, Fn *fn)
 			emit(Ocopy, k, r1, r0, R);
 		} else {
 			c = &fn->con[r0.val];
-			n = gasstashfp(c->bits.i, KWIDE(k));
+			n = gasstash(&c->bits, KWIDE(k) ? 8 : 4);
 			vgrow(&fn->con, ++fn->ncon);
 			c = &fn->con[fn->ncon-1];
 			sprintf(buf, "fp%d", n);