[LLVMbugs] [Bug 24152] New: [mips][ubsan] cast-overflow.cpp fails on 3.7 release
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jul 16 04:08:47 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=24152
Bug ID: 24152
Summary: [mips][ubsan] cast-overflow.cpp fails on 3.7 release
Product: new-bugs
Version: 3.7
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: daniel.sanders at imgtec.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
The host is Debian Jessie (mips) on a MIPS64r2 CPU.
********************
Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
FAIL: UBSan-ASan-mips :: TestCases/Float/cast-overflow.cpp (23119 of 23237)
******************** TEST 'UBSan-ASan-mips ::
TestCases/Float/cast-overflow.cpp' FAILED ********************
Script:
--
/home/das/llvm/release_37/release/branches_release_37/Phase3/Release/llvmCore-test-branches_release_37.obj/./bin/clang
--driver-mode=g++ -fsanitize=address -mips32r2 --target=mips-linux-gnu
-fsanitize=float-cast-overflow -g
/home/das/llvm/release_37/release/branches_release_37/compiler-rt.src/test/ubsan/TestCases/Float/cast-overflow.cpp
-o
/home/das/llvm/release_37/release/branches_release_37/Phase3/Release/llvmCore-test-branches_release_37.obj/projects/compiler-rt/test/ubsan/AddressSanitizer-mips/TestCases/Float/Output/cast-overflow.cpp.tmp
/home/das/llvm/release_37/release/branches_release_37/Phase3/Release/llvmCore-test-branches_release_37.obj/projects/compiler-rt/test/ubsan/AddressSanitizer-mips/TestCases/Float/Output/cast-overflow.cpp.tmp
_
env UBSAN_OPTIONS=print_summary=1
/home/das/llvm/release_37/release/branches_release_37/Phase3/Release/llvmCore-test-branches_release_37.obj/projects/compiler-rt/test/ubsan/AddressSanitizer-mips/TestCases/Float/Output/cast-overflow.cpp.tmp
0 2>&1 | FileCheck
/home/das/llvm/release_37/release/branches_release_37/compiler-rt.src/test/ubsan/TestCases/Float/cast-overflow.cpp
--check-prefix=CHECK-0
/home/das/llvm/release_37/release/branches_release_37/Phase3/Release/llvmCore-test-branches_release_37.obj/projects/compiler-rt/test/ubsan/AddressSanitizer-mips/TestCases/Float/Output/cast-overflow.cpp.tmp
1 2>&1 | FileCheck
/home/das/llvm/release_37/release/branches_release_37/compiler-rt.src/test/ubsan/TestCases/Float/cast-overflow.cpp
--check-prefix=CHECK-1
/home/das/llvm/release_37/release/branches_release_37/Phase3/Release/llvmCore-test-branches_release_37.obj/projects/compiler-rt/test/ubsan/AddressSanitizer-mips/TestCases/Float/Output/cast-overflow.cpp.tmp
2 2>&1 | FileCheck
/home/das/llvm/release_37/release/branches_release_37/compiler-rt.src/test/ubsan/TestCases/Float/cast-overflow.cpp
--check-prefix=CHECK-2
/home/das/llvm/release_37/release/branches_release_37/Phase3/Release/llvmCore-test-branches_release_37.obj/projects/compiler-rt/test/ubsan/AddressSanitizer-mips/TestCases/Float/Output/cast-overflow.cpp.tmp
3 2>&1 | FileCheck
/home/das/llvm/release_37/release/branches_release_37/compiler-rt.src/test/ubsan/TestCases/Float/cast-overflow.cpp
--check-prefix=CHECK-3
/home/das/llvm/release_37/release/branches_release_37/Phase3/Release/llvmCore-test-branches_release_37.obj/projects/compiler-rt/test/ubsan/AddressSanitizer-mips/TestCases/Float/Output/cast-overflow.cpp.tmp
4 2>&1 | FileCheck
/home/das/llvm/release_37/release/branches_release_37/compiler-rt.src/test/ubsan/TestCases/Float/cast-overflow.cpp
--check-prefix=CHECK-4
/home/das/llvm/release_37/release/branches_release_37/Phase3/Release/llvmCore-test-branches_release_37.obj/projects/compiler-rt/test/ubsan/AddressSanitizer-mips/TestCases/Float/Output/cast-overflow.cpp.tmp
5 2>&1 | FileCheck
/home/das/llvm/release_37/release/branches_release_37/compiler-rt.src/test/ubsan/TestCases/Float/cast-overflow.cpp
--check-prefix=CHECK-5
/home/das/llvm/release_37/release/branches_release_37/Phase3/Release/llvmCore-test-branches_release_37.obj/projects/compiler-rt/test/ubsan/AddressSanitizer-mips/TestCases/Float/Output/cast-overflow.cpp.tmp
6 2>&1 | FileCheck
/home/das/llvm/release_37/release/branches_release_37/compiler-rt.src/test/ubsan/TestCases/Float/cast-overflow.cpp
--check-prefix=CHECK-6
not
/home/das/llvm/release_37/release/branches_release_37/Phase3/Release/llvmCore-test-branches_release_37.obj/projects/compiler-rt/test/ubsan/AddressSanitizer-mips/TestCases/Float/Output/cast-overflow.cpp.tmp
9 2>&1 | FileCheck
/home/das/llvm/release_37/release/branches_release_37/compiler-rt.src/test/ubsan/TestCases/Float/cast-overflow.cpp
--check-prefix=CHECK-9
--
Exit Code: 1
Command Output (stderr):
--
/home/das/llvm/release_37/release/branches_release_37/compiler-rt.src/test/ubsan/TestCases/Float/cast-overflow.cpp:45:3:
warning: expression result unused [-Wunused-value]
(int)MaxFloatRepresentableAsInt; // ok
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/das/llvm/release_37/release/branches_release_37/compiler-rt.src/test/ubsan/TestCases/Float/cast-overflow.cpp:46:3:
warning: expression result unused [-Wunused-value]
(int)-MaxFloatRepresentableAsInt; // ok
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/das/llvm/release_37/release/branches_release_37/compiler-rt.src/test/ubsan/TestCases/Float/cast-overflow.cpp:49:3:
warning: expression result unused [-Wunused-value]
(int)MinFloatRepresentableAsInt; // ok
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/das/llvm/release_37/release/branches_release_37/compiler-rt.src/test/ubsan/TestCases/Float/cast-overflow.cpp:52:3:
warning: expression result unused [-Wunused-value]
(unsigned int)MaxFloatRepresentableAsUInt; // ok
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
4 warnings generated.
/home/das/llvm/release_37/release/branches_release_37/compiler-rt.src/test/ubsan/TestCases/Float/cast-overflow.cpp:89:14:
error: expected string not found in input
// CHECK-0: runtime error: value 2.14748{{.*}} is outside the range of
representable values of type 'int'
^
<stdin>:1:1: note: scanning from here
/home/das/llvm/release_37/release/branches_release_37/compiler-rt.src/test/ubsan/TestCases/Float/cast-overflow.cpp:90:27:
runtime error: value 4.2039e-45 is outside the range of representable values of
type 'int'
^
<stdin>:1:123: note: possible intended match here
/home/das/llvm/release_37/release/branches_release_37/compiler-rt.src/test/ubsan/TestCases/Float/cast-overflow.cpp:90:27:
runtime error: value 4.2039e-45 is outside the range of representable values of
type 'int'
^
--
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150716/97a34275/attachment.html>
More information about the llvm-bugs
mailing list