Skip to content

Commit

Permalink
Added a couple more x86 instructions to test with implicit
Browse files Browse the repository at this point in the history
register operands.
  • Loading branch information
edeiana committed Mar 31, 2024
1 parent 55f737c commit f05c367
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions suite/tests/api/ir_synthetic.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ test_instr_create_encode_decode_synthetic_x86_64(void *dc)
{
instr_t *instr;

instr = INSTR_CREATE_push(dc, opnd_create_reg(SEG_FS));
test_instr_encode_decode_synthetic(dc, instr);

instr = INSTR_CREATE_pop(dc, opnd_create_reg(SEG_FS));
test_instr_encode_decode_synthetic(dc, instr);

opnd_t abs_addr = opnd_create_abs_addr((void *)0xdeadbeefdeadbeef, OPSZ_8);
instr = INSTR_CREATE_mov_ld(dc, opnd_create_reg(DR_REG_RAX), abs_addr);
test_instr_encode_decode_synthetic(dc, instr);
Expand Down

0 comments on commit f05c367

Please sign in to comment.