[Bug target/82981] [7 Regression] unnecessary __multi3 call for mips64r6 linux kernel

2019-11-14 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82981

Richard Biener  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
  Known to work||8.0
 Resolution|--- |FIXED
   Target Milestone|7.5 |8.0
  Known to fail||7.5.0

--- Comment #19 from Richard Biener  ---
Fixed in GCC 8.

[Bug target/82981] [7 Regression] unnecessary __multi3 call for mips64r6 linux kernel

2019-10-28 Thread law at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82981

--- Comment #18 from Jeffrey A. Law  ---
Author: law
Date: Mon Oct 28 19:17:58 2019
New Revision: 277537

URL: https://gcc.gnu.org/viewcvs?rev=277537=gcc=rev
Log:
PR target/82981
* config/mips/mips.md (mulditi3): Generate patterns for high
doubleword and low doubleword result of multiplication on
MIPS64R6.

* gcc.target/mips/mips64r6-ti-mult.c: New test.

Added:
trunk/gcc/testsuite/gcc.target/mips/mips64r6-ti-mult.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/mips/mips.md
trunk/gcc/testsuite/ChangeLog

[Bug target/82981] [7 Regression] unnecessary __multi3 call for mips64r6 linux kernel

2018-12-06 Thread clyon at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82981

--- Comment #17 from Christophe Lyon  ---
The testcase passes on all the arm configs I am testing, on trunk, gcc-8 and
gcc-7.

[Bug target/82981] [7 Regression] unnecessary __multi3 call for mips64r6 linux kernel

2018-12-06 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82981

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|7.4 |7.5

[Bug target/82981] [7 Regression] unnecessary __multi3 call for mips64r6 linux kernel

2018-01-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82981

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|7.3 |7.4

--- Comment #16 from Richard Biener  ---
GCC 7.3 is being released, adjusting target milestone.

[Bug target/82981] [7 Regression] unnecessary __multi3 call for mips64r6 linux kernel

2017-12-14 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82981

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug target/82981] [7 Regression] unnecessary __multi3 call for mips64r6 linux kernel

2017-11-20 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82981

--- Comment #15 from Jakub Jelinek  ---
Author: jakub
Date: Tue Nov 21 07:49:14 2017
New Revision: 254986

URL: https://gcc.gnu.org/viewcvs?rev=254986=gcc=rev
Log:
PR target/82981
* internal-fn.c (expand_mul_overflow): Use OPTAB_WIDEN instead of
OPTAB_DIRECT in calls to expand_simple_binop.

Modified:
trunk/gcc/ChangeLog
trunk/gcc/internal-fn.c

[Bug target/82981] [7 Regression] unnecessary __multi3 call for mips64r6 linux kernel

2017-11-20 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82981

--- Comment #14 from Jakub Jelinek  ---
Created attachment 42662
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42662=edit
gcc8-pr82981-arm.patch

Untested fix for the arm issue.

[Bug target/82981] [7 Regression] unnecessary __multi3 call for mips64r6 linux kernel

2017-11-20 Thread clyon at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82981

Christophe Lyon  changed:

   What|Removed |Added

 CC||clyon at gcc dot gnu.org

--- Comment #13 from Christophe Lyon  ---
I have noticed that this patch (r254758) causes errors on several tests, for
instance:
c-c++-common/builtin-arith-overflow-2.c

target: arm-none-linux-gnueabi
--with-mode thumb
--with-cpu cortex-a9
and using -march=armv5t in the runtest flags/target board

spawn -ignore SIGHUP
/home/christophe.lyon/src/GCC/builds/gcc-fsf-reg-254758-thumb/obj-arm-none-linux-gnueabi/gcc3/gcc/xgcc
-B/home/christophe.lyon/src/GCC/builds/gcc-fsf-reg-254758-thumb/obj-arm-none-linux-gnueabi/gcc3/gcc/
/home/christophe.lyon/src/GCC/sources/gcc-fsf/reg-254758/gcc/testsuite/c-c++-common/builtin-arith-overflow-2.c
-march=armv5t -fno-diagnostics-show-caret -fdiagnostics-color=never
-Wc++-compat -Wno-long-long -lm -o ./builtin-arith-overflow-2.exe^M
during RTL pass: expand^M
/home/christophe.lyon/src/GCC/sources/gcc-fsf/reg-254758/gcc/testsuite/c-c++-common/builtin-arith-overflow-2.c:
In function 'main':^M
/home/christophe.lyon/src/GCC/sources/gcc-fsf/reg-254758/gcc/testsuite/c-c++-common/builtin-arith-overflow-2.c:93:23:
internal compiler error: Segmentation fault^M
/home/christophe.lyon/src/GCC/sources/gcc-fsf/reg-254758/gcc/testsuite/c-c++-common/builtin-arith-overflow-2.c:103:3:
note: in expansion of macro 'RuntimeAssert'^M
/home/christophe.lyon/src/GCC/sources/gcc-fsf/reg-254758/gcc/testsuite/c-c++-common/builtin-arith-overflow-2.c:250:3:
note: in expansion of macro 'G_TEST'^M
0xba522f crash_signal^M
   
/home/christophe.lyon/src/GCC/sources/gcc-fsf/reg-254758/gcc/toplev.c:325^M
0xb3cd90 commutative_operand_precedence(rtx_def*)^M
   
/home/christophe.lyon/src/GCC/sources/gcc-fsf/reg-254758/gcc/rtlanal.c:3405^M
0xb3cedd swap_commutative_operands_p(rtx_def*, rtx_def*)^M
   
/home/christophe.lyon/src/GCC/sources/gcc-fsf/reg-254758/gcc/rtlanal.c:3475^M
0x7baa10 do_compare_rtx_and_jump(rtx_def*, rtx_def*, rtx_code, int,
machine_mode, rtx_def*, rtx_code_label*, rtx_code_label*,
profile_probability)^M
   
/home/christophe.lyon/src/GCC/sources/gcc-fsf/reg-254758/gcc/dojump.c:996^M
0x9702c3 expand_mul_overflow^M
   
/home/christophe.lyon/src/GCC/sources/gcc-fsf/reg-254758/gcc/internal-fn.c:1841^M
0x970d1b expand_arith_overflow^M
   
/home/christophe.lyon/src/GCC/sources/gcc-fsf/reg-254758/gcc/internal-fn.c:2251^M
0x73749f expand_call_stmt^M
   
/home/christophe.lyon/src/GCC/sources/gcc-fsf/reg-254758/gcc/cfgexpand.c:2584^M
0x73749f expand_gimple_stmt_1^M
   
/home/christophe.lyon/src/GCC/sources/gcc-fsf/reg-254758/gcc/cfgexpand.c:3607^M
0x73749f expand_gimple_stmt^M
   
/home/christophe.lyon/src/GCC/sources/gcc-fsf/reg-254758/gcc/cfgexpand.c:3773^M
0x7393af expand_gimple_basic_block^M
   
/home/christophe.lyon/src/GCC/sources/gcc-fsf/reg-254758/gcc/cfgexpand.c:5774^M
0x73f1f6 execute^M
   
/home/christophe.lyon/src/GCC/sources/gcc-fsf/reg-254758/gcc/cfgexpand.c:6375^M
Please submit a full bug report,^M