summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorSigrid Solveig Haflínudóttir <sigrid@ftrv.se>2023-05-09 18:53:53 +0000
committerSigrid Solveig Haflínudóttir <sigrid@ftrv.se>2023-05-09 18:53:53 +0000
commit994cbd04b19eceb893b8252c881993c4342d6bf1 (patch)
tree5ec794ce5f25ca8ebdd888863079b06f928117b0 /sys
parent8aaecfe55f73a8c599fed1adbbba11a5e94dfc3c (diff)
7c: peephole: ACASE needs two distinctive registers - nothing to optimize
Diffstat (limited to 'sys')
-rw-r--r--sys/src/cmd/7c/peep.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/src/cmd/7c/peep.c b/sys/src/cmd/7c/peep.c
index 0126725e0..d010058c0 100644
--- a/sys/src/cmd/7c/peep.c
+++ b/sys/src/cmd/7c/peep.c
@@ -1122,7 +1122,6 @@ copyu(Prog *p, Adr *v, Adr *s)
case AFABSS:
case AFSQRTD:
case AFSQRTS:
- case ACASE:
#ifdef YYY
if(p->scond&(C_WBIT|C_PBIT))
if(v->type == D_REG) {
@@ -1304,6 +1303,9 @@ copyu(Prog *p, Adr *v, Adr *s)
if(v->reg == REGARG)
return 3;
return 0;
+
+ case ACASE:
+ return 0;
}
}