Bug fix: The "calls" instruction could be called with
authorceriel <none@none>
Tue, 4 Mar 1986 11:39:22 +0000 (11:39 +0000)
committerceriel <none@none>
Tue, 4 Mar 1986 11:39:22 +0000 (11:39 +0000)
first argument > 255. This is corrected.

mach/vax4/cg/table

index db86f3d..8525405 100644 (file)
@@ -4233,14 +4233,14 @@ cms zne $1==4   | |                             |       | cmp zne $2 |
  * Group 14 : Procedure call instructions      *
  ************************************************/
 
-cai asp $2%4 == 0 && $2>=0
+cai asp $2%4 == 0 && $2>=0 && $2 < 1024
                | reg4 |
                        remove(ALL)
                        "calls\t$$%($2/4%),(%[1])"      |       | |
 cai            | reg4 |
                        remove(ALL)
                        "calls\t$$0,(%[1])"             |       | |
-cal asp $2%4 == 0 && $2>=0
+cal asp $2%4 == 0 && $2>=0 && $2 < 1024
                | |     remove(ALL)
                        "calls\t$$%($2/4%),$1"          |       | |
 cal            | |     remove(ALL)