This fixes some PTEST regressions introduced by D129282.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I didn't add new tests for the fcmp* cases, because there were no existing tests for these yet. The intrinsics seemed sensible to include in the switch statement. Let me know if you specifically want me to add new tests for these.
If there's functionality that we're relying on then I'd rather see a test to protect it.
Added tests for FP cases as well (these new tests will be submitted as a precursory patch).
llvm/test/CodeGen/AArch64/sve-ptest-removal-fcmpeq.ll | ||
---|---|---|
12 | The fcm* instructions don't set the NCZV flags so the ptest cannot be removed. Perhaps I should rename these tests. |
I guess it won't be long before we need to add while to this list?
llvm/test/CodeGen/AArch64/sve-ptest-removal-fcmpeq.ll | ||
---|---|---|
12 | That does sound best. Perhaps a generic sve-ptest.ll to verify the cases where ptest is required but we want to ensure no additional instructions are emitted. |
The fcm* instructions don't set the NCZV flags so the ptest cannot be removed. Perhaps I should rename these tests.