Commit ea81b05
Luis Silva
arcv: Fix immediate predicate for arcv_vclr.
arcv_vclr clears the lower imm[4:0] number of elements of vd. However, the
current pattern uses imm5_operand, which only accepts values < 5 and therefore
rejects valid immediates.
The instruction encoding allows a 5-bit unsigned immediate, i.e. values in the
range 0..31. Introduce a dedicated const_0_31_operand predicate and use it
for arcv_vclr.
Signed-off-by: Luis Silva <luiss@synopsys.com>1 parent fd20ff6 commit ea81b05
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
| 268 | + | |
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
68 | 72 | | |
69 | 73 | | |
70 | 74 | | |
| |||
0 commit comments