[Bug inline-asm/101738] Variable value is not set when address passed as register in inline assembly at O2

2021-08-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101738 Andrew Pinski changed: What|Removed |Added Resolution|INVALID |DUPLICATE --- Comment #3 from Andrew

[Bug inline-asm/101738] Variable value is not set when address passed as register in inline assembly at O2

2021-08-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101738 Andrew Pinski changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug inline-asm/101738] Variable value is not set when address passed as register in inline assembly at O2

2021-08-02 Thread moinakb001 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101738 --- Comment #1 from Moinak Bhattacharyya --- Note: clang does not have this problem, generating: ``` test: mov dword ptr [rsp - 4], 305419896 lea rax, [rsp - 4] .asm_label: ret ```