i386: Avoid reversing a non-trapping comparison to a trapping one [PR95169]
authorUros Bizjak <ubizjak@gmail.com>
Mon, 18 May 2020 15:52:14 +0000 (17:52 +0200)
committerUros Bizjak <ubizjak@gmail.com>
Mon, 18 May 2020 15:52:14 +0000 (17:52 +0200)
commit8f17461bdfeed758f2be71529fc3af55a76ea3e1
tree15b4763a2f1151b5db1d0b8502f6cc74ac6de883
parent8b8f3117263ca79b3febadadb07732588d99d5f6
i386: Avoid reversing a non-trapping comparison to a trapping one [PR95169]

gcc/ChangeLog:

PR target/95169
* config/i386/i386-expand.c (ix86_expand_int_movcc):
 Avoid reversing a non-trapping comparison to a trapping one.

testsuite/ChangeLog:

PR target/95169
* gcc.target/i386/pr95169.c: New test.
gcc/ChangeLog
gcc/config/i386/i386-expand.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr95169.c [new file with mode: 0644]