[Mlir-commits] [mlir] [MLIR][NVVM] Add prefetch Ops (PR #141737)
Durgadoss R
llvmlistbot at llvm.org
Thu May 29 05:46:58 PDT 2025
================
@@ -248,3 +248,11 @@ llvm.func @nvvm_cvt_bf16x2_to_f8x2_invalid_rounding(%src : vector<2xbf16>) {
%res = nvvm.convert.bf16x2.to.f8x2 <ue8m0> %src {rnd = #nvvm.fp_rnd_mode<rn>} : vector<2xbf16> -> i16
llvm.return
}
+
+// -----
+
+llvm.func @nvvm_prefetch_L2_with_evict_invalid_addr_space(%local_ptr: !llvm.ptr<5>) {
+ // expected-error @below {{prefetch with eviction priority requires a global pointer}}
+ nvvm.prefetch.L2 %local_ptr, evict_priority = evict_last : !llvm.ptr<5>
+ llvm.return
+}
----------------
durga4github wrote:
Nice. Thanks for adding this negative test case.
https://github.com/llvm/llvm-project/pull/141737
More information about the Mlir-commits
mailing list