diff options
| author | Fangrui Song <maskray@google.com> | 2019-07-08 09:47:04 +0000 |
|---|---|---|
| committer | Fangrui Song <maskray@google.com> | 2019-07-08 09:47:04 +0000 |
| commit | 1f7bd40f6818be129fe97fe45ab32c728623233d (patch) | |
| tree | e60dd27738c73fd2021434fc25404af4b168fd7f | |
| parent | ee81051fc96a6e1fe1c4efba75db8e368f918aa4 (diff) | |
| download | bcm5719-llvm-1f7bd40f6818be129fe97fe45ab32c728623233d.tar.gz bcm5719-llvm-1f7bd40f6818be129fe97fe45ab32c728623233d.zip | |
[ubsan][test] Fix cast-overflow.cpp and delete float-divide-by-zero test after D63793/rC365272
llvm-svn: 365307
| -rw-r--r-- | compiler-rt/test/ubsan/TestCases/Float/cast-overflow.cpp | 2 | ||||
| -rw-r--r-- | compiler-rt/test/ubsan/TestCases/Integer/div-zero.cpp | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/compiler-rt/test/ubsan/TestCases/Float/cast-overflow.cpp b/compiler-rt/test/ubsan/TestCases/Float/cast-overflow.cpp index 460150aa3b2..479c39f2842 100644 --- a/compiler-rt/test/ubsan/TestCases/Float/cast-overflow.cpp +++ b/compiler-rt/test/ubsan/TestCases/Float/cast-overflow.cpp @@ -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; diff --git a/compiler-rt/test/ubsan/TestCases/Integer/div-zero.cpp b/compiler-rt/test/ubsan/TestCases/Integer/div-zero.cpp index 68b01afab21..02c4d3b79d4 100644 --- a/compiler-rt/test/ubsan/TestCases/Integer/div-zero.cpp +++ b/compiler-rt/test/ubsan/TestCases/Integer/div-zero.cpp @@ -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) |

