<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 --- - bad asm emitted for powerpc-darwin8"
href="http://llvm.org/bugs/show_bug.cgi?id=15605">15605</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>bad asm emitted for powerpc-darwin8
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</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>fang@csl.cornell.edu
</td>
</tr>
<tr>
<th>CC</th>
<td>hfinkel@anl.gov, llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>I'm now seeing the following errors:
g% /Volumes/Isolde/sources/LLVM-svn/gcc40-cmake-build/bin/clang++
-DLLVMSupport_EXPORTS -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS -fno-common -no-integrated-as -fvisibility-inlines-hidden
-Wnon-virtual-dtor -fno-rtti -gdwarf2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
-fPIC -I/Users/fang/local/src/LLVM-svn/gcc40-stage2-build/lib/Support
-I/Users/fang/local/src/LLVM-svn/llvm/lib/Support
-I/Users/fang/local/src/LLVM-svn/gcc40-stage2-build/include
-I/Users/fang/local/src/LLVM-svn/llvm/include -Wall -W -Wno-unused-parameter
-Wwrite-strings -pedantic -Wno-long-long -fno-exceptions -o
CMakeFiles/LLVMSupport.dir/APFloat.cpp.o -c
/Users/fang/local/src/LLVM-svn/llvm/lib/Support/APFloat.cpp -save-temps
clang-3.1: warning: argument unused during compilation: '-gdwarf2'
APFloat.s:20875:Parameter error: r0 not allowed for parameter 2 (code as 0 not
r0)
APFloat.s:21303:Parameter error: r0 not allowed for parameter 2 (code as 0 not
r0)
APFloat.s:21319:Parameter error: r0 not allowed for parameter 2 (code as 0 not
r0)
APFloat.s:21325:Parameter error: r0 not allowed for parameter 2 (code as 0 not
r0)
clang-3.1: error: assembler command failed with exit code 1 (use -v to see
invocation)
example asm:
.private_extern __ZN4llvm3sys16SwapByteOrder_32Ej
.globl __ZN4llvm3sys16SwapByteOrder_32Ej
.weak_definition __ZN4llvm3sys16SwapByteOrder_32Ej
.align 4
__ZN4llvm3sys16SwapByteOrder_32Ej: ; @_ZN4llvm3sys16SwapByteOrder_32Ej
; BB#0: ; %entry
stw r3, -8(r1)
addi r2, r1, -8
lwbrx r2, r0, r2
stw r3, -12(r1) ; 4-byte Folded Spill
mr r3, r2
blr
The system assembler is complaining about the 'lwbrx' line.
another example:
LBB236_1: ; %entry
; =>This Inner Loop Header: Depth=1
lwz r2, 80(r31) ; 4-byte Folded Reload
lwarx r3, r0, r2
lwz r4, 88(r31) ; 4-byte Folded Reload
and r5, r3, r4
lwz r6, 72(r31) ; 4-byte Folded Reload
cmpw cr0, r5, r6
stw r3, 68(r31) ; 4-byte Folded Spill
stw r5, 64(r31) ; 4-byte Folded Spill
bne cr0, LBB236_3
; BB#2: ; %entry
errors on the 'lwarx' line.
another example:
LBB236_3: ; %entry
lwz r2, 68(r31) ; 4-byte Folded Reload
lwz r3, 80(r31) ; 4-byte Folded Reload
stwcx. r2, r0, r3
LBB236_4: ; %entry
lwz r2, 64(r31) ; 4-byte Folded Reload
lwz r3, 84(r31) ; 4-byte Folded Reload
srw r4, r2, r3
rlwinm r4, r4, 0, 24, 31
sync
cmplwi cr0, r4, 0
bne cr0, LBB236_10
b LBB236_5
error points to the 'stwcx' line.
This error did not happen a month ago.
Hal, do you know of any changes that might have affected this?
Would this be easy to fix? somewhere in PPCDarwinAsmPrinter?</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>