diff options
author | Alan Wu <[email protected]> | 2025-06-11 10:09:51 +0900 |
---|---|---|
committer | Alan Wu <[email protected]> | 2025-06-11 19:49:49 +0900 |
commit | 4ebe0a1ba50c7022bcbd823471a6d08e7cee52bd (patch) | |
tree | 285bface5494419193d8837a2d6d276b0a8f24cf | |
parent | c489020cabb822a40f1d32eefc31487ac20a5e5d (diff) |
ZJIT: Restore x86 assembler tests
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13576
-rw-r--r-- | zjit/src/asm/x86_64/tests.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/zjit/src/asm/x86_64/tests.rs b/zjit/src/asm/x86_64/tests.rs index f2b949b7f7..d8997c0be7 100644 --- a/zjit/src/asm/x86_64/tests.rs +++ b/zjit/src/asm/x86_64/tests.rs @@ -1,11 +1,10 @@ #![cfg(test)] -//use crate::asm::x86_64::*; +use crate::asm::x86_64::*; -/* /// Check that the bytes for an instruction sequence match a hex string fn check_bytes<R>(bytes: &str, run: R) where R: FnOnce(&mut super::CodeBlock) { - let mut cb = super::CodeBlock::new_dummy(4096); + let mut cb = super::CodeBlock::new_dummy(); run(&mut cb); assert_eq!(format!("{:x}", cb), bytes); } @@ -439,9 +438,10 @@ fn basic_capstone_usage() -> std::result::Result<(), capstone::Error> { } #[test] +#[ignore] #[cfg(feature = "disasm")] fn block_comments() { - let mut cb = super::CodeBlock::new_dummy(4096); + let mut cb = super::CodeBlock::new_dummy(); let first_write_ptr = cb.get_write_ptr().raw_addr(&cb); cb.add_comment("Beginning"); @@ -458,4 +458,3 @@ fn block_comments() { assert_eq!(&vec!( "Two bytes in".to_string(), "Still two bytes in".to_string() ), cb.comments_at(second_write_ptr).unwrap()); assert_eq!(&vec!( "Ten bytes in".to_string() ), cb.comments_at(third_write_ptr).unwrap()); } -*/ |