================
@@ -0,0 +1,13 @@
+// RUN: %clang_cc1 %s -fenable-matrix -fmatrix-memory-layout=row-major 
-pedantic -verify -triple=x86_64-apple-darwin9
+
+typedef float sx5x10_t __attribute__((matrix_type(5, 10)));
+
+void column_major_load(float *p1) {
+  sx5x10_t a1 = __builtin_matrix_column_major_load(p1, 5, 11, 5);
+  // expected-error@-1 {{matrix column major load is disabled. Pass 
-fmatrix-memory-layout=column-major to enable it}}
+}
+
+void column_major_store(sx5x10_t *m1, float *p1) {
+  __builtin_matrix_column_major_store(*m1, p1, 1);
+  // expected-error@-1 {{matrix column major store is disabled. Pass 
-fmatrix-memory-layout=column-major to enable it}}
+}
----------------
farzonl wrote:

```suggestion
}

```

https://github.com/llvm/llvm-project/pull/167628
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to