Commit 594360cb authored by Russ Cox's avatar Russ Cox

cmd/8c: disable use of prefetch with GO386=387

Fixes #4798.

R=ken2
CC=golang-dev
https://golang.org/cl/7323061
parent 2968e239
...@@ -1396,6 +1396,9 @@ gprefetch(Node *n) ...@@ -1396,6 +1396,9 @@ gprefetch(Node *n)
{ {
Node n1; Node n1;
if(strcmp(getgo386(), "sse2") != 0) // assume no prefetch on old machines
return;
regalloc(&n1, n, Z); regalloc(&n1, n, Z);
gmove(n, &n1); gmove(n, &n1);
n1.op = OINDREG; n1.op = OINDREG;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment