Commit 6d4bb20
authored
[X86] Invalid fp16 comparison fix (#160304)
Missing `VCMPPHZrrik`, `VCMPPHZ128rrik`, and `VCMPPHZ256rrik` opcodes in
`commuteInstructionImpl` and `findCommutedOpIndices` led to improper
handling of compare instruction during optimization. Operands were
commuted, but swapping of the immediate was not called.
Fixes: #1597231 parent 1ed6be6 commit 6d4bb20
File tree
2 files changed
+10
-4
lines changed- llvm
- lib/Target/X86
- test/CodeGen/X86
2 files changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2573 | 2573 | | |
2574 | 2574 | | |
2575 | 2575 | | |
| 2576 | + | |
2576 | 2577 | | |
2577 | 2578 | | |
| 2579 | + | |
2578 | 2580 | | |
2579 | 2581 | | |
| 2582 | + | |
2580 | 2583 | | |
2581 | 2584 | | |
2582 | 2585 | | |
| |||
2830 | 2833 | | |
2831 | 2834 | | |
2832 | 2835 | | |
| 2836 | + | |
2833 | 2837 | | |
2834 | 2838 | | |
| 2839 | + | |
2835 | 2840 | | |
2836 | | - | |
| 2841 | + | |
| 2842 | + | |
2837 | 2843 | | |
2838 | 2844 | | |
2839 | 2845 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
0 commit comments