================ @@ -14,3 +14,7 @@ void test_m_prefetch_it1(void *p) { // CHECK-LABEL: define{{.*}} void @test_m_prefetch_it1 // CHECK: call void @llvm.prefetch.p0(ptr {{.*}}, i32 0, i32 2, i32 0) } + +void test_invalid_prefetchi(void* p) { + return __builtin_ia32_prefetchi(p, 1); // expected-error {{argument value 1 is outside the valid range [2, 3]}} +} ---------------- phoebewang wrote:
The test needs to be in a seperate file. https://github.com/llvm/llvm-project/pull/149745 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits