[clang] [clang] [Sema] Check argument range for prefetchi* intrinsics (PR #149745)

Phoebe Wang via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 21 23:04:55 PDT 2025


================
@@ -0,0 +1,11 @@
+// RUN: %clang_cc1 %s -ffreestanding -triple=i686-unknown-unknown -target-feature +sm3  -fsyntax-only -verify
+
+#include <immintrin.h>
+
+__m128i test_mm_sm3rnds2_epi32(__m128i __A, __m128i __B, __m128i __C) {
+  return _mm_sm3rnds2_epi32(__A, __B, __C, 256); // expected-error {{argument value 256 is outside the valid range [0, 255]}}
+}
----------------
phoebewang wrote:

Remove

https://github.com/llvm/llvm-project/pull/149745


More information about the cfe-commits mailing list