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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2023-11-13
     Ever confirmed|0                           |1
            Summary|GCC: 14: internal compiler  |ICE in extract_insn, at
                   |error: in extract_insn, at  |recog.cc:2804 with
                   |recog.cc:2804               |__builtin_speculation_safe_
                   |                            |value with short type on
                   |                            |x86_64
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed, shorter better testcase:
```
int main() {
  short t = -2;
  if (__builtin_speculation_safe_value(t) != -2)
    __builtin_abort();
  return 0;
}
```

The `0xfffe` should have been sign extended since all const_int are signed
extended from the original type.

Reply via email to