Skip to content

Commit 1f7bd40

Browse files
committed
[ubsan][test] Fix cast-overflow.cpp and delete float-divide-by-zero test after D63793/rC365272
llvm-svn: 365307
1 parent ee81051 commit 1f7bd40

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

compiler-rt/test/ubsan/TestCases/Float/cast-overflow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ int main(int argc, char **argv) {
137137

138138
// Integer -> floating point overflow.
139139
case '6': {
140-
// CHECK-6: cast-overflow.cpp:[[@LINE+2]]:{{34: runtime error: 0xffffff00000000000000000000000001 is outside the range of representable values of type 'float'| __int128 not supported}}
140+
// 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}}
141141
#if defined(__SIZEOF_INT128__) && !defined(_WIN32)
142142
static int test_int = (float)(FloatMaxAsUInt128 + 1);
143143
return 0;

compiler-rt/test/ubsan/TestCases/Integer/div-zero.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// RUN: %clangxx -fsanitize=integer-divide-by-zero -DDIVIDEND=0 %s -o %t && %run %t 2>&1 | FileCheck %s
22
// RUN: %clangxx -fsanitize=integer-divide-by-zero -DDIVIDEND=1U %s -o %t && %run %t 2>&1 | FileCheck %s
3-
// RUN: %clangxx -fsanitize=float-divide-by-zero -DDIVIDEND=1.5 %s -o %t && %run %t 2>&1 | FileCheck %s
43
// RUN: %clangxx -fsanitize=integer-divide-by-zero -DDIVIDEND='intmax(123)' %s -o %t && %run %t 2>&1 | FileCheck %s
54

65
#if defined(__SIZEOF_INT128__) && !defined(_WIN32)

0 commit comments

Comments
 (0)