[Bug target/18665] [3.4/4.0 Regression] -ftrapv borks up simple integer arithmetic
steven at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Nov 28 00:34:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list