[Bug c/53369] New: Integral promotion with ~ operator - Different behavior for signed and unsigned char.

2012-05-15 Thread rahulnitk2004 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53369 Bug #: 53369 Summary: Integral promotion with ~ operator - Different behavior for signed and unsigned char. Classification: Unclassified Product: gcc Version: 4.5.2 S

[Bug c/53369] Integral promotion with ~ operator - Different behavior for signed and unsigned char.

2012-05-15 Thread rahulnitk2004 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53369 --- Comment #1 from Rahul Ramachandran 2012-05-16 00:03:58 UTC --- Created attachment 27414 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27414 The assemply file

[Bug c/53369] Integral promotion with ~ operator - Different behavior for signed and unsigned char.

2012-05-15 Thread rahulnitk2004 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53369 Rahul Ramachandran changed: What|Removed |Added Attachment #27414|0 |1 is obsolete|

[Bug c/53369] Integral promotion with ~ operator - Different behavior for signed and unsigned char.

2012-05-16 Thread rahulnitk2004 at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53369 --- Comment #4 from Rahul Ramachandran 2012-05-16 09:09:07 UTC --- So basically char value -128 is represented in integer as ---1000 and +128 as 1000. So taking the compliment will result in 0X7F and 0XFF7F. T