[clang] [clang][bytecode] Handle bitcasts involving bitfields (PR #116843)
LLVM Continuous Integration via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 4 02:41:30 PST 2024
Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>,
Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/116843 at github.com>
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `clang-armv8-quick` running on `linaro-clang-armv8-quick` while building `clang` at step 5 "ninja check 1".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/154/builds/8464
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 5 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'Clang :: AST/ByteCode/builtin-bit-cast-bitfields.cpp' FAILED ********************
Exit Code: 1
Command Output (stderr):
--
RUN: at line 1: /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/lib/clang/20/include -nostdsysteminc -verify=expected,both -std=c++2a -fsyntax-only -fexperimental-new-constant-interpreter /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp
+ /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/lib/clang/20/include -nostdsysteminc -verify=expected,both -std=c++2a -fsyntax-only -fexperimental-new-constant-interpreter /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp
error: 'both-error' diagnostics seen but not expected:
File /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 304: unknown type name '__int128_t'
File /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 25: static assertion failed due to requirement 'sizeof(bool __attribute__((ext_vector_type(128)))) == sizeof(unsigned long long)'
File /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 26: size of '__builtin_bit_cast' source type 'const unsigned long long' does not match destination type 'bool __attribute__((ext_vector_type(128)))' (vector of 128 'bool' values) (8 vs 16 bytes)
File /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 25: static assertion failed due to requirement 'sizeof(unsigned long long) == sizeof(bool __attribute__((ext_vector_type(128))))'
File /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 26: size of '__builtin_bit_cast' source type 'bool const __attribute__((ext_vector_type(128)))' (vector of 128 'bool' values) does not match destination type 'unsigned long long' (16 vs 8 bytes)
File /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 304: static assertion expression is not an integral constant expression
error: 'both-note' diagnostics seen but not expected:
File /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 31: in instantiation of function template specialization 'bit_cast<bool __attribute__((ext_vector_type(128))), unsigned long long>' requested here
File /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 304: in instantiation of function template specialization 'check_round_trip<bool __attribute__((ext_vector_type(128))), unsigned long long>' requested here
File /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 25: expression evaluates to '16 == 8'
File /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 31: in instantiation of function template specialization 'bit_cast<unsigned long long, bool __attribute__((ext_vector_type(128)))>' requested here
File /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 304: in instantiation of function template specialization 'check_round_trip<bool __attribute__((ext_vector_type(128))), unsigned long long>' requested here
File /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 25: expression evaluates to '8 == 16'
12 errors generated.
--
********************
```
</details>
https://github.com/llvm/llvm-project/pull/116843
More information about the cfe-commits
mailing list