<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 --- - Clang confuses backend... somehow."
href="https://llvm.org/bugs/show_bug.cgi?id=26658">26658</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Clang confuses backend... somehow.
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</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>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>chriskitching@linux.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=15918" name="attach_15918" title="Reduced testcase">attachment 15918</a> <a href="attachment.cgi?id=15918&action=edit" title="Reduced testcase">[details]</a></span>
Reduced testcase
Process the given file like so:
"/usr/bin/clang-3.7" "-cc1" -save-temps "-triple" "x86_64-unknown-linux-gnu"
"-emit-obj" "-disable-free" "-disable-llvm-verifier" "-main-file-name"
"FeaturePyramid.cpp" "-mrelocation-model" "pic" "-pic-level" "2"
"-mthread-model" "posix" "-fmath-errno" "-fno-signed-zeros" "-freciprocal-math"
"-masm-verbose" "-mconstructor-aliases" "-munwind-tables" "-fuse-init-array"
"-target-cpu" "x86-64" "-momit-leaf-frame-pointer" "-g" "-dwarf-column-info"
"-D" "ENABLE_DBG_ASSERTIONS" "-D" "c3_EXPORTS" "-D" "SENTRY" "-D" "NDEBUG"
"-O3" "-Wall" "-Wpedantic" "-Wextra" "-Wno-sign-compare" "-Wall" "-Wpedantic"
"-Wextra" "-Wno-sign-compare" "-Wall" "-Wpedantic" "-Wextra"
"-Wno-sign-compare" "-std=c++11" "-fdeprecated-macro" "-ferror-limit" "19"
"-fmessage-length" "142" "-mstackrealign" "-fobjc-runtime=gcc"
"-fcxx-exceptions" "-fexceptions" "-fdiagnostics-show-option"
"-fcolor-diagnostics" "-vectorize-loops" "-vectorize-slp"
"-vectorize-slp-aggressive" "-x" "c++" "FeaturePyramid-827290.cpp"
Produces:
fatal error: error in backend: Cannot select: 0x3134990: i32 = any_extend
0x3135be8 [ORD=71] [ID=74]FeaturePyramid-827290.cpp:30:11
0x3135be8: i64 = extract_vector_elt 0x31323a8, 0x3101948 [ORD=71]
[ID=71]FeaturePyramid-827290.cpp:30:11
0x31323a8: v2i64 = bitcast 0x3102160 [ORD=71]
[ID=67]FeaturePyramid-827290.cpp:30:11
0x3102160: v4i32 = X86ISD::PSHUFD 0x31372e8, 0x31343c8 [ORD=71]
[ID=63]FeaturePyramid-827290.cpp:30:11
0x31372e8: v4i32 = X86ISD::PSHUFD 0x3132280, 0x3133858 [ORD=71]
[ID=59]FeaturePyramid-827290.cpp:30:11
0x3132280: v4i32 = X86ISD::CMPP 0x312f020, 0x3134d08, 0x3133f48
[ORD=71] [ID=55]FeaturePyramid-827290.cpp:30:11
0x312f020: v4f32 = fsub 0x3128058, 0x31274c8 [ORD=62]
[ID=51]FeaturePyramid-827290.cpp:20:15
0x3128058: v4f32 = fsub 0x3127f30, 0x31274c8 [ORD=57]
[ID=48]FeaturePyramid-827290.cpp:20:15
0x3127f30: v4f32 = fsub 0x3132bc0, 0x31274c8 [ORD=52]
[ID=45]FeaturePyramid-827290.cpp:20:15
0x3132bc0: v4f32 = X86ISD::UNPCKL 0x312e240, 0x312e5b8
[ORD=51] [ID=40]
0x31274c8: v4f32 = undef [ID=14]
0x31274c8: v4f32 = undef [ID=14]
0x31274c8: v4f32 = undef [ID=14]
0x3134d08: v4f32 = bitcast 0x3131710 [ORD=74] [ID=41]
0x3131710: v4i32 = BUILD_VECTOR 0x3131f28, 0x3131f28, 0x3131f28,
0x3131f28 [ORD=74] [ID=36]
0x3131f28: i32 = Constant<0> [ID=26]
0x3131f28: i32 = Constant<0> [ID=26]
0x3131f28: i32 = Constant<0> [ID=26]
0x3131f28: i32 = Constant<0> [ID=26]
0x3133f48: i8 = Constant<4> [ID=17]FeaturePyramid-827290.cpp:30:11
0x3133858: i8 = Constant<-44> [ID=24]FeaturePyramid-827290.cpp:30:11
0x31343c8: i8 = Constant<78> [ID=30]FeaturePyramid-827290.cpp:30:11
0x3101948: i64 = Constant<0> [ID=8]
In function: _Z19resizeBilinearFloatI3VecIfLm3EEEv3MatIT_E
Apologies for the lack of much in the way of actual investigation.</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>