This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/81613] [7/8 regression] FAIL: gfortran.dg/intrinsic_modulo_1.f90 -O3 -g execution test
- From: "schwab at linux-m68k dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 29 Jul 2017 23:29:58 +0000
- Subject: [Bug target/81613] [7/8 regression] FAIL: gfortran.dg/intrinsic_modulo_1.f90 -O3 -g execution test
- Auto-submitted: auto-generated
- References: <bug-81613-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81613
--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> ---
Looking at the difference the old code didn't make any sense:
--- intrinsic_modulo_1.s-good 2017-07-30 01:21:37.757618984 +0200
+++ intrinsic_modulo_1.s-bad 2017-07-30 01:20:30.321837737 +0200
@@ -100,13 +100,11 @@
fmovecr #0x32,%fp0
fcmp.s -32(%fp),%fp0
fjne .L6
- moveq #1,%d0
- cmp.l %d0,%d0
+ subq.l #1,%d0
jne .L6
fcmp.s -28(%fp),%fp1
fjne .L6
- moveq #-2,%d0
- cmp.l %d0,%d0
+ addq.l #2,%d0
jne .L6
fmovecr #0xf,%fp0
fcmp.s -24(%fp),%fp0
@@ -120,14 +118,12 @@
fmove.s -16(%fp),%fp1
fcmp.s #0x40000000,%fp1
fjne .L6
- moveq #2,%d0
- cmp.l %d0,%d0
+ subq.l #2,%d0
jne .L6
fmove.s -12(%fp),%fp1
fcmp.s #0xbf800000,%fp1
fjne .L6
- moveq #-1,%d0
- cmp.l %d0,%d0
+ addq.l #1,%d0
jne .L6
fcmp.s -8(%fp),%fp0
fjne .L6