http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54142

--- Comment #8 from Paul H. Hargrove <PHHargrove at lbl dot gov> 2012-08-13 
22:04:40 UTC ---
The following is a transcript of a test I just tried one of my systems where
Gary and I have observed this bug.  The test appears to show that the gcc
provided by Fedora Core 6 does generate "sldi" instructions and the
system-provided assembler understands them.  So, whatever is causing the build
failures that Gary and I see, it is *not* simply a matter of an assembler not
supporting the instructions.

-Paul

{phargrov@fc6 ~}$ cat q.c
unsigned long long foo(void) { return 0x00007FFF00000000LLU; }

{phargrov@fc6 ~}$ gcc -m64 -O -S q.c

{phargrov@fc6 ~}$ cat q.s
        .file   "q.c"
        .section        ".toc","aw"
        .section        ".text"
        .align 2
        .globl foo
        .section        ".opd","aw"
        .align 3
foo:
        .quad   .L.foo,.TOC.@tocbase
        .previous
        .type   foo, @function
.L.foo:
        lis 3,0x7fff
        sldi 3,3,16
        blr
        .long 0
        .byte 0,0,0,0,0,0,0,0
        .size   foo,.-.L.foo
        .ident  "GCC: (GNU) 4.1.2 20070626 (Red Hat 4.1.2-13)"
        .section        .note.GNU-stack,"",@progbits

{phargrov@fc6 ~}$ as -a64 -mppc64 q.s
[no errors]

Reply via email to