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

--- Comment #4 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to wierton from comment #0)
> The bug triggering program:
> ```
> long double a, b;
> long double f(long double x) {
>   asm("sqxbr\t%0,%1" : "=f"(a) : "f"(x));
>   return a;
> }
> 
> int main(void) {
>   return b / f(0x1.0000000000001p+0L);
> }
> ```
> 
> When attempting to compile it using the option `gcc-14 -Os small.c`, gcc
> crashes:

FWIW, limitations of x86 floating-point operands are well documented in [1].

[1]
https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html#x86-Floating-Point-asm-Operands

Reply via email to