Skip to content

Commit 290e485

Browse files
earnolEänolituri LómitaurëAaronBallmanilovepivitalybuka
authored
[ubsan] Limit _BitInt ubsan tests to x86-64 platform only (#104494)
The patch #104462 broke Sun Solaris build. Limit the tests to the tested platform only. Tests changed are compiler-rt/test/ubsan/TestCases/Integer/bit-int-pass.c and compiler-rt/test/ubsan/TestCases/Integer/bit-int.c --------- Co-authored-by: Eänolituri Lómitaurë <[email protected]> Co-authored-by: Aaron Ballman <[email protected]> Co-authored-by: Paul Kirth <[email protected]> Co-authored-by: Vitaly Buka <[email protected]>
1 parent 99a10f1 commit 290e485

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

compiler-rt/test/ubsan/TestCases/Integer/bit-int-pass.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// REQUIRES: x86_64-target-arch
12
// RUN: %clang -Wno-constant-conversion -Wno-array-bounds -Wno-division-by-zero -Wno-shift-negative-value -Wno-shift-count-negative -Wno-int-to-pointer-cast -O0 -fsanitize=alignment,array-bounds,bool,float-cast-overflow,implicit-integer-sign-change,implicit-signed-integer-truncation,implicit-unsigned-integer-truncation,integer-divide-by-zero,nonnull-attribute,null,nullability-arg,nullability-assign,nullability-return,pointer-overflow,returns-nonnull-attribute,shift-base,shift-exponent,signed-integer-overflow,unreachable,unsigned-integer-overflow,unsigned-shift-base,vla-bound %s -o %t1 && %run %t1 2>&1 | FileCheck %s
23

34
#include <stdint.h>

compiler-rt/test/ubsan/TestCases/Integer/bit-int.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
// REQUIRES: x86_64-target-arch
12
// RUN: %clang -Wno-constant-conversion -Wno-array-bounds -Wno-division-by-zero -Wno-shift-negative-value -Wno-shift-count-negative -Wno-int-to-pointer-cast -O0 -fsanitize=array-bounds,float-cast-overflow,implicit-integer-sign-change,implicit-signed-integer-truncation,implicit-unsigned-integer-truncation,integer-divide-by-zero,pointer-overflow,shift-base,shift-exponent,signed-integer-overflow,unsigned-integer-overflow,unsigned-shift-base,vla-bound %s -o %t1 && %run %t1 2>&1 | FileCheck %s
23

4+
// FIXME: make the test pass on windows.
5+
// XFAIL: target={{.*windows-msvc.*}}
6+
37
#include <stdint.h>
48
#include <stdio.h>
59

0 commit comments

Comments
 (0)