[compiler-rt] 1bba0bf - Exclude unsupported compiler-rt tests on z/OS. (#194437)

via llvm-commits llvm-commits at lists.llvm.org
Fri May 8 05:20:09 PDT 2026


Author: sujianIBM
Date: 2026-05-08T08:20:04-04:00
New Revision: 1bba0bfe1c2957ed21b712ffddeb9fd0348ff06a

URL: https://github.com/llvm/llvm-project/commit/1bba0bfe1c2957ed21b712ffddeb9fd0348ff06a
DIFF: https://github.com/llvm/llvm-project/commit/1bba0bfe1c2957ed21b712ffddeb9fd0348ff06a.diff

LOG: Exclude unsupported compiler-rt tests on z/OS. (#194437)

This PR excludes unsupported part (NAN, -NAN, INFINITY, -INFINITY) from
the following 2 compiler-rt tests on z/OS.
```
compiler-rt/test/builtins/Unit/compiler_rt_scalbnl_test.c
compiler-rt/test/builtins/Unit/compiler_rt_logbl_test.c
```

Added: 
    

Modified: 
    compiler-rt/test/builtins/Unit/compiler_rt_logbl_test.c
    compiler-rt/test/builtins/Unit/compiler_rt_scalbnl_test.c

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/builtins/Unit/compiler_rt_logbl_test.c b/compiler-rt/test/builtins/Unit/compiler_rt_logbl_test.c
index f49ce710b0443..437600a14c3b6 100644
--- a/compiler-rt/test/builtins/Unit/compiler_rt_logbl_test.c
+++ b/compiler-rt/test/builtins/Unit/compiler_rt_logbl_test.c
@@ -34,8 +34,13 @@ int test__compiler_rt_logbl(fp_t x) {
 }
 
 fp_t cases[] = {
-    1.e-6, -1.e-6, NAN, -NAN, INFINITY, -INFINITY, -1,
-    -0.0,  0.0,    1,   -2,   2,        -0.5,      0.5,
+    1.e-6, -1.e-6,
+// The logbl() function's behavior on the following values on z/OS
+// 
diff ers from the C++ standard specification.
+#  ifndef __MVS__
+    NAN,   -NAN,   INFINITY, -INFINITY,
+#  endif
+    -1,    -0.0,   0.0,      1,         -2, 2, -0.5, 0.5,
 };
 
 int main() {

diff  --git a/compiler-rt/test/builtins/Unit/compiler_rt_scalbnl_test.c b/compiler-rt/test/builtins/Unit/compiler_rt_scalbnl_test.c
index 0d9bbdfd68e4a..fd14e1ae7009d 100644
--- a/compiler-rt/test/builtins/Unit/compiler_rt_scalbnl_test.c
+++ b/compiler-rt/test/builtins/Unit/compiler_rt_scalbnl_test.c
@@ -39,10 +39,14 @@ int test__compiler_rt_scalbnl(const char *mode, fp_t x, int y) {
 }
 
 fp_t cases[] = {
+// The scalbnl() function's behavior on the following values on z/OS
+// 
diff ers from the C++ standard specification.
+#  ifndef __MVS__
     -NAN,
     NAN,
     -INFINITY,
     INFINITY,
+#  endif
     -0.0,
     0.0,
     -1,


        


More information about the llvm-commits mailing list