Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I'm not sure I know where tests for things like that should go. smem-err.s should be generic enough but looks abandoned. And leaving it in gfx11_asm_err.s raises questions on how it could survive adding tests for future subtarget generations.
I don't quite understand the bug here - can you explain how "s_load_dword s1, s[2:3], s0 0x1" would have been mishandled before your patch?
I'm not sure I know where tests for things like that should go. smem-err.s should be generic enough but looks abandoned. And leaving it in gfx11_asm_err.s raises questions on how it could survive adding tests for future subtarget generations.
I think adding it to gfx11_asm_err.s is fine. If you really wanted to, you could add it to gfx*_asm_err.s for all affected architectures. Unfortunately there is a lot of duplication in the assembler tests.
I don't quite understand the bug here - can you explain how "s_load_dword s1, s[2:3], s0 0x1" would have been mishandled before your patch?
The 0x1 bit is currently indistinguishable from offset:0x1 and therefore accepted as a valid operand.
I don't quite understand the bug here - can you explain how "s_load_dword s1, s[2:3], s0 0x1" would have been mishandled before your patch?
The 0x1 bit is currently indistinguishable from offset:0x1 and therefore accepted as a valid operand.
Thanks, LGTM!