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

--- Comment #3 from LIU Hao <lh_mouse at 126 dot com> ---
Please consider reopening this:

(https://gcc.godbolt.org/z/Kr3s4Yfz1)
```
test:
        push    r13
        push    r12
        push    rbp
        push    rbx
        mov     ebx, edi
        sub     rsp, 8
        test    edi, edi
        jne     .L8
        add     rsp, 8
        mov     eax, ebx
        pop     rbx
        pop     rbp
        pop     r12
        pop     r13
        ret
.L8:
        mov     r12d, edx
        mov     ebp, esi
        call    complex_one
        mov     esi, r12d
        mov     edi, eax
        mov     r13d, eax
        call    complex_one
        add     rsp, 8
        add     r13d, eax
        add     ebx, r13d
        add     ebx, ebp
        mov     eax, ebx
        pop     rbx
        pop     rbp
        pop     r12
        pop     r13
        ret
```

which seems like a recent enough revision
```
g++
(Compiler-Explorer-Build-gcc-38aeb609f345840aff339ed859efb42cac801c97-binutils-2.42)
15.0.1 20250210 (experimental)
Copyright (C) 2025 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

```

Reply via email to