This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/18665] [3.4/4.0 Regression] -ftrapv borks up simple integer arithmetic
- From: "steven at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Nov 2004 00:34:19 -0000
- Subject: [Bug target/18665] [3.4/4.0 Regression] -ftrapv borks up simple integer arithmetic
- References: <20041124222749.18665.skunk@iskunk.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From steven at gcc dot gnu dot org 2004-11-28 00:34 -------
Here's the difference between what gcc 3.3.3 produces and what
gcc 4.0.0 manages to make of it (first 3.3.3, second 4.0.0):
16,18c16,20
< movl -8(%rbp), %esi
< movl -4(%rbp), %edi
< call __subvsi3
---
> movl -4(%rbp), %eax
> movslq %eax,%rdi
> movl -8(%rbp), %eax
> movslq %eax,%rsi
> call __subvdi3
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18665