Commit c1d394e
committed
AMDGPU: Fix not diagnosing unaligned VGPRs for vsrc operands
This was not checking the alignment requirement for 64-bit
operands which accept inline immediates. Not all custom operand
types were handled in the switch, so round out with explicit
handling of all enum values, and change the default to use
the default checks for unhandled cases.
Fixes #1550951 parent 3c01ac6 commit c1d394e
File tree
3 files changed
+72
-11
lines changed- llvm
- lib/Target/AMDGPU
- test
- CodeGen/AMDGPU
- MachineVerifier/AMDGPU
3 files changed
+72
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4933 | 4933 | | |
4934 | 4934 | | |
4935 | 4935 | | |
4936 | | - | |
| 4936 | + | |
| 4937 | + | |
4937 | 4938 | | |
4938 | 4939 | | |
4939 | 4940 | | |
4940 | 4941 | | |
4941 | 4942 | | |
4942 | 4943 | | |
4943 | 4944 | | |
| 4945 | + | |
| 4946 | + | |
4944 | 4947 | | |
4945 | 4948 | | |
| 4949 | + | |
| 4950 | + | |
| 4951 | + | |
| 4952 | + | |
| 4953 | + | |
| 4954 | + | |
| 4955 | + | |
4946 | 4956 | | |
| 4957 | + | |
| 4958 | + | |
| 4959 | + | |
| 4960 | + | |
4947 | 4961 | | |
4948 | | - | |
4949 | 4962 | | |
| 4963 | + | |
4950 | 4964 | | |
4951 | | - | |
| 4965 | + | |
4952 | 4966 | | |
| 4967 | + | |
| 4968 | + | |
| 4969 | + | |
4953 | 4970 | | |
4954 | 4971 | | |
4955 | 4972 | | |
| |||
4965 | 4982 | | |
4966 | 4983 | | |
4967 | 4984 | | |
| 4985 | + | |
| 4986 | + | |
| 4987 | + | |
| 4988 | + | |
4968 | 4989 | | |
4969 | 4990 | | |
4970 | 4991 | | |
| |||
4976 | 4997 | | |
4977 | 4998 | | |
4978 | 4999 | | |
4979 | | - | |
| 5000 | + | |
| 5001 | + | |
| 5002 | + | |
| 5003 | + | |
| 5004 | + | |
4980 | 5005 | | |
4981 | | - | |
| 5006 | + | |
| 5007 | + | |
| 5008 | + | |
4982 | 5009 | | |
4983 | 5010 | | |
4984 | 5011 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
282 | | - | |
283 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
289 | | - | |
290 | | - | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
| |||
Lines changed: 34 additions & 0 deletions
| 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 | + | |
0 commit comments