Commit e7f5f3e
cmd/internal/obj/arm64: add error report for invalid base register
The current assembler accepts the non-integer register as the base register,
which should be an illegal combination.
Add the test cases.
Change-Id: Ia21596bbb5b1e212e34bd3a170748ae788860422
Reviewed-on: https://go-review.googlesource.com/134575
Reviewed-by: Cherry Zhang <[email protected]>
Run-TryBot: Cherry Zhang <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>1 parent d5377c2 commit e7f5f3e
2 files changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
| 114 | + | |
113 | 115 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1426 | 1426 | | |
1427 | 1427 | | |
1428 | 1428 | | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
1429 | 1433 | | |
1430 | 1434 | | |
1431 | 1435 | | |
| |||
2968 | 2972 | | |
2969 | 2973 | | |
2970 | 2974 | | |
2971 | | - | |
| 2975 | + | |
2972 | 2976 | | |
2973 | 2977 | | |
2974 | 2978 | | |
| |||
2986 | 2990 | | |
2987 | 2991 | | |
2988 | 2992 | | |
2989 | | - | |
| 2993 | + | |
2990 | 2994 | | |
2991 | 2995 | | |
2992 | 2996 | | |
| |||
0 commit comments