<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 --- - llvm-objdump fails on powerpc64le binaries" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24122&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=C_jN-GfNa52HUvE2YeiDxaRzxiU94Z05gLTu91PAVKg&s=1c2BpXbH4OETO1x0vhPhaQXXg4qkroja4mJarOpBo3w&e=">24122</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>llvm-objdump fails on powerpc64le binaries
</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>All
</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: PowerPC
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>echristo@gmail.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>Lots of:
llvm-objdump: warning: invalid instruction encoding
dzur:~/tmp> cat baz.c
int baz();
int __attribute__((always_inline)) foo() { return baz(); }
int bar() {
if (foo())
return baz();
return foo()+baz();
}
dzur:~/tmp> ~/builds/build-llvm/Debug+Asserts/bin/clang -c -target
powerpc64le-linux-gnu baz.c -o baz-ppc.o
dzur:~/tmp> ~/builds/build-llvm/Debug+Asserts/bin/llvm-objdump -disassemble
baz-ppc.o
baz-ppc.o: file format ELF64-ppc64
Disassembly of section .text:
foo:
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
8: a6 02 08 7c lhzu 16, 2172(2)
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
14: 91 ff 21 f8 stw 15, 8696(31)
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
28: b4 07 83 7c sthu 0, -31876(7)
2c: 70 00 21 38 andi. 0, 0, 8504
30: 10 00 01 e8 vmsumshm 0, 0, 0, 7
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
38: a6 03 08 7c lhzu 16, 2172(3)
3c: 20 00 80 4e subfic 0, 0, -32690
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
bar:
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
58: a6 02 08 7c lhzu 16, 2172(2)
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
64: 91 ff 21 f8 stw 15, 8696(31)
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
8c: 64 00 9f 90 oris 0, 0, 40848
90: 2c 00 00 48 cmpwi 0, 72
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
a0: 60 00 9f 90 ori 0, 0, 40848
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
b0: 60 00 bf 80 ori 0, 0, 49024
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
b8: 64 00 9f 90 oris 0, 0, 40848
bc: 66 00 7f e8 oris 0, 16, 32744
c0: 70 00 21 38 andi. 0, 0, 8504
c4: 10 00 01 e8 vmsumshm 0, 0, 0, 7
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
cc: a6 03 08 7c lhzu 16, 2172(3)
d0: 20 00 80 4e subfic 0, 0, -32690
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
/usr/local/google/home/echristo/builds/build-llvm/Debug+Asserts/bin/llvm-objdump:
warning: invalid instruction encoding
might just be endianness issues or it could be something else.</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>