Skip to content

Commit e86209c

Browse files
authored
[clang][bytecode][test] Disable a bitcast test on s390x (#160452)
Fixes #160374
1 parent b5cf9a6 commit e86209c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/test/AST/ByteCode/builtin-bit-cast.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,8 @@ namespace VectorCast {
556556
}
557557
static_assert(test2() == 0);
558558

559+
/// On s390x, S is only 8 bytes.
560+
#if !defined(__s390x__)
559561
struct S {
560562
unsigned __int128 a : 3;
561563
};
@@ -569,6 +571,7 @@ namespace VectorCast {
569571
static_assert(s.a == 0); // ref-error {{not an integral constant expression}} \
570572
// ref-note {{initializer of 's' is not a constant expression}}
571573
#endif
574+
#endif
572575
}
573576
#endif
574577

0 commit comments

Comments
 (0)