diff options
Diffstat (limited to 'src/cmd/8g/peep.c')
-rw-r--r-- | src/cmd/8g/peep.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cmd/8g/peep.c b/src/cmd/8g/peep.c index a4e516dd3..e2f3a003d 100644 --- a/src/cmd/8g/peep.c +++ b/src/cmd/8g/peep.c @@ -634,6 +634,11 @@ copyu(Prog *p, Adr *v, Adr *s) static int copyas(Adr *a, Adr *v) { + if(D_AL <= a->type && a->type <= D_BL) + fatal("use of byte register"); + if(D_AL <= v->type && v->type <= D_BL) + fatal("use of byte register"); + if(a->type != v->type) return 0; if(regtyp(v)) |