[clang] [HLSL][LongVec] Add more intrinsic support (PR #222043)
Justin Bogner via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 14 08:02:52 PDT 2026
================
@@ -35,3 +35,15 @@ double3 test_vuint(uint3 low, uint3 high) {
}
// CHECK-DXIL: declare <3 x double> @llvm.dx.asdouble.v3i32
+
+// CHECK-LABEL: test_vuint5
+vector<double, 5> test_vuint5(vector<uint, 5> low, vector<uint, 5> high) {
+ // CHECK-SPV: %[[SHUFFLE2:.*]] = shufflevector
+ // CHECK-SPV-SAME: {{.*}} <i32 0, i32 5, i32 1, i32 6, i32 2, i32 7, i32 3, i32 8, i32 4, i32 9>
----------------
bogner wrote:
There's some argument for capturing the `low` and `high` parameters in the function signature and making sure they're the inputs to shufflevector. That said, the probability of that finding an issue that the current version doesn't is low so maybe it doesn't matter.
https://github.com/llvm/llvm-project/pull/222043
More information about the cfe-commits
mailing list