[compiler-rt] r365307 - [ubsan][test] Fix cast-overflow.cpp and delete float-divide-by-zero test after D63793/rC365272

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 8 02:47:04 PDT 2019


Author: maskray
Date: Mon Jul  8 02:47:04 2019
New Revision: 365307

URL: http://llvm.org/viewvc/llvm-project?rev=365307&view=rev
Log:
[ubsan][test] Fix cast-overflow.cpp and delete float-divide-by-zero test after D63793/rC365272

Modified:
    compiler-rt/trunk/test/ubsan/TestCases/Float/cast-overflow.cpp
    compiler-rt/trunk/test/ubsan/TestCases/Integer/div-zero.cpp

Modified: compiler-rt/trunk/test/ubsan/TestCases/Float/cast-overflow.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/ubsan/TestCases/Float/cast-overflow.cpp?rev=365307&r1=365306&r2=365307&view=diff
==============================================================================
--- compiler-rt/trunk/test/ubsan/TestCases/Float/cast-overflow.cpp (original)
+++ compiler-rt/trunk/test/ubsan/TestCases/Float/cast-overflow.cpp Mon Jul  8 02:47:04 2019
@@ -137,7 +137,7 @@ int main(int argc, char **argv) {
 
     // Integer -> floating point overflow.
   case '6': {
-    // CHECK-6: cast-overflow.cpp:[[@LINE+2]]:{{34: runtime error: 0xffffff00000000000000000000000001 is outside the range of representable values of type 'float'| __int128 not supported}}
+    // CHECK-6: cast-overflow.cpp:[[@LINE+2]]:{{27: runtime error: 3.40282e\+38 is outside the range of representable values of type 'int'| __int128 not supported}}
 #if defined(__SIZEOF_INT128__) && !defined(_WIN32)
     static int test_int = (float)(FloatMaxAsUInt128 + 1);
     return 0;

Modified: compiler-rt/trunk/test/ubsan/TestCases/Integer/div-zero.cpp
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/ubsan/TestCases/Integer/div-zero.cpp?rev=365307&r1=365306&r2=365307&view=diff
==============================================================================
--- compiler-rt/trunk/test/ubsan/TestCases/Integer/div-zero.cpp (original)
+++ compiler-rt/trunk/test/ubsan/TestCases/Integer/div-zero.cpp Mon Jul  8 02:47:04 2019
@@ -1,6 +1,5 @@
 // RUN: %clangxx -fsanitize=integer-divide-by-zero -DDIVIDEND=0 %s -o %t && %run %t 2>&1 | FileCheck %s
 // RUN: %clangxx -fsanitize=integer-divide-by-zero -DDIVIDEND=1U %s -o %t && %run %t 2>&1 | FileCheck %s
-// RUN: %clangxx -fsanitize=float-divide-by-zero -DDIVIDEND=1.5 %s -o %t && %run %t 2>&1 | FileCheck %s
 // RUN: %clangxx -fsanitize=integer-divide-by-zero -DDIVIDEND='intmax(123)' %s -o %t && %run %t 2>&1 | FileCheck %s
 
 #if defined(__SIZEOF_INT128__) && !defined(_WIN32)




More information about the llvm-commits mailing list