[clang] [llvm] [HLSL] Implement WaveActiveAnyTrue intrinsic (PR #115902)

Greg Roth via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 15 11:36:41 PST 2024


================
@@ -0,0 +1,17 @@
+// RUN: %clang_cc1 -finclude-default-header -fnative-half-type -triple \
+// RUN:   dxil-pc-shadermodel6.3-compute %s -emit-llvm -disable-llvm-passes -o - | \
+// RUN:   FileCheck %s --check-prefixes=CHECK,CHECK-DXIL
+// RUN: %clang_cc1 -finclude-default-header -fnative-half-type -triple \
+// RUN:   spirv-pc-vulkan-compute %s -emit-llvm -disable-llvm-passes -o - | \
+// RUN:   FileCheck %s --check-prefixes=CHECK,CHECK-SPIRV
+
+// Test basic lowering to runtime function call for int values.
+
+// CHECK-LABEL: test
----------------
pow2clk wrote:

I think it's better to have a little more to match with a LABEL line since "test" can show up in a few places.
```suggestion
// CHECK-LABEL: define {{.*}}test
```

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


More information about the cfe-commits mailing list