Commit 23b3203
authored
[POWERPC] Fixes an error in the handling of the MTVSRBMI instruction for big-endian (#151565)
The patch fixed a bug introduced patch [[PowePC] using MTVSRBMI
instruction instead of constant pool in
power10+](#144084 (comment)).
The issue arose because the layout of vector register elements differs
between little-endian and big-endian modes — specifically, the elements
appear in reverse order. This led to incorrect behavior when loading
constants using MTVSRBMI in big-endian configurations.1 parent 79253cf commit 23b3203
File tree
2 files changed
+86
-16
lines changed- llvm
- lib/Target/PowerPC
- test/CodeGen/PowerPC
2 files changed
+86
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9593 | 9593 | | |
9594 | 9594 | | |
9595 | 9595 | | |
9596 | | - | |
| 9596 | + | |
| 9597 | + | |
9597 | 9598 | | |
9598 | 9599 | | |
9599 | 9600 | | |
9600 | 9601 | | |
9601 | | - | |
| 9602 | + | |
| 9603 | + | |
9602 | 9604 | | |
9603 | 9605 | | |
9604 | 9606 | | |
| |||
9608 | 9610 | | |
9609 | 9611 | | |
9610 | 9612 | | |
9611 | | - | |
9612 | | - | |
| 9613 | + | |
| 9614 | + | |
| 9615 | + | |
| 9616 | + | |
9613 | 9617 | | |
9614 | 9618 | | |
9615 | 9619 | | |
| |||
9640 | 9644 | | |
9641 | 9645 | | |
9642 | 9646 | | |
9643 | | - | |
| 9647 | + | |
| 9648 | + | |
9644 | 9649 | | |
9645 | 9650 | | |
9646 | 9651 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
7 | 22 | | |
8 | 23 | | |
9 | 24 | | |
10 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
11 | 32 | | |
12 | 33 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
21 | 44 | | |
22 | 45 | | |
23 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
0 commit comments