http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59744
--- Comment #4 from Michael Hudson-Doyle <michael.hudson at linaro dot org> --- Hi, thanks for the super fast fix. Could it be backported to 4.8? git cherry-pick gives a conflict in aarch64.md which is probably easy to fix if you know how this code works: (define_insn "*compare_neg<mode>" <<<<<<< HEAD [(set (reg:CC CC_REGNUM) (compare:CC (match_operand:GPI 0 "register_operand" "r") (neg:GPI (match_operand:GPI 1 "register_operand" "r"))))] ||||||| parent of 46b590a... PR target/9744 [(set (reg:CC_SWP CC_REGNUM) (compare:CC_SWP (neg:GPI (match_operand:GPI 0 "register_operand" "r")) (match_operand:GPI 1 "register_operand" "r")))] ======= [(set (reg:CC_Z CC_REGNUM) (compare:CC_Z (neg:GPI (match_operand:GPI 0 "register_operand" "r")) (match_operand:GPI 1 "register_operand" "r")))] >>>>>>> 46b590a... PR target/9744 "" "cmn\\t%<w>0, %<w>1" [(set_attr "v8type" "alus") (set_attr "mode" "<MODE>")] )