[clang] [clang][bytecode] Handle bitcasts involving bitfields (PR #116843)
LLVM Continuous Integration via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 6 18:03:55 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-ppc64-aix` running on `aix-ppc64` while building `clang` at step 3 "clean-build-dir".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/64/builds/1632
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 3 (clean-build-dir) failure: Delete failed. (failure) (timed out)
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: AST/ByteCode/builtin-bit-cast-bitfields.cpp' FAILED ********************
Exit Code: 1
Command Output (stderr):
--
RUN: at line 1: /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/bin/clang -cc1 -internal-isystem /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/lib/clang/20/include -nostdsysteminc -verify=expected,both -std=c++2a -fsyntax-only -fexperimental-new-constant-interpreter /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp
+ /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/bin/clang -cc1 -internal-isystem /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/lib/clang/20/include -nostdsysteminc -verify=expected,both -std=c++2a -fsyntax-only -fexperimental-new-constant-interpreter /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp
error: 'both-error' diagnostics seen but not expected:
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 76: size of '__builtin_bit_cast' source type 'unsigned char' does not match destination type 'bits<2>' (1 vs 4 bytes)
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 81: size of '__builtin_bit_cast' source type 'unsigned char' does not match destination type 'bits<2>' (1 vs 4 bytes)
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 88: size of '__builtin_bit_cast' source type 'const bits<2>' does not match destination type 'unsigned char' (4 vs 1 bytes)
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 94: size of '__builtin_bit_cast' source type 'const bits<3>' does not match destination type 'unsigned char' (4 vs 1 bytes)
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 97: size of '__builtin_bit_cast' source type 'const bits<4>' does not match destination type 'unsigned char' (4 vs 1 bytes)
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 106: size of '__builtin_bit_cast' source type 'const struct (unnamed struct at /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp:105:13)' does not match destination type 'B' (1 vs 4 bytes)
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 107: static assertion expression is not an integral constant expression
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 108: static assertion expression is not an integral constant expression
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 25: static assertion failed due to requirement 'sizeof(unsigned char) == sizeof(BF)'
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 26: size of '__builtin_bit_cast' source type 'const BF' does not match destination type 'unsigned char' (4 vs 1 bytes)
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 138: static assertion expression is not an integral constant expression
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 140: size of '__builtin_bit_cast' source type 'const BF' does not match destination type 'byte' (4 vs 1 bytes)
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 276: size of '__builtin_bit_cast' source type 'const struct (unnamed struct at /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp:275:13)' does not match destination type 'B' (2 vs 4 bytes)
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 281: static assertion expression is not an integral constant expression
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 282: static assertion expression is not an integral constant expression
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 304: unknown type name '__int128_t'
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/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/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/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/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/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/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/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/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 304: static assertion expression is not an integral constant expression
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 25: static assertion failed due to requirement 'sizeof(bits<8, unsigned short, 7>) == sizeof(unsigned short)'
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 26: size of '__builtin_bit_cast' source type 'const unsigned short' does not match destination type 'bits<8, unsigned short, 7>' (2 vs 4 bytes)
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 306: static assertion expression is not an integral constant expression
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 25: static assertion failed due to requirement 'sizeof(bits<4, unsigned short, 10>) == sizeof(unsigned short)'
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 26: size of '__builtin_bit_cast' source type 'const unsigned short' does not match destination type 'bits<4, unsigned short, 10>' (2 vs 4 bytes)
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 307: static assertion expression is not an integral constant expression
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 25: static assertion failed due to requirement 'sizeof(bits<31, long long, 0>) == sizeof(R)'
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 26: size of '__builtin_bit_cast' source type 'const R' does not match destination type 'bits<31, long long>' (8 vs 4 bytes)
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 345: constexpr variable 't' must be initialized by a constant expression
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 346: static assertion expression is not an integral constant expression
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 36: no matching function for call to 'bit_cast'
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 348: static assertion expression is not an integral constant expression
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 25: static assertion failed due to requirement 'sizeof(R) == sizeof(bits<31, long long, 0>)'
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 26: size of '__builtin_bit_cast' source type 'const bits<31, long long>' does not match destination type 'R' (4 vs 8 bytes)
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 36: no matching function for call to 'bit_cast'
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 349: static assertion expression is not an integral constant expression
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 396: static assertion failed due to requirement 'sizeof(NestedStructures::J) == 4'
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 25: static assertion failed due to requirement 'sizeof(NestedStructures::J) == sizeof(unsigned int)'
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 26: size of '__builtin_bit_cast' source type 'const unsigned int' does not match destination type 'NestedStructures::J' (4 vs 8 bytes)
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 397: constexpr variable 'j' must be initialized by a constant expression
File /home/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/AST/ByteCode/builtin-bit-cast-bitfields.cpp Line 399: static assertion expression is not an integral constant expression
...
```
</details>
https://github.com/llvm/llvm-project/pull/116843
More information about the cfe-commits
mailing list