tum-ei-eda / M2-ISA-R

CoreDSL2 Parser with backend to generate simulation code for the ETISS instruction set simulator
https://tum-ei-eda.github.io/M2-ISA-R/
Apache License 2.0
6 stars 6 forks source link

m2isar.backends.etiss.instruction_writer: Missing literal suffix for slices #25

Closed PhilippvK closed 6 months ago

PhilippvK commented 6 months ago
./tmp/V7S8n8/code_6.c: In function ‘_t0c6_block_268435456’:
./tmp/V7S8n8/code_6.c:235:59: warning: integer constant is too large for its type
  235 | etiss_uint128 add = (mul + ((RV32IMCXS4EMAC*)cpu)->ACC) & 0x1ffffffffffffffff;
      |                                                           ^~~~~~~~~~~~~~~~~~~
./tmp/V7S8n8/code_6.c:236:52: warning: integer constant is so large that it is unsigned
  236 | ((RV32IMCXS4EMAC*)cpu)->ACC = (((add) >> (0ULL)) & 18446744073709551615);
      |                                                    ^~~~~~~~~~~~~~~~~~~~
./tmp/V7S8n8/code_6.c:251:75: warning: integer constant is too large for its type
  251 | etiss_int128 add = (mul + ((etiss_int64)(((RV32IMCXS4EMAC*)cpu)->ACC))) & 0x1ffffffffffffffff;
      |                                                                           ^~~~~~~~~~~~~~~~~~~
./tmp/V7S8n8/code_6.c:252:52: warning: integer constant is so large that it is unsigned
  252 | ((RV32IMCXS4EMAC*)cpu)->ACC = (((add) >> (0ULL)) & 18446744073709551615);
wysiwyng commented 6 months ago

partially fixed in cdb7072, for "too large" sse #26