Commit 94d05f9
[LLVM][CodeGen][SVE] ASRD cannot represent sdiv-by-one. (llvm#162708)
We lower signed divides by a power-of-two to ASRD. However, ASRD's
immediate is log2(shift_amount) in the range 1 to elt-bitwidth, which
means it cannot represent sdiv-by-one.
Fixes llvm#1626161 parent 520c397 commit 94d05f9
File tree
2 files changed
+59
-2
lines changed- llvm
- lib/Target/AArch64
- test/CodeGen/AArch64
2 files changed
+59
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16249 | 16249 | | |
16250 | 16250 | | |
16251 | 16251 | | |
16252 | | - | |
| 16252 | + | |
| 16253 | + | |
| 16254 | + | |
16253 | 16255 | | |
16254 | 16256 | | |
16255 | 16257 | | |
| |||
30034 | 30036 | | |
30035 | 30037 | | |
30036 | 30038 | | |
30037 | | - | |
| 30039 | + | |
| 30040 | + | |
| 30041 | + | |
30038 | 30042 | | |
30039 | 30043 | | |
30040 | 30044 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
0 commit comments