Oh wow, this is the disassembly I get:

Dump of assembler code for function test:
=> 0x0000000000400530 <+0>:     movzbl %dil,%eax
   0x0000000000400534 <+4>:     neg    %eax
   0x0000000000400536 <+6>:     retq   

So it looks like it is doing all 8 bit math and since 255 in 8 bits is
-1, optimizes it to a negation.  Definitely looks like an optimizer bug.
It should be promoting them to at least unsigned shorts.  Even (unsigned
short)x * (unsigned short)255UL does not change it.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/685352

Title:
  libplymouth2_0.8.2-2ubuntu6 and later give ragged splash and text
  rendering

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to