[clang] [HLSL] fix elementwise bitreverse test (PR #108128)
Sarah Spall via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 11 11:24:31 PDT 2024
https://github.com/spall updated https://github.com/llvm/llvm-project/pull/108128
>From 8146b03b49a94532335f9bb238c6c41c9a800034 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