[clang] [llvm] [Matrix] Implement matrix support for the `max` and `min` intrinsics (PR #219537)

Kaitlin Peng via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 1 16:58:41 PDT 2026


================
@@ -0,0 +1,31 @@
+// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.6-library %s -fnative-half-type -fnative-int16-type -emit-llvm-only -disable-llvm-passes -verify
+
+float2x2 test_too_few_arg(float2x2 p0) {
+  return __builtin_elementwise_max(p0);
----------------
kmpeng wrote:

We decided it's not necessary in a related PR: https://github.com/llvm/llvm-project/pull/215379#discussion_r3753231035

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


More information about the cfe-commits mailing list