llvm-project
020b9f37 - [NVPTX][NFC] Add baseline tests for incorrect memory access with Boolean vectors (#243240)

Commit
5 hours ago
[NVPTX][NFC] Add baseline tests for incorrect memory access with Boolean vectors (#243240) NVPTX is generating memory accesses that incorrectly treat one-bit Boolean values as separate bytes. Example - For an `<8 x i1>` kernel argument the generated PTX declares one byte but reads the 8th Boolean value from byte offset 7, which is outside that byte. This PR is a first step towards the fix, it includes baseline tests that record current behaviour. It includes 14 tests covering different vector sizes, structures, arrays, function arguments, and results. All incorrect accesses are marked as `FIXME`. These will be fixed in the subsequent PR. Related Issue / Found in : [modular/modular#7480](https://github.com/modular/modular/issues/7480) Assisted-by: ChatGPT --------- Co-authored-by: Khushi Dahiya <kdahiya240@gmail.com>
Author
Parents
Loading