Project

General

Profile

Bug #10096

The imm argument of addi has invalid type Type.CARD(12) while Type.INT(12) is expected

Added by Alexander Protsenko 10 months ago. Updated 10 months ago.

Status:
Resolved
Priority:
Normal
Target version:
Start date:
02/04/2020
Due date:
% Done:

0%

Estimated time:
Detected in build:
svn
Platform:
Published in build:

Description

Bug #10095 fixed.

New bug found:

riscv_rvc.nml 446:10 ERROR (PARSER): "C:\!microtesk\MicroTESK-RISC-V\microtesk-riscv\build\target\arch\riscv\model\riscv_rvc.nml line 446:10 no viable alternative at input '('" 
riscv_rvc.nml 446:4 ERROR (PARSER): "" 
riscv_rvc.nml 446:10 ERROR (PARSER): "C:\!microtesk\MicroTESK-RISC-V\microtesk-riscv\build\target\arch\riscv\model\riscv_rvc.nml line 446:10 no viable alternative at input '('" 
riscv_rvc.nml 446:11 ERROR (PARSER): "" 
riscv_rvc.nml 446:13 ERROR (PARSER): "C:\!microtesk\MicroTESK-RISC-V\microtesk-riscv\build\target\arch\riscv\model\riscv_rvc.nml line 446:13 no viable alternative at input ','" 
riscv_rvc.nml 446:11 ERROR (PARSER): "" 
riscv_rvc.nml 446:13 ERROR (PARSER): "C:\!microtesk\MicroTESK-RISC-V\microtesk-riscv\build\target\arch\riscv\model\riscv_rvc.nml line 446:13 no viable alternative at input ','" 
riscv_rvc.nml 446:18 ERROR (PARSER): "" 
riscv_rvc.nml 497:10 ERROR (PARSER): "C:\!microtesk\MicroTESK-RISC-V\microtesk-riscv\build\target\arch\riscv\model\riscv_rvc.nml line 497:10 no viable alternative at input '('" 
riscv_rvc.nml 497:4 ERROR (PARSER): "" 
riscv_rvc.nml 497:10 ERROR (PARSER): "C:\!microtesk\MicroTESK-RISC-V\microtesk-riscv\build\target\arch\riscv\model\riscv_rvc.nml line 497:10 no viable alternative at input '('" 
riscv_rvc.nml 497:11 ERROR (PARSER): "" 
riscv_rvc.nml 497:13 ERROR (PARSER): "C:\!microtesk\MicroTESK-RISC-V\microtesk-riscv\build\target\arch\riscv\model\riscv_rvc.nml line 497:13 no viable alternative at input ','" 
riscv_rvc.nml 497:11 ERROR (PARSER): "" 
riscv_rvc.nml 497:13 ERROR (PARSER): "C:\!microtesk\MicroTESK-RISC-V\microtesk-riscv\build\target\arch\riscv\model\riscv_rvc.nml line 497:13 no viable alternative at input ','" 
riscv_rvc.nml 497:18 ERROR (PARSER): "" 
riscv_rvc.nml 933:10 ERROR (PARSER): "C:\!microtesk\MicroTESK-RISC-V\microtesk-riscv\build\target\arch\riscv\model\riscv_rvc.nml line 933:10 no viable alternative at input '('" 
riscv_rvc.nml 933:4 ERROR (PARSER): "" 
riscv_rvc.nml 933:10 ERROR (PARSER): "C:\!microtesk\MicroTESK-RISC-V\microtesk-riscv\build\target\arch\riscv\model\riscv_rvc.nml line 933:10 no viable alternative at input '('" 
riscv_rvc.nml 933:11 ERROR (PARSER): "" 
riscv_rvc.nml 933:13 ERROR (PARSER): "C:\!microtesk\MicroTESK-RISC-V\microtesk-riscv\build\target\arch\riscv\model\riscv_rvc.nml line 933:13 no viable alternative at input ','" 
riscv_rvc.nml 933:11 ERROR (PARSER): "" 
riscv_rvc.nml 933:13 ERROR (PARSER): "C:\!microtesk\MicroTESK-RISC-V\microtesk-riscv\build\target\arch\riscv\model\riscv_rvc.nml line 933:13 no viable alternative at input ','" 
riscv_rvc.nml 933:18 ERROR (PARSER): "" 
 166:4 ERROR (SEMANTIC): "The imm argument of addi has invalid type Type.CARD(12) while Type.INT(12) is expected." 
 0:-1 ERROR (SEMANTIC): "Failed to recognize the grammar structure (ignored): 'addi(X(zero_extend(card(5),rd.i)+8),X(2),zero_extend(card(12),nzuimm<9..2>)<<2)'." 
 0:-1 ERROR (SEMANTIC): "Failed to recognize the grammar structure (ignored): 'addi(X(zero_extend(card(5),rd.i)+8),X(2),zero_extend(card(12),nzuimm<9..2>)<<2).action'." 
 0:-1 ERROR (SEMANTIC): "Failed to recognize the grammar structure (ignored): 'addi(X(zero_extend(card(5),rd.i)+8),X(2),zero_extend(card(12),nzuimm<9..2>)<<2).action'." 
 165:2 ERROR (SEMANTIC): "Failed to recognize the grammar structure (ignored): '{addi(X(zero_extend(card(5),rd.i)+8),X(2),zero_extend(card(12),nzuimm<9..2>)<<2).action;}'." 
 165:2 ERROR (SEMANTIC): "Failed to recognize the grammar structure (ignored): '{addi(X(zero_extend(card(5),rd.i)+8),X(2),zero_extend(card(12),nzuimm<9..2>)<<2).action;}'." 
 165:2 ERROR (SEMANTIC): "Failed to recognize the grammar structure (ignored): 'action={addi(X(zero_extend(card(5),rd.i)+8),X(2),zero_extend(card(12),nzuimm<9..2>)<<2).action;}'." 
 158:3 ERROR (SEMANTIC): "Failed to recognize the grammar structure (ignored): 'init={assert(nzuimm!=0,C.ADDI4SPN: nzuimm == 0);assert(nzuimm<1..0>==0,C.ADDI4SPN: nzuimm<1..0> != 0);}syntax=format(c.addi4spn %s, %s, %d,rd.syntax,X(2).syntax,nzuimm)image=format(000%2s%4s%1s%1s%3s00,nzuimm<5..4>,nzuimm<9..6>,nzuimm<2>,nzuimm<3>,rd.image)action={addi(X(zero_extend(card(5),rd.i)+8),X(2),zero_extend(card(12),nzuimm<9..2>)<<2).action;}'." 
 158:3 ERROR (SEMANTIC): "Failed to recognize the grammar structure (ignored): 'opc_addi4spn(rd:CX,nzuimm:card(10))init={assert(nzuimm!=0,C.ADDI4SPN: nzuimm == 0);assert(nzuimm<1..0>==0,C.ADDI4SPN: nzuimm<1..0> != 0);}syntax=format(c.addi4spn %s, %s, %d,rd.syntax,X(2).syntax,nzuimm)image=format(000%2s%4s%1s%1s%3s00,nzuimm<5..4>,nzuimm<9..6>,nzuimm<2>,nzuimm<3>,rd.image)action={addi(X(zero_extend(card(5),rd.i)+8),X(2),zero_extend(card(12),nzuimm<9..2>)<<2).action;}'." 

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':translateRISCV'.
> Process 'command 'C:\Program Files\Java\jdk-11.0.5\bin\java.exe'' finished with non-zero exit value -1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 36s

Associated revisions

Revision 8d33d12b (diff)
Added by Alexander Protsenko 10 months ago

Bug #10096 updated

Signed-off-by: Protsenko <>

History

#1

Updated by Alexander Protsenko 10 months ago

  • Assignee changed from Alexander Kamkin to Alexander Protsenko

riscv_rvc.nml 158:

op c_addi4spn(rd: CX, nzuimm: card(10))
  init   = {
    assert(nzuimm != 0,       "C.ADDI4SPN: nzuimm == 0");
    assert(nzuimm<1..0> == 0, "C.ADDI4SPN: nzuimm<1..0> != 0");
  }
  syntax = format("c.addi4spn %s, %s, %d", rd.syntax, X(2).syntax, nzuimm)
  image  = format("000%2s%4s%1s%1s%3s00", nzuimm<5..4>, nzuimm<9..6>, nzuimm<2>, nzuimm<3>, rd.image)
  action = {
    addi(
      X(zero_extend(card(5), rd.i) + 8),
      X(2), zero_extend(card(12), nzuimm<9..2>) << 2).action;
  }

#2

Updated by Alexander Protsenko 10 months ago

  • Assignee changed from Alexander Protsenko to Alexander Kamkin
  • Status changed from New to Open

8d33d12b

Часть ошибки исправлена, осталось:

riscv_rvc.nml 446:10 ERROR (PARSER): "C:\!microtesk\MicroTESK-RISC-V\microtesk-riscv\src\main\arch\riscv\model\riscv_rvc.nml line 446:10 no viable alternative at input '('" 
riscv_rvc.nml 446:4 ERROR (PARSER): "" 
riscv_rvc.nml 446:10 ERROR (PARSER): "C:\!microtesk\MicroTESK-RISC-V\microtesk-riscv\src\main\arch\riscv\model\riscv_rvc.nml line 446:10 no viable alternative at input '('" 
riscv_rvc.nml 446:11 ERROR (PARSER): "" 
riscv_rvc.nml 446:13 ERROR (PARSER): "C:\!microtesk\MicroTESK-RISC-V\microtesk-riscv\src\main\arch\riscv\model\riscv_rvc.nml line 446:13 no viable alternative at input ','" 
riscv_rvc.nml 446:11 ERROR (PARSER): "" 
riscv_rvc.nml 446:13 ERROR (PARSER): "C:\!microtesk\MicroTESK-RISC-V\microtesk-riscv\src\main\arch\riscv\model\riscv_rvc.nml line 446:13 no viable alternative at input ','" 
riscv_rvc.nml 446:18 ERROR (PARSER): "" 
riscv_rvc.nml 497:10 ERROR (PARSER): "C:\!microtesk\MicroTESK-RISC-V\microtesk-riscv\src\main\arch\riscv\model\riscv_rvc.nml line 497:10 no viable alternative at input '('" 
riscv_rvc.nml 497:4 ERROR (PARSER): "" 
riscv_rvc.nml 497:10 ERROR (PARSER): "C:\!microtesk\MicroTESK-RISC-V\microtesk-riscv\src\main\arch\riscv\model\riscv_rvc.nml line 497:10 no viable alternative at input '('" 
riscv_rvc.nml 497:11 ERROR (PARSER): "" 
riscv_rvc.nml 497:13 ERROR (PARSER): "C:\!microtesk\MicroTESK-RISC-V\microtesk-riscv\src\main\arch\riscv\model\riscv_rvc.nml line 497:13 no viable alternative at input ','" 
riscv_rvc.nml 497:11 ERROR (PARSER): "" 
riscv_rvc.nml 497:13 ERROR (PARSER): "C:\!microtesk\MicroTESK-RISC-V\microtesk-riscv\src\main\arch\riscv\model\riscv_rvc.nml line 497:13 no viable alternative at input ','" 
riscv_rvc.nml 497:18 ERROR (PARSER): "" 
riscv_rvc.nml 933:10 ERROR (PARSER): "C:\!microtesk\MicroTESK-RISC-V\microtesk-riscv\src\main\arch\riscv\model\riscv_rvc.nml line 933:10 no viable alternative at input '('" 
riscv_rvc.nml 933:4 ERROR (PARSER): "" 
riscv_rvc.nml 933:10 ERROR (PARSER): "C:\!microtesk\MicroTESK-RISC-V\microtesk-riscv\src\main\arch\riscv\model\riscv_rvc.nml line 933:10 no viable alternative at input '('" 
riscv_rvc.nml 933:11 ERROR (PARSER): "" 
riscv_rvc.nml 933:13 ERROR (PARSER): "C:\!microtesk\MicroTESK-RISC-V\microtesk-riscv\src\main\arch\riscv\model\riscv_rvc.nml line 933:13 no viable alternative at input ','" 
riscv_rvc.nml 933:11 ERROR (PARSER): "" 
riscv_rvc.nml 933:13 ERROR (PARSER): "C:\!microtesk\MicroTESK-RISC-V\microtesk-riscv\src\main\arch\riscv\model\riscv_rvc.nml line 933:13 no viable alternative at input ','" 
riscv_rvc.nml 933:18 ERROR (PARSER): "" 

BUILD FAILED
C:\!microtesk\MicroTESK-RISC-V\microtesk-riscv\build\target\bin\build.xml:47: Compile failed; see the compiler error output for details.

Total time: 13 seconds

#3

Updated by Alexander Kamkin 10 months ago

  • Status changed from Open to Resolved

Also available in: Atom PDF