[clang] [HLSL] fix elementwise bitreverse test (PR #108128)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 10 18:25:04 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Sarah Spall (spall)
<details>
<summary>Changes</summary>
The test called 'ceil' instead of 'bitreverse', which I assume was a copy paste leftover.
---
Full diff: https://github.com/llvm/llvm-project/pull/108128.diff
1 Files Affected:
- (modified) clang/test/Sema/builtins-elementwise-math.c (+2-2)
``````````diff
diff --git a/clang/test/Sema/builtins-elementwise-math.c b/clang/test/Sema/builtins-elementwise-math.c
index 2673f1f519af69..628274380ae5f2 100644
--- a/clang/test/Sema/builtins-elementwise-math.c
+++ b/clang/test/Sema/builtins-elementwise-math.c
@@ -275,8 +275,8 @@ void test_builtin_elementwise_min(int i, short s, double d, float4 v, int3 iv, u
void test_builtin_elementwise_bitreverse(int i, float f, double d, float4 v, int3 iv, unsigned u, unsigned4 uv) {
- struct Foo s = __builtin_elementwise_ceil(f);
- // expected-error at -1 {{initializing 'struct Foo' with an expression of incompatible type 'float'}}
+ struct Foo s = __builtin_elementwise_bitreverse(i);
+ // expected-error at -1 {{initializing 'struct Foo' with an expression of incompatible type 'int'}}
i = __builtin_elementwise_bitreverse();
// expected-error at -1 {{too few arguments to function call, expected 1, have 0}}
``````````
</details>
https://github.com/llvm/llvm-project/pull/108128
More information about the cfe-commits
mailing list