Fixes this bug.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/test/MC/AMDGPU/gfx1011_supported.s | ||
---|---|---|
1 ↗ | (On Diff #434765) | Will it harm if we drop the _supported bit from the file name? +Same below. |
llvm/test/MC/AMDGPU/gfx1011_supported.s | ||
---|---|---|
1 ↗ | (On Diff #434765) | These tests are a bit special and I added the suffix to distinguish them from regular tests. We also have tests with unsupported suffix which serve the same purpose. I'm planning to add supported tests for other GFX9 and GFX10 subtargets. Another option I see is to move all supported tests to a separate folder (e.g. AMDGPU/subtargets), in this case the unsupported suffix will be unnecessary. Any other ideas? |
llvm/test/MC/AMDGPU/gfx1011_supported.s | ||
---|---|---|
1 ↗ | (On Diff #434765) | It seems so far we have been adding tests that make sure instructions are supported for particular targets without seeing them any special? Also, if this is a 'supported' kind of test, then what should we think are other positive encoding tests? Feels like this may be unnecessary complication. |
llvm/test/MC/AMDGPU/gfx1011_supported.s | ||
---|---|---|
1 ↗ | (On Diff #434765) | You gave me a better idea. I think the supported tests may be further simplified by removing encoding checks. Thus they will only check that the specified instructions are supported, i.e. may be assembled without errors. This will also make these tests run faster. And after this change they will be special. If nobody likes the idea, I'll rename the tests as you suggested. |
llvm/test/MC/AMDGPU/gfx1011_supported.s | ||
---|---|---|
1 ↗ | (On Diff #434765) | If we want to make sure the support for the instructions is there, then why wouldn't we also want to check if they use the right encodings? |
llvm/test/MC/AMDGPU/gfx1011_supported.s | ||
---|---|---|
1 ↗ | (On Diff #434765) | The question is where to stop. Instead of adding these supported tests we could have added RUN lines for missing subtargets to existing tests, but that would double or even triple test time according to my estimations. Note that we have 9 GFX10 subtargets with poor to none test coverage. |
llvm/test/MC/AMDGPU/gfx1011_supported.s | ||
---|---|---|
1 ↗ | (On Diff #434765) | The point was, why where we have reasons to think the support for assembling instructions may be missed we shouldn't also assume the same applies to using the right encodings. And if it does apply, then the expected tests should be no special compared to what we already have. To clarify, I don't suggest adding more RUN lines to those huge tests whose usefulness doesn't seem proportional to the amount of time they consume -- on top of that they make cases we are truly interested in less visible. The cases covered in the new tests do seem sufficient to me, and as long as we keep them this way, it should promise any problems in terms of testing times, shouldn't it? |