Bug ID: 85344
           Summary: Constant constraint check sign extends unsigned
                    constant  input operands
           Product: gcc
           Version: 8.0.1
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: thopre01 at gcc dot
          Reporter: thopre01 at gcc dot
  Target Milestone: ---
            Target: arm-none-eabi


Compiling the following piece of code with -mthumb -mcpu=cortex-m0 generates an
"impossible constraint in 'asm' error"

foo (void)
  __asm( "%0" :: "I" ((unsigned char) 0x80));

It appears that although the operand is unsigned, it gets sign extended to
perform the constraint check.

Reply via email to