[clang] [HLSL] fix elementwise bitreverse test (PR #108128)
Sarah Spall via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 10 18:24:35 PDT 2024
https://github.com/spall created https://github.com/llvm/llvm-project/pull/108128
The test called 'ceil' instead of 'bitreverse', which I assume was a copy paste leftover.
>From 86e24b508c47ee6ad09cbaec299baeab32cf964b Mon Sep 17 00:00:00 2001
From: Sarah Spall <spall at planetbauer.com>
Date: Wed, 11 Sep 2024 01:22:37 +0000
Subject: [PATCH] fix elementwise bitreverse test
---
clang/test/Sema/builtins-elementwise-math.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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