https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81914

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 42856
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42856&action=edit
gcc8-pr81914.patch

Untested patch that handles all the cases in the #c7 testcase.  Though it will
not handle some comparison functions in GCC (e.g. those which sometimes just
return a - b or similar).
If it doesn't look like a completely dumb approach, we probably should test it
on SPEC (unfortunately I don't have a reasonable setup for that right now).

Reply via email to