<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 --- - Crash using integrated assembler with immediate arithmetic"
href="http://llvm.org/bugs/show_bug.cgi?id=18931">18931</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Crash using integrated assembler with immediate arithmetic
</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>OpenBSD
</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: ARM
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>simon.hosie@arm.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=12101" name="attach_12101" title="fatal test case">attachment 12101</a> <a href="attachment.cgi?id=12101&action=edit" title="fatal test case">[details]</a></span>
fatal test case
For the attached code fragment, Clang dies here:
clang: /home/simhos01/llvm/llvm/include/llvm/MC/MCInst.h:75: int64_t
llvm::MCOperand::getImm() const: Assertion `isImm() && "This is not an
immediate"' failed.
0 clang 0x0000000002386355 llvm::sys::PrintStackTrace(_IO_FILE*) +
37
1 clang 0x0000000002386b43
2 libpthread.so.0 0x00007fe104f7ecb0
3 libc.so.6 0x00007fe103d9c425 gsignal + 53
4 libc.so.6 0x00007fe103d9fb8b abort + 379
5 libc.so.6 0x00007fe103d950ee
6 libc.so.6 0x00007fe103d95192
7 clang 0x000000000198376f
8 clang 0x0000000001976e45
9 clang 0x0000000001970cae
10 clang 0x0000000002305772
llvm::MCELFStreamer::EmitInstToData(llvm::MCInst const&, llvm::MCSubtargetInfo
const&) + 146
11 clang 0x0000000002310c15
llvm::MCObjectStreamer::EmitInstruction(llvm::MCInst const&,
llvm::MCSubtargetInfo const&) + 437
12 clang 0x000000000193234f
13 clang 0x0000000001d773a1
14 clang 0x0000000001d719a2
15 clang 0x0000000000690113 cc1as_main(char const**, char const**,
char const*, void*) + 8899
16 clang 0x0000000000691feb main + 3099
17 libc.so.6 0x00007fe103d8776d __libc_start_main + 237
18 clang 0x000000000068d1e9</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>