<html>
<head>
<base href="http://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 --- - Vector lowering: Assertion `isReg() && "This is not a register operand!"' failed."
href="http://llvm.org/bugs/show_bug.cgi?id=21352">21352</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Vector lowering: Assertion `isReg() && "This is not a register operand!"' failed.
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</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>Backend: X86
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>paul_robinson@playstation.sony.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>Created <span class=""><a href="attachment.cgi?id=13241" name="attach_13241" title="Traceback">attachment 13241</a> <a href="attachment.cgi?id=13241&action=edit" title="Traceback">[details]</a></span>
Traceback
Bisected this to r219046, enabling new vector lowering by default.
This is about as reduced as I can make it, sorry...
source file and traceback attached.
$ clang -cc1 -O2 -std=c++11 -emit-obj <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [instcombine] setcc instructions should allow limited cast propagation"
href="show_bug.cgi?id=8">bug8</a>.cpp
...
MCInst.h:64: unsigned int llvm::MCOperand::getReg() const:
Assertion `isReg() && "This is not a register operand!"' failed.
....
Stack dump:
0. Program arguments:
/home/probinson/projects/llvm-org-tip/obj/Debug+Asserts/bin/clang -cc1 -O2
-std=c++11 -emit-obj <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [instcombine] setcc instructions should allow limited cast propagation"
href="show_bug.cgi?id=8">bug8</a>.cpp
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module '<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [instcombine] setcc instructions should allow limited cast propagation"
href="show_bug.cgi?id=8">bug8</a>.cpp'.
4. Running pass 'X86 Assembly / Object Emitter' on function '@_Z2llv'
$ cat <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [instcombine] setcc instructions should allow limited cast propagation"
href="show_bug.cgi?id=8">bug8</a>.cpp
typedef int int16 __attribute__((__vector_size__(16)));
typedef char char16 __attribute__((__vector_size__(16)));
struct AA {
void bb();
int cc();
int16 dd;
};
void AA::bb() {
dd = {};
}
int16 hh;
void ff() {
int16 jj = __extension__({
char16 kk =
(__builtin_ia32_psradi128(__extension__({
int16 kk = {};
kk;
}),
0));
__builtin_shufflevector((char16) {}, kk, 12, 13, 14, 15, 16, 17, 18, 19,
20,
21, 22, 23, 24, 25, 26, 27);
});
hh = jj;
}
void ll() {
AA nn;
ff();
nn.bb();
nn.cc();
}</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>