re PR target/79752 (incorrect code generation for __divkf3 with -O2 -mcpu=power9)

2017-03-01  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>

        PR target/79752
        * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
        udiv rather than div since input pattern is unsigned.

From-SVN: r245817
This commit is contained in:
Aaron Sawdey 2017-03-01 19:58:05 +00:00 committed by Aaron Sawdey
parent 489909059b
commit af15f9938b
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2017-03-01 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
PR target/79752
* config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
udiv rather than div since input pattern is unsigned.
2017-03-01 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.c (print_reg): Warn for values of

View File

@ -3161,8 +3161,8 @@
&& ! reg_mentioned_p (operands[3], operands[1])
&& ! reg_mentioned_p (operands[3], operands[2])"
[(set (match_dup 0)
(div:GPR (match_dup 1)
(match_dup 2)))
(udiv:GPR (match_dup 1)
(match_dup 2)))
(set (match_dup 3)
(mult:GPR (match_dup 0)
(match_dup 2)))