@@ -587,10 +587,10 @@ TEST_F(AvmExecutionTests, movOpcode)
587
587
" 01" // U8
588
588
" 13" // val 19
589
589
" 000000AB" // dst_offset 171
590
- + to_hex (OpCode::MOV ) + // opcode MOV
590
+ + to_hex (OpCode::MOV_8 ) + // opcode MOV
591
591
" 00" // Indirect flag
592
- " 000000AB " // src_offset 171
593
- " 00000021 " // dst_offset 33
592
+ " AB " // src_offset 171
593
+ " 21 " // dst_offset 33
594
594
+ to_hex (OpCode::RETURN) + // opcode RETURN
595
595
" 00" // Indirect flag
596
596
" 00000000" // ret offset 0
@@ -613,9 +613,9 @@ TEST_F(AvmExecutionTests, movOpcode)
613
613
// MOV
614
614
EXPECT_THAT (
615
615
instructions.at (1 ),
616
- AllOf (Field (&Instruction::op_code, OpCode::MOV ),
616
+ AllOf (Field (&Instruction::op_code, OpCode::MOV_8 ),
617
617
Field (&Instruction::operands,
618
- ElementsAre (VariantWith<uint8_t >(0 ), VariantWith<uint32_t >(171 ), VariantWith<uint32_t >(33 )))));
618
+ ElementsAre (VariantWith<uint8_t >(0 ), VariantWith<uint8_t >(171 ), VariantWith<uint8_t >(33 )))));
619
619
620
620
auto trace = gen_trace_from_instr (instructions);
621
621
@@ -701,10 +701,10 @@ TEST_F(AvmExecutionTests, indMovOpcode)
701
701
" 01" // U8
702
702
" FF" // val 255
703
703
" 0000000A" // dst_offset 10
704
- + to_hex (OpCode::MOV ) + // opcode MOV
704
+ + to_hex (OpCode::MOV_8 ) + // opcode MOV
705
705
" 01" // Indirect flag
706
- " 00000001 " // src_offset 1 --> direct offset 10
707
- " 00000002 " // dst_offset 2 --> direct offset 11
706
+ " 01 " // src_offset 1 --> direct offset 10
707
+ " 02 " // dst_offset 2 --> direct offset 11
708
708
+ to_hex (OpCode::RETURN) + // opcode RETURN
709
709
" 00" // Indirect flag
710
710
" 00000000" // ret offset 0
@@ -717,9 +717,9 @@ TEST_F(AvmExecutionTests, indMovOpcode)
717
717
718
718
// MOV
719
719
EXPECT_THAT (instructions.at (3 ),
720
- AllOf (Field (&Instruction::op_code, OpCode::MOV ),
720
+ AllOf (Field (&Instruction::op_code, OpCode::MOV_8 ),
721
721
Field (&Instruction::operands,
722
- ElementsAre (VariantWith<uint8_t >(1 ), VariantWith<uint32_t >(1 ), VariantWith<uint32_t >(2 )))));
722
+ ElementsAre (VariantWith<uint8_t >(1 ), VariantWith<uint8_t >(1 ), VariantWith<uint8_t >(2 )))));
723
723
724
724
auto trace = gen_trace_from_instr (instructions);
725
725
0 commit comments