[LLVMbugs] [Bug 15605] bad asm emitted for powerpc-darwin8
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Mar 27 10:46:53 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=15605
David Fang <fang at csl.cornell.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |---
--- Comment #6 from David Fang <fang at csl.cornell.edu> ---
Just for the record, here's the resulting change in asm produced in the patched
version. (And it assembles fine.)
--- APFloat.s.orig 2013-03-26 14:44:57.000000000 -0700
+++ APFloat.s 2013-03-27 10:44:04.000000000 -0700
@@ -20872,7 +20872,7 @@
; BB#0: ; %entry
stw r3, -8(r1)
addi r2, r1, -8
- lwbrx r2, r0, r2
+ lwbrx r2, 0, r2
stw r3, -12(r1) ; 4-byte Folded Spill
mr r3, r2
blr
@@ -21300,7 +21300,7 @@
LBB236_1: ; %entry
; =>This Inner Loop Header: Depth=1
lwz r2, 80(r31) ; 4-byte Folded Reload
- lwarx r3, r0, r2
+ lwarx r3, 0, r2
lwz r4, 88(r31) ; 4-byte Folded Reload
and r5, r3, r4
lwz r6, 72(r31) ; 4-byte Folded Reload
@@ -21316,13 +21316,13 @@
lwz r5, 76(r31) ; 4-byte Folded Reload
or r4, r4, r5
lwz r6, 80(r31) ; 4-byte Folded Reload
- stwcx. r4, r0, r6
+ stwcx. r4, 0, r6
bne cr0, LBB236_1
b LBB236_4
LBB236_3: ; %entry
lwz r2, 68(r31) ; 4-byte Folded Reload
lwz r3, 80(r31) ; 4-byte Folded Reload
- stwcx. r2, r0, r3
+ stwcx. r2, 0, r3
LBB236_4: ; %entry
lwz r2, 64(r31) ; 4-byte Folded Reload
lwz r3, 84(r31) ; 4-byte Folded Reload
I'll pick up your commit on trunk with my next merge. Thanks again!
(I'll close the bug then.)
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130327/8bcf837a/attachment.html>
More information about the llvm-bugs
mailing list