[Bug middle-end/120803] inline assembly sign extends unsigned constraints

2025-06-25 Thread oskari.alaranta at bananymous dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120803 Oskari Alaranta changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug middle-end/120803] inline assembly sign extends unsigned constraints

2025-06-24 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120803 --- Comment #3 from Jakub Jelinek --- Plus there is an easy workaround, just cast it to some wider type. For -O0 purposes, better as constexpr as well. So constexpr unsigned char value = 0x80; constexpr int value_promoted = var; asm("int %0" :

[Bug middle-end/120803] inline assembly sign extends unsigned constraints

2025-06-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120803 Andrew Pinski changed: What|Removed |Added Keywords||documentation --- Comment #2 from Andre

[Bug middle-end/120803] inline assembly sign extends unsigned constraints

2025-06-24 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120803 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #1