[clang] d32982b - [HLSL] fix elementwise bitreverse test (#108128)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 11 16:04:48 PDT 2024
Author: Sarah Spall
Date: 2024-09-11T16:04:44-07:00
New Revision: d32982b6b3753091a532530c7a66f9686deb5233
URL: https://github.com/llvm/llvm-project/commit/d32982b6b3753091a532530c7a66f9686deb5233
DIFF: https://github.com/llvm/llvm-project/commit/d32982b6b3753091a532530c7a66f9686deb5233.diff
LOG: [HLSL] fix elementwise bitreverse test (#108128)
The test called 'ceil' instead of 'bitreverse', which I assume was a
copy paste leftover.
Added:
Modified:
clang/test/Sema/builtins-elementwise-math.c
Removed:
################################################################################
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}}
More information about the cfe-commits
mailing list