public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug jit/95498] New: unhandled conversion
@ 2020-06-03 13:14 bouanto at zoho dot com
  2020-06-06 12:42 ` [Bug jit/95498] " bouanto at zoho dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: bouanto at zoho dot com @ 2020-06-03 13:14 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 95498
           Summary: unhandled conversion
           Product: gcc
           Version: 10.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: jit
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: bouanto at zoho dot com
  Target Milestone: ---

Created attachment 48667
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48667&action=edit
Reproducer for the bug

Hi.
The attached reproducer fails with the following error:

libgccjit.so: error: unhandled conversion
input expression:
 <integer_cst 0x7fd8f5909f60 type <integer_type 0x7fd8f591e5e8> constant
visited 1>
requested type:
 <integer_type 0x7fd8f5a56d20 SI
    size <integer_cst 0x7fd8f5909df8 type <integer_type 0x7fd8f591e0a8
bitsizetype> constant 32>
    unit-size <integer_cst 0x7fd8f5909e10 type <integer_type 0x7fd8f591e000
sizetype> constant 4>
    align:32 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7fd8f5a56d20 precision:32 min <integer_cst 0x7fd8f5a48468 -2147483648> max
<integer_cst 0x7fd8f5a61c18 2147483647>>
libgccjit.so: error: unhandled conversion
input expression:
 <rshift_expr 0x7fd8f5a58eb0
    type <integer_type 0x7fd8f591e888 public DI
        size <integer_cst 0x7fd8f5909bb8 constant 64>
        unit-size <integer_cst 0x7fd8f5909bd0 constant 8>
        align:64 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7fd8f591e888 precision:64 min <integer_cst 0x7fd8f5909e70
-9223372036854775808> max <integer_cst 0x7fd8f5909ea0 9223372036854775807>
        pointer_to_this <pointer_type 0x7fd8f592edc8>>
    visited
    arg:0 <nop_expr 0x7fd8f5a41ca0 type <integer_type 0x7fd8f591e888>
        visited
        arg:0 <var_decl 0x7fd8f5a5c2d0 returnValue type <integer_type
0x7fd8f591e930>
            visited unsigned DI (null):0:0 size <integer_cst 0x7fd8f5909bb8 64>
unit-size <integer_cst 0x7fd8f5909bd0 8>
            align:64 warn_if_not_align:0 context <function_decl 0x7fd8f5947500
_ZN17compiler_builtins3int4udiv12__udivmoddi417h85654ff61d7f0603E> chain
<var_decl 0x7fd8f5a5c240 undefined>>>
    arg:1 <bit_and_expr 0x7fd8f5a58e88 type <integer_type 0x7fd8f591e888>
        readonly constant visited
        arg:0 <integer_cst 0x7fd8f5a5b6c0 constant visited 63> arg:1
<integer_cst 0x7fd8f5a5b6c0 63>>>
requested type:
 <integer_type 0x7fd8f5a56d20 SI
    size <integer_cst 0x7fd8f5909df8 type <integer_type 0x7fd8f591e0a8
bitsizetype> constant 32>
    unit-size <integer_cst 0x7fd8f5909e10 type <integer_type 0x7fd8f591e000
sizetype> constant 4>
    align:32 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7fd8f5a56d20 precision:32 min <integer_cst 0x7fd8f5a48468 -2147483648> max
<integer_cst 0x7fd8f5a61c18 2147483647>>
libgccjit.so: error: unhandled conversion
input expression:
 <error_mark 0x7fd8f5909ba0>
requested type:
 <integer_type 0x7fd8f591e690 public unsigned SI
    size <integer_cst 0x7fd8f5909df8 type <integer_type 0x7fd8f591e0a8
bitsizetype> constant 32>
    unit-size <integer_cst 0x7fd8f5909e10 type <integer_type 0x7fd8f591e000
sizetype> constant 4>
    align:32 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7fd8f591e690 precision:32 min <integer_cst 0x7fd8f5909e28 0> max <integer_cst
0x7fd8f5909de0 4294967295>
    pointer_to_this <pointer_type 0x7fd8f59347e0>>
gcc_jit_result_release: NULL result

Sorry for the size of the reproducer. If you need to, I can try making it
smaller.

Thanks to fix this bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-07-18 14:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-03 13:14 [Bug jit/95498] New: unhandled conversion bouanto at zoho dot com
2020-06-06 12:42 ` [Bug jit/95498] " bouanto at zoho dot com
2020-06-06 17:49 ` dmalcolm at gcc dot gnu.org
2020-06-06 18:07 ` bouanto at zoho dot com
2020-07-03  0:58 ` bouanto at zoho dot com
2020-07-13  9:42 ` acoplan at gcc dot gnu.org
2020-07-13 10:39 ` bouanto at zoho dot com
2021-07-18 14:10 ` cvs-commit at gcc dot gnu.org
2021-07-18 14:11 ` bouanto at zoho dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).