Ping.

On Tue, Nov 10, 2026 at 12:11 PM Uros Bizjak <[email protected]> wrote:
>
> For
>
>   float _Complex z = 0;
>   long double v;
>   asm volatile ("" : "=t" (v) : "0" (z));
>
> the input is (reg:SC st), i.e. st(0) and st(1).  Only the first register
> is tied to the output, so the death note at the asm is just for st(1),
> which subst_asm_stack_regs never pops because it only looks at REGNO of
> an operand, and convert_regs_1 asserts since the stack after the asm does
> not match the live registers.
>
> Operands that need more than one stack register, such as complex values,
> are not supported by reg-stack, so report them as an error like the other
> malformed stack register asms.
>
> Assisted-by: Claude Sonnet 5.5
>
> PR target/128533
>
> gcc/ChangeLog:
>
> * doc/extend.texi (x86 Floating-Point asm Operands):
> Document that operands must occupy a single register.
> * reg-stack.cc: Document rule #7.
> (check_asm_stack_operands): Reject operands
> that need more than one stack register.
>
> gcc/testsuite/ChangeLog:
>
> * gcc.target/i386/pr128533.c: New test.
>
> Bootstrapped and regression tested on x86_64-pc-linux-gnu {,-m32}.
>
> OK for mainline?
>
> Uros.

Reply via email to