[Bug target/100626] [11/12 Regression] ICE Segmentation fault (during RTL pass: split1) since r11-165-geb72dc663e9070b2

2021-05-25 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100626

Uroš Bizjak  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED
 Target|x86_64-linux-gnu|x86
   |i?86-linux-gnu  |

--- Comment #8 from Uroš Bizjak  ---
Fixed.

[Bug target/100626] [11/12 Regression] ICE Segmentation fault (during RTL pass: split1) since r11-165-geb72dc663e9070b2

2021-05-25 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100626

--- Comment #7 from CVS Commits  ---
The releases/gcc-11 branch has been updated by Uros Bizjak :

https://gcc.gnu.org/g:6be2c12e37b167890d68587086a2186358b64c02

commit r11-8468-g6be2c12e37b167890d68587086a2186358b64c02
Author: Uros Bizjak 
Date:   Tue May 18 15:45:54 2021 +0200

i386: Fix split_double_mode with paradoxical subreg [PR100626]

split_double_mode calls simplify_gen_subreg, which fails for the
high half of the paradoxical subreg.  Return temporary register
instead of NULL RTX in this case.

2021-05-18  Uroš Bizjak  

gcc/
PR target/100626
* config/i386/i386-expand.c (split_double_mode): Return
temporary register when simplify_gen_subreg fails with
the high half od the paradoxical subreg.

(cherry picked from commit d39fbed75810fc7478842503ecb0268b85dc9c2e)

[Bug target/100626] [11/12 Regression] ICE Segmentation fault (during RTL pass: split1) since r11-165-geb72dc663e9070b2

2021-05-18 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100626

--- Comment #6 from CVS Commits  ---
The master branch has been updated by Uros Bizjak :

https://gcc.gnu.org/g:d39fbed75810fc7478842503ecb0268b85dc9c2e

commit r12-878-gd39fbed75810fc7478842503ecb0268b85dc9c2e
Author: Uros Bizjak 
Date:   Tue May 18 15:45:54 2021 +0200

i386: Fix split_double_mode with paradoxical subreg [PR100626]

split_double_mode calls simplify_gen_subreg, which fails for the
high half of the paradoxical subreg.  Return temporary register
instead of NULL RTX in this case.

2021-05-18  Uroš Bizjak  

gcc/
PR target/100626
* config/i386/i386-expand.c (split_double_mode): Return
temporary register when simplify_gen_subreg fails with
the high half od the paradoxical subreg.

[Bug target/100626] [11/12 Regression] ICE Segmentation fault (during RTL pass: split1) since r11-165-geb72dc663e9070b2

2021-05-17 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100626

Uroš Bizjak  changed:

   What|Removed |Added

   Assignee|unassigned at gcc dot gnu.org  |ubizjak at gmail dot com
 Status|NEW |ASSIGNED

--- Comment #5 from Uroš Bizjak  ---
Created attachment 50828
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50828=edit
Proposed patch

Patch in testing.

[Bug target/100626] [11/12 Regression] ICE Segmentation fault (during RTL pass: split1) since r11-165-geb72dc663e9070b2

2021-05-17 Thread haoxintu at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100626

--- Comment #4 from Haoxin Tu  ---
I found that it also crashes (under -O1 and -Os) on today's trunk version of
GCC.

$cat small.c
#include 
int a;
void b() {
  int c;
  uint64_t *d = 
  uint8_t *e;
  if (a)
*d &= *e;
  if (*d)
for (;;)
  ;
}

$gcc -w -O1 -m32 small.c (or -Os)
during RTL pass: split1
small.c: In function ‘b’:
small.c:12:1: internal compiler error: Segmentation fault
   12 | }
  | ^
0xba0cef crash_signal
../../gcc/toplev.c:327
0xefc40a ix86_fixup_binary_operands(rtx_code, machine_mode, rtx_def**)
../../gcc/config/i386/i386-expand.c:900
0xefc5bb ix86_expand_binary_operator(rtx_code, machine_mode, rtx_def**)
../../gcc/config/i386/i386-expand.c:943
0x1214538 gen_andsi3(rtx_def*, rtx_def*, rtx_def*)
../../gcc/config/i386/i386.md:9091
0x12147b4 gen_split_191(rtx_insn*, rtx_def**)
../../gcc/config/i386/i386.md:9123
0x13f8f22 split_insns(rtx_def*, rtx_insn*)
../../gcc/config/i386/i386.md:14140
0x87e61e try_split(rtx_def*, rtx_insn*, int)
../../gcc/emit-rtl.c:3786
0xb15ad1 split_insn
../../gcc/recog.c:3363
0xb1af47 split_all_insns()
../../gcc/recog.c:3467
0xb1afd8 execute
../../gcc/recog.c:4385
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See  for instructions.

$gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/media/haoxin/SeagateData/haoxin-data/dut-research/compilers/gcc/build/bin/../libexec/gcc/x86_64-pc-linux-gnu/12.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../configure
--prefix=/home/haoxin/haoxin-data/dut-research/compilers/gcc/build/
--enable-bootstrap --enable-checking=release --enable-languages=c,c++
--enable-multilib
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 12.0.0 20210517 (experimental) (GCC)

[Bug target/100626] [11/12 Regression] ICE Segmentation fault (during RTL pass: split1) since r11-165-geb72dc663e9070b2

2021-05-17 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100626

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P2

[Bug target/100626] [11/12 Regression] ICE Segmentation fault (during RTL pass: split1) since r11-165-geb72dc663e9070b2

2021-05-17 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100626

--- Comment #3 from Uroš Bizjak  ---
*di3_doubleword calls split_double_mode with:

op0: (subreg:DI (reg/v:SI 89 [ li_18 ]) 0)
op1: (reg:DI 90 [ uc_4 ])
op2: (mem/c:DI (plus:SI (reg/f:SI 19 frame)
(const_int -4 [0xfffc])) [0  S8 A32])

and split_double_mode chokes on paradoxical subreg op0, returning (nil) on
highpart of op0:

(reg/v:SI 89 [ li_18 ])
(subreg:SI (reg:DI 90 [ uc_4 ]) 0)
(mem/c:SI (plus:SI (reg/f:SI 19 frame)
(const_int -4 [0xfffc])) [0  S4 A32])

(nil)
(subreg:SI (reg:DI 90 [ uc_4 ]) 4)
(mem/c:SI (reg/f:SI 19 frame) [0  S4 A32])

[Bug target/100626] [11/12 Regression] ICE Segmentation fault (during RTL pass: split1) since r11-165-geb72dc663e9070b2

2021-05-17 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100626

Jakub Jelinek  changed:

   What|Removed |Added

 CC||jakub at gcc dot gnu.org
   Target Milestone|--- |11.2

[Bug target/100626] [11/12 Regression] ICE Segmentation fault (during RTL pass: split1) since r11-165-geb72dc663e9070b2

2021-05-17 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100626

Martin Liška  changed:

   What|Removed |Added

   Last reconfirmed||2021-05-17
 CC||marxin at gcc dot gnu.org,
   ||rguenth at gcc dot gnu.org
 Status|UNCONFIRMED |NEW
Summary|ICE Segmentation fault  |[11/12 Regression] ICE
   |(during RTL pass: split1)   |Segmentation fault (during
   ||RTL pass: split1) since
   ||r11-165-geb72dc663e9070b2
 Ever confirmed|0   |1

--- Comment #2 from Martin Liška  ---
Started with r11-165-geb72dc663e9070b2.