aboutsummaryrefslogtreecommitdiffhomepage
path: root/amd64/isel.c
diff options
context:
space:
mode:
Diffstat (limited to 'amd64/isel.c')
-rw-r--r--amd64/isel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/amd64/isel.c b/amd64/isel.c
index 9065ccf..3611670 100644
--- a/amd64/isel.c
+++ b/amd64/isel.c
@@ -214,9 +214,9 @@ ascale(struct addr *addr, union ref a, union ref b)
{
if (b.t != RICON) return 0;
if (addr->index.bits) return 0;
+ if ((unsigned)b.i > 3) return 0;
if (a.t == RREG) {
Scaled:
- if ((unsigned)b.i > 3) return 0;
addr->index = a;
addr->shift = b.i;
return 1;