Allow dumb shifts.
[rsc] --rw-rw-r-- M 661145 glenda sys 35737 Jan 16 19:52 sys/src/cmd/ql/asmout.c
/n/sourcesdump/2006/0116/plan9/sys/src/cmd/ql/asmout.c:590,597 -
/n/sourcesdump/2006/0117/plan9/sys/src/cmd/ql/asmout.c:590,602
r = p->reg;
if(r == NREG)
r = p->to.reg;
+ /*
+ * Let user (gs) shoot himself in the foot.
+ * qc has already complained.
+ *
if(v < 0 || v > 31)
diag("illegal shift %ld\n%P", v, p);
+ */
if(v < 0)
v = 0;
else if(v > 32)
|