add reprod examples for issues

This commit is contained in:
2025-10-10 13:56:49 +02:00
parent 25c93b8a73
commit f9649d4c5d
18 changed files with 431 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
// A loop variable defined beforehand does not work
InstructionSet Zbb {
architectural_state {
unsigned int XLEN=32;
const register unsigned<32> XLEN_R = 32;
register unsigned<XLEN> X[32] [[is_main_reg]];
}
instructions {
TEST {
encoding: 12'b011000000000 :: rs1[4:0] :: 3'b001 :: rd[4:0] :: 7'b0010011;
assembly: "{name(rd)}, {name(rs1)}";
behavior: {
unsigned int count = 0;
unsigned int i = 0;
for(i=0; i<=32; i++){
count = 1;
}
X[rd] = count;
}
}
}
}