[compiler-rt] 290e485 - [ubsan] Limit _BitInt ubsan tests to x86-64 platform only (#104494)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 15 13:48:07 PDT 2024
Author: earnol
Date: 2024-08-15T13:48:02-07:00
New Revision: 290e4858fd3d1278ca8306da351f7ab89240306e
URL: https://github.com/llvm/llvm-project/commit/290e4858fd3d1278ca8306da351f7ab89240306e
DIFF: https://github.com/llvm/llvm-project/commit/290e4858fd3d1278ca8306da351f7ab89240306e.diff
LOG: [ubsan] Limit _BitInt ubsan tests to x86-64 platform only (#104494)
The patch https://github.com/llvm/llvm-project/pull/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ë <vladislav.aranov at ericsson.com>
Co-authored-by: Aaron Ballman <aaron at aaronballman.com>
Co-authored-by: Paul Kirth <paulkirth at google.com>
Co-authored-by: Vitaly Buka <vitalybuka at gmail.com>
Added:
Modified:
compiler-rt/test/ubsan/TestCases/Integer/bit-int-pass.c
compiler-rt/test/ubsan/TestCases/Integer/bit-int.c
Removed:
################################################################################
diff --git a/compiler-rt/test/ubsan/TestCases/Integer/bit-int-pass.c b/compiler-rt/test/ubsan/TestCases/Integer/bit-int-pass.c
index a25428f0eb872f..2255d2d08c7661 100644
--- a/compiler-rt/test/ubsan/TestCases/Integer/bit-int-pass.c
+++ b/compiler-rt/test/ubsan/TestCases/Integer/bit-int-pass.c
@@ -1,3 +1,4 @@
+// REQUIRES: x86_64-target-arch
// 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
#include <stdint.h>
diff --git a/compiler-rt/test/ubsan/TestCases/Integer/bit-int.c b/compiler-rt/test/ubsan/TestCases/Integer/bit-int.c
index 18dc10bf3a3889..48f718285b06a1 100644
--- a/compiler-rt/test/ubsan/TestCases/Integer/bit-int.c
+++ b/compiler-rt/test/ubsan/TestCases/Integer/bit-int.c
@@ -1,5 +1,9 @@
+// REQUIRES: x86_64-target-arch
// 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
+// FIXME: make the test pass on windows.
+// XFAIL: target={{.*windows-msvc.*}}
+
#include <stdint.h>
#include <stdio.h>
More information about the llvm-commits
mailing list