[clang] [HLSL] add extra scalar vector overloads for clamp (PR #129939)
Joshua Batista via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 13 10:56:14 PDT 2025
================
@@ -81,6 +93,9 @@ int64_t3 test_clamp_long3(int64_t3 p0, int64_t3 p1) { return clamp(p0, p1,p1); }
// CHECK: define [[FNATTRS]] <4 x i64> @_Z16test_clamp_long4
// CHECK: call <4 x i64> @llvm.[[TARGET]].sclamp.v4i64
int64_t4 test_clamp_long4(int64_t4 p0, int64_t4 p1) { return clamp(p0, p1,p1); }
+// CHECK: define [[FNATTRS]] <4 x i64> {{.*}}test_clamp_long4_mismatch
+// CHECK: call <4 x i64> @llvm.[[TARGET]].sclamp.v4i64
+int64_t4 test_clamp_long4_mismatch(int64_t4 p0, int64_t4 p1) { return clamp(p0, p0,p1); }
----------------
bob80905 wrote:
There is no mismatch here, did you mean `int64_t4 p0, int64_t p1` ?
https://github.com/llvm/llvm-project/pull/129939
More information about the cfe-commits
mailing list