[Bug middle-end/59049] Two VOIDmode constant in comparison passed to cstoresi4

amylaar at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Nov 8 16:56:00 GMT 2013


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

--- Comment #3 from Jorn Wolfgang Rennecke <amylaar at gcc dot gnu.org> ---
Making emit_store_flag return 0 in the case of const-const comparison
gives simpler rtl generation:

(insn 14 13 15 (set (reg:QI 175)
        (const_int 1 [0x1])) .../strlen-2.c:29 -1
     (nil))

(insn 15 14 16 (set (reg:QI 175)
        (const_int 0 [0])) .../strlen-2.c:29 -1
     (nil))

(code_label 16 15 0 8 "" [0 uses])



More information about the Gcc-bugs mailing list