[Bug jit/100242] libgccjit.so: error: in expmed_mode_index, at expmed.h:249

2021-08-16 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100242

Martin Liška  changed:

   What|Removed |Added

   Assignee|marxin at gcc dot gnu.org  |dmalcolm at gcc dot 
gnu.org
 Status|ASSIGNED|NEW
   Keywords||ice-on-invalid-code

--- Comment #5 from Martin Liška  ---
Also leaving to David, this one is less serious as it's invalid input.
For C FE, we report:

gcc x.c
x.c: In function ‘foo’:
x.c:3:5: error: invalid operands to binary % (have ‘float’ and ‘float’)
3 |   a %= b;
  | ^~

[Bug jit/100242] libgccjit.so: error: in expmed_mode_index, at expmed.h:249

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

Martin Liška  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2021-05-11
 CC||marxin at gcc dot gnu.org
   Assignee|dmalcolm at gcc dot gnu.org|marxin at gcc dot 
gnu.org
 Ever confirmed|0   |1

--- Comment #4 from Martin Liška  ---
I'll take a look.

[Bug jit/100242] libgccjit.so: error: in expmed_mode_index, at expmed.h:249

2021-04-24 Thread bouanto at zoho dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100242

--- Comment #3 from Antoni  ---
Created attachment 50668
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50668=edit
Smaller reproducer

Ok, I figured out how to find the location of the error.

In this case, it's caused by using the modulo operation on floats.

I guess it should either be forbidden or use the `fmodf` intrinsics.

[Bug jit/100242] libgccjit.so: error: in expmed_mode_index, at expmed.h:249

2021-04-23 Thread bouanto at zoho dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100242

--- Comment #2 from Antoni  ---
Created attachment 50666
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50666=edit
Third part of the reproducer

[Bug jit/100242] libgccjit.so: error: in expmed_mode_index, at expmed.h:249

2021-04-23 Thread bouanto at zoho dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100242

--- Comment #1 from Antoni  ---
Created attachment 50665
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50665=edit
Second part of the reproducer