------- Comment #1 from pinskia at gcc dot gnu dot org  2008-08-11 01:31 -------
Hmm, this works on the trunk with -O2 -mtune=cell which means this is a
scheduling issue:
[EMAIL PROTECTED] ~]$ ~/gcc-mainline/bin/gcc -O2 -o - -S t.c
-mtune=cell
        .file   "t.c"
        .section        ".text"
        .align 2
        .p2align 3,,7
        .globl get_and_increment1
        .type   get_and_increment1, @function
get_and_increment1:
        lwz 9,0(3)
        addi 0,9,4
        stw 0,0(3)
        lwz 3,0(9)
        blr
        .size   get_and_increment1,.-get_and_increment1
        .align 2
        .p2align 3,,7
        .globl get_and_increment2
        .type   get_and_increment2, @function
get_and_increment2:
        lwz 9,0(3)
        addi 0,9,4
        stw 0,0(3)
        lwz 3,0(9)
        blr
        .size   get_and_increment2,.-get_and_increment2
        .ident  "GCC: (GNU) 4.4.0 20080810 (experimental) [trunk revision
138922]"
        .section        .note.GNU-stack,"",@progbits


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|tree-optimization           |rtl-optimization
   GCC host triplet|x86_64-pc-linux-gnu         |


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

Reply via email to