<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW " title="NEW --- - [mips][ubsan] cast-overflow.cpp fails on 3.7 release" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24152&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=589KgH_XRjB7raymPZtNDFZlM65FRVQzT9o9RMtuKCg&s=3DPSPxelYSFq5D-hlXgV7ZwiTMgI_IMH9jKgVbxmY_8&e=">24152</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[mips][ubsan] cast-overflow.cpp fails on 3.7 release
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>3.7
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>daniel.sanders@imgtec.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>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'
^
--</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>