This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/83710] Unsigned with Signed multiplication followed by right shift
- From: "chanpreet.singh at nxp dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 06 Jan 2018 09:20:47 +0000
- Subject: [Bug c++/83710] Unsigned with Signed multiplication followed by right shift
- Auto-submitted: auto-generated
- References: <bug-83710-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83710
--- Comment #2 from Chanpreet Singh <chanpreet.singh at nxp dot com> ---
Can you please clarify a bit? In the above code, there are 3 vairable, c(int),
b(unsigned int) & a(int). The type of 'a*b' is expected to be (int) [same as
type of 'c', as also 'imull' instruction is used]. Shouldn't (int) type be used
for right shifting by 1?