[Mlir-commits] [mlir] Allow fixed vector operand for LLVM_AtomicRMWOp (PR #110553)

Tobias Gysi llvmlistbot at llvm.org
Thu Oct 3 07:17:01 PDT 2024


================
@@ -643,6 +643,14 @@ func.func @atomicrmw_expected_float(%i32_ptr : !llvm.ptr, %i32 : i32) {
 
 // -----
 
+func.func @atomicrmw_unexpected_vector_element(%ptr : !llvm.ptr, %i32_vec : vector<3xi32>) {
+  // expected-error at +1 {{expected LLVM IR floating point type for vector element}}
+  %0 = llvm.atomicrmw fadd %ptr, %i32_vec unordered : !llvm.ptr, vector<3xi32>
+  llvm.return
----------------
gysit wrote:

Can you add a test with a scalable vector as well?

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


More information about the Mlir-commits mailing list