[Bug middle-end/52940] New: conversion from MODE_PARTIAL_INT uses sign extension for unsigned types
bigotp at acm dot org
gcc-bugzilla@gcc.gnu.org
Wed Apr 11 23:08:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52940
Bug #: 52940
Summary: conversion from MODE_PARTIAL_INT uses sign extension
for unsigned types
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: bigotp@acm.org
In expr.c:convert_move, when from_mode has class MODE_PARTIAL_INT the
conversion is done with sign extension even for unsigned types. This has been
the behavior since the code was added in 2003, but it seems like a bug.
More information about the Gcc-bugs
mailing list