https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102450

--- Comment #2 from dave.anglin at bell dot net ---
On 2021-09-22 9:14 a.m., rguenth at gcc dot gnu.org wrote:
> what's MAX_BITSIZE_MODE_ANY_INT in insn-modes.h?  (in the build directory)
> I think it should correspond to TImode and thus be 16 * BITS_PER_UNIT which
> means that we're building an INTEGER_TYPE bigger than TImode - can you confirm
> that?
#define BITS_PER_UNIT (8)
#define MAX_BITSIZE_MODE_ANY_INT (16*BITS_PER_UNIT)
#define MAX_BITSIZE_MODE_ANY_MODE (32*BITS_PER_UNIT)

However, TImode is not supported on this target.

(gdb) ignor 1 325
Will ignore next 325 crossings of breakpoint 1.
(gdb) r
Starting program: /home/dave/gnu/gcc/objdir/gcc/gnat1 -quiet -nostdinc -O2
-Wext                                                              
ra -Wall -dumpbase s-regpat.adb -dumpbase-ext .adb -gnatwa -fchecking=1 -g
-fPIC                                                               
-gnatpg -gnatO s-regpat.o s-regpat.adb -o s-regpat.s

Breakpoint 1, _Z40set_min_and_max_values_for_integral_typeP9tree_nodei6signop
    (type=<incomplete type>, precision=256, sgn=UNSIGNED)
    at ../../gcc/gcc/stor-layout.c:2851
2851      gcc_assert (precision <= WIDE_INT_MAX_PRECISION);
(gdb) p precision
$2 = 256
(gdb) disass $pc-16,$pc+16
Dump of assembler code from 0xfbc244 to 0xfbc264:
   0x00fbc244
<_Z40set_min_and_max_values_for_integral_typeP9tree_nodei6signop+36>:     stw
r7,-70(sp)
   0x00fbc248
<_Z40set_min_and_max_values_for_integral_typeP9tree_nodei6signop+40>:     stw
r6,-6c(sp)
   0x00fbc24c
<_Z40set_min_and_max_values_for_integral_typeP9tree_nodei6signop+44>:    
cmpib,>= 0,r25,0xfbc2d4
<_Z40set_min_and_max_values_for_integral_typeP9tree_nodei6signop+180>
   0x00fbc250
<_Z40set_min_and_max_values_for_integral_typeP9tree_nodei6signop+48>:     copy
r26,r3
=> 0x00fbc254
<_Z40set_min_and_max_values_for_integral_typeP9tree_nodei6signop+52>:     ldi
c0,ret0
   0x00fbc258
<_Z40set_min_and_max_values_for_integral_typeP9tree_nodei6signop+56>:    
cmpb,< ret0,r25,0xfbc2fc
<_Z40set_min_and_max_values_for_integral_typeP9tree_nodei6signop+220>
   0x00fbc25c
<_Z40set_min_and_max_values_for_integral_typeP9tree_nodei6signop+60>:     copy
r24,r25
   0x00fbc260
<_Z40set_min_and_max_values_for_integral_typeP9tree_nodei6signop+64>:     ldo
-98(sp),r6
End of assembler dump.
(gdb) p $ret0
$3 = 8388608
(gdb) p 0xc0
$4 = 192
(gdb) p $r25
$5 = 256
(gdb) bt
#0  _Z40set_min_and_max_values_for_integral_typeP9tree_nodei6signop (
    type=<incomplete type>, precision=256, sgn=UNSIGNED)
    at ../../gcc/gcc/stor-layout.c:2851
#1  0x00fc0b9c in _Z18make_unsigned_typei (precision=256)
    at ../../gcc/gcc/stor-layout.c:2885
#2  0x000da2b4 in _Z18gnat_type_for_sizeji (precision=256, unsignedp=256)
    at ../../gcc/gcc/ada/gcc-interface/utils.c:3670
#3  0x00b05c2c in gimple_fold_builtin_memory_op(gimple_stmt_iterator*,
tree_node*, tree_node*, built_in_function) (v=@0x79aebb68, reserve=256,
exact=true)
    at ../../gcc/gcc/gimple-fold.c:1004
#4  0x00afffac in _ZL11fold_stmt_1P20gimple_stmt_iteratorbPFP9tree_nodeS2_E (
    gsi=0x7a001018, inplace=true, valueize=0x79ae8b58)
    at ../../gcc/gcc/gimple-fold.c:5054
#5  0x00b13668 in _ZL10lower_stmtP20gimple_stmt_iteratorP10lower_data (
    gsi=..., data=0x7a000fa4) at ../../gcc/gcc/gimple-low.c:390
#6  0x00b1405c in _ZL17lower_gimple_bindP20gimple_stmt_iteratorP10lower_data (
    gsi=0x7a000f98, data=0x7a000fa4) at ../../gcc/gcc/gimple-low.c:217
#7  0x00b146a0 in _ZN12_GLOBAL__N_113pass_lower_cf7executeEP8function (
    this=0x79ab92a0) at ../../gcc/gcc/gimple-low.c:110
#8  0x00e8b140 in _Z16execute_one_passP8opt_pass (pass=0x40716078)
    at ../../gcc/gcc/passes.c:2567
#9  0x00e8ba2c in _ZL19execute_pass_list_1P8opt_pass (pass=0x40716078)
    at ../../gcc/gcc/passes.c:2656
---Type <return> to continue, or q <return> to quit---
#10 0x00e8bad0 in _Z17execute_pass_listP8functionP8opt_pass (fn=0x79ab92a0,
    pass=0x100) at ../../gcc/gcc/passes.c:2667
#11 0x00906578 in _ZN11cgraph_node7analyzeEv (this=<incomplete type>)
    at ../../gcc/gcc/cgraphunit.c:680
#12 0x009098e0 in _ZL17analyze_functionsb (first_time=148)
    at ../../gcc/gcc/cgraphunit.c:1234
#13 0x0090a6c8 in _ZN12symbol_table25finalize_compilation_unitEv (
    this=0x79c59000) at ../../gcc/gcc/cgraphunit.c:2508
#14 0x00fcd444 in _ZL12compile_filev () at ../../gcc/gcc/toplev.c:483
#15 0x00fd0d5c in _ZN6toplev4mainEiPPc (this=0x7a000a98, argc=0, argv=0x0)
    at ../../gcc/gcc/toplev.c:2233
#16 0x01461b40 in main (argc=20, argv=0x7a0008f4) at ../../gcc/gcc/main.c:39

Reply via email to