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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2022-11-11
     Ever confirmed|0                           |1

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Here is an x86_64 testcase which shows the issue at -O1 -fsignaling-nans even
before Jakub's patch:
```
typedef __bf16 __attribute__((__vector_size__ (sizeof(__bf16)))) V;

int
foo (__bf16 v)
{
  return v < ((V)(short)65436)[0];
}
```

I only noticed it because right now at -O1 -fno-tree-dominator-opts
-fsignaling-nans causes an ICE (PR 107628). You could do a similar thing with
float rather than bf16 but I didn't want to take the chance.

Confirmed.

Reply via email to