Commit 377c4ca
authored
Change the definition of the HLSL `dot4add_i8packed` and
`dot4add_u8packed` intrinsics in `utils/hct/gen_intrin_main.txt` to
simply spell out the return types, rather than saying that their return
type is determined by their third argument.
This prevents DXC from trying to give those functions declarations like
declare i64 @"\01?dot4add_u8packed@hlsl@@YA_JII_J@Z"(i32, i32, i64
signext) #1
which seems to expect a 64-bit third argument and return value.
These functions are not generic, and they have only one overload, so
there is no need to use interesting `uComponentTypeId` values to get the
right effects, and `HLSLExternalSource::MatchArguments` seems to get
confused about how to treat argument types that affect the return types.
Fixes #7400.
1 parent 474f9d2 commit 377c4ca
3 files changed
Lines changed: 39 additions & 5 deletions
File tree
- tools/clang
- lib/Sema
- test/DXC
- utils/hct
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6737 | 6737 | | |
6738 | 6738 | | |
6739 | 6739 | | |
6740 | | - | |
6741 | | - | |
| 6740 | + | |
| 6741 | + | |
6742 | 6742 | | |
6743 | 6743 | | |
6744 | 6744 | | |
| |||
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
342 | | - | |
343 | | - | |
344 | | - | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
| |||
0 commit comments