Created attachment 22912 [details] C reproducer Use of __builtin_altivec_vctsxs, __builtin_altivec_vctsxs, __builtin_altivec_vctuxs, __builtin_altivec_vcfux with a non-zero immediate argument result in: `LLVM ERROR: Cannot select: intrinsic %llvm.ppc.altivec.vctsxs`. Attached are C and IR reproducers. Broken by r372285 (git d8399d12cd8). This commit make similar changes to other architectures, so I wonder if there are any other cases. The attached patch fixes the issue. Let me know if you want me to work up something more formal to submit for review.
Created attachment 22913 [details] IR reproducer
Created attachment 22914 [details] Patch
The test case and the fix seem perfectly fine. Would you be interested/able to post the patch with the test case on Phabricator and we can get it reviewed and committed?
(In reply to Nemanja Ivanovic from comment #3) > The test case and the fix seem perfectly fine. Would you be interested/able > to post the patch with the test case on Phabricator and we can get it > reviewed and committed? Will do
Differential: https://reviews.llvm.org/D71138