This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/34575] gcc.target/powerpc/parity-1.c and popcount-1.c scan-assembler popcntb on darwin9
- From: "howarth at nitro dot med dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Dec 2007 20:26:03 -0000
- Subject: [Bug target/34575] gcc.target/powerpc/parity-1.c and popcount-1.c scan-assembler popcntb on darwin9
- References: <bug-34575-11113@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from howarth at nitro dot med dot uc dot edu 2007-12-24 20:26 -------
I also see the same failure for popcount-1.c. The compile line...
/sw/src/fink.build/gcc43-4.2.999-20071221/darwin_objdir/gcc/xgcc
-B/sw/src/fink.build/gcc43-4.2.999-20071221/darwin_objdir/gcc/
/sw/src/fink.build/gcc43-4.2.999-20071221/gcc-4.3-20071221/gcc/testsuite/gcc.target/powerpc/popcount-1.c
-O2 -mcpu=power5 -fno-show-column -S -o popcount-1.s
...produces the assembly...
.machine ppc970
.text
.align 2
.p2align 4,,15
.globl _foo
_foo:
mflr r0
rldicl r4,r3,0,32
li r3,0
stw r0,8(r1)
stwu r1,-64(r1)
bl L___popcountdi2$stub
addi r1,r1,64
lwz r0,8(r1)
mtlr r0
blr
.section __TEXT,__picsymbolstub1,symbol_stubs,pure_instructions,32
.align 5
L___popcountdi2$stub:
.indirect_symbol ___popcountdi2
mflr r0
bcl 20,31,"L00000000001$spb"
"L00000000001$spb":
mflr r11
addis r11,r11,ha16(L___popcountdi2$lazy_ptr-"L00000000001$spb")
mtlr r0
lwzu r12,lo16(L___popcountdi2$lazy_ptr-"L00000000001$spb")(r11)
mtctr r12
bctr
.lazy_symbol_pointer
L___popcountdi2$lazy_ptr:
.indirect_symbol ___popcountdi2
.long dyld_stub_binding_helper
.subsections_via_symbols
--
howarth at nitro dot med dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|gcc.target/powerpc/parity- |gcc.target/powerpc/parity-
|1.c scan-assembler popcntb |1.c and popcount-1.c scan-
|on darwin9 |assembler popcntb on darwin9
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34575