Giving an int parameter to SVE intrinsics svptrue and svcnt caused Clang to crash on compilation. Changing their parameter types to void instead of omitting args results in a diagnostic error message instead.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
This is missing tests for svundef, svrdffr, svsetffr and svpfalse?
clang/test/CodeGen/aarch64-sve-intrinsics/negative/acle_sve_svptrue.c | ||
---|---|---|
3 | Is it possible to use the update_cc_test_checks.py script for these tests? |
@sdesmalen Only svcnt and svptrue cause the crash. This might be because of extra values added by the [IsAppendSVALL] TypeFlag in arm_sve.td. We decided to change other intrinsics with 0 parameters as there seems to be no drawbacks to doing so and it might catch further future errors.
clang/test/CodeGen/aarch64-sve-intrinsics/negative/acle_sve_svptrue.c | ||
---|---|---|
3 | Deleting // expected-error-re@+1... and running update_cc_test_checks.py did not generate anything in its place in either of the tests |
Fair enough. Since you're adding the void to the prototype for a reason (the diagnostic behaviour now changes), I figured you may as well want to test it.
clang/test/CodeGen/aarch64-sve-intrinsics/negative/acle_sve_svptrue.c | ||
---|---|---|
3 | Okay I wasn't sure, so thanks for confirming. |
Is it possible to use the update_cc_test_checks.py script for these tests?