This fixes some PTEST regressions introduced by D129282.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
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.
Comment Actions
If there's functionality that we're relying on then I'd rather see a test to protect it.
Comment Actions
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 ↗ | (On Diff #445757) | The fcm* instructions don't set the NCZV flags so the ptest cannot be removed. Perhaps I should rename these tests. |
Comment Actions
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 ↗ | (On Diff #445757) | 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. |