Skip to content

Commit

Permalink
oops, fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Nov 24, 2021
1 parent 3847bbc commit 9684cc1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/asmrepl_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,13 @@ def test_ret
end

def test_lea_rip
assert_round_trip "lea rax, [rip]"
assert_round_trip "lea rax, [rip + 9]"
if RUBY_PLATFORM =~ /darwin/
assert_round_trip "lea rax, [rip]"
assert_round_trip "lea rax, [rip + 9]"
else
assert_round_trip "lea rax, qword ptr [rip]"
assert_round_trip "lea rax, qword ptr [rip + 9]"
end
end

def test_push_reg
Expand Down

0 comments on commit 9684cc1

Please sign in to comment.