Commit 2c5ed25
committed
[AMDGPU] Fix op_sel settings for v_cvt_scale32_* and v_cvt_sr_*
For OPF_OPSEL_SRCBYTE: Vector instruction uses OPSEL[1:0] to specify
a byte select for the first source operand. So op_sel [0, 0], [1, 0],
[0, 1] and [1, 1] should map to byte 0, 1, 2 and 3, respectively.
For OPF_OPSEL_DSTBYTE: OPSEL is used as a destination byte select.
OPSEL[2:3] specify which byte of the destination to write to. Note the
order of the bits is different from that of OPF_OPSEL_SRCBYT. So the
mapping should be: op_sel [0, 0], [0, 1], [1, 0] and [1, 1] map to byte
0, 1, 2 and 3, respectively.
Fixes: SWDEV-5449011 parent 957ae8a commit 2c5ed25
File tree
5 files changed
+76
-76
lines changed- llvm
- lib/Target/AMDGPU
- test/CodeGen/AMDGPU
5 files changed
+76
-76
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6994 | 6994 | | |
6995 | 6995 | | |
6996 | 6996 | | |
6997 | | - | |
| 6997 | + | |
6998 | 6998 | | |
6999 | 6999 | | |
7000 | 7000 | | |
7001 | 7001 | | |
7002 | 7002 | | |
7003 | | - | |
| 7003 | + | |
7004 | 7004 | | |
7005 | 7005 | | |
7006 | 7006 | | |
| |||
7009 | 7009 | | |
7010 | 7010 | | |
7011 | 7011 | | |
7012 | | - | |
| 7012 | + | |
7013 | 7013 | | |
7014 | 7014 | | |
7015 | 7015 | | |
7016 | 7016 | | |
7017 | 7017 | | |
7018 | | - | |
| 7018 | + | |
7019 | 7019 | | |
7020 | 7020 | | |
7021 | 7021 | | |
| |||
7038 | 7038 | | |
7039 | 7039 | | |
7040 | 7040 | | |
7041 | | - | |
| 7041 | + | |
7042 | 7042 | | |
7043 | 7043 | | |
7044 | 7044 | | |
7045 | 7045 | | |
7046 | 7046 | | |
7047 | 7047 | | |
7048 | | - | |
| 7048 | + | |
7049 | 7049 | | |
7050 | 7050 | | |
7051 | 7051 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
999 | 999 | | |
1000 | 1000 | | |
1001 | 1001 | | |
1002 | | - | |
1003 | | - | |
| 1002 | + | |
| 1003 | + | |
1004 | 1004 | | |
1005 | | - | |
| 1005 | + | |
1006 | 1006 | | |
1007 | 1007 | | |
1008 | 1008 | | |
| |||
1046 | 1046 | | |
1047 | 1047 | | |
1048 | 1048 | | |
1049 | | - | |
| 1049 | + | |
1050 | 1050 | | |
1051 | 1051 | | |
1052 | 1052 | | |
| |||
0 commit comments