Skip to content

Commit

Permalink
Add andq test
Browse files Browse the repository at this point in the history
  • Loading branch information
DQNEO committed Jul 10, 2023
1 parent 1de305b commit 10eeacd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ func TestEncodeStringAsText(t *testing.T) {
{"leave", "leave", []byte{0xc9}},
{"movq 64", "movq $1, %rax", []byte{0x48, 0xc7, 0xc0, 0x01, 0x00, 0x00, 0x00}},
{"callq myfunc", "callq myfunc", []byte{0xe8, 0, 0, 0, 0}},

{"andq", "andq %rax, %rcx", []byte{0x48, 0x21, 0xc1}},
{"orq", "orq %rax, %rcx", []byte{0x48, 0x09, 0xc1}},
}
for _, tt := range tests {
Expand Down

0 comments on commit 10eeacd

Please sign in to comment.