diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-04-20 10:05:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-20 10:05:30 -0700 |
commit | 995b960c70c624639552a04c38c7822f9875c53d (patch) | |
tree | dbe779144e75a3a5d33c497385f67fcac363dd2b /yjit/src/disasm.rs | |
parent | ce38ad6963b609b4054bba6165abb78414d5428e (diff) | |
download | ruby-995b960c70c624639552a04c38c7822f9875c53d.tar.gz |
YJIT: Avoid splitting mov for small values on arm64 (#7745)
* YJIT: Avoid splitting mov for small values on arm64
* Fix a comment
Co-authored-by: Alan Wu <XrXr@users.noreply.github.com>
* YJIT: Test the 0xffff boundary
---------
Co-authored-by: Alan Wu <XrXr@users.noreply.github.com>
Diffstat (limited to 'yjit/src/disasm.rs')
-rw-r--r-- | yjit/src/disasm.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yjit/src/disasm.rs b/yjit/src/disasm.rs index f9a5744979..57806ccc30 100644 --- a/yjit/src/disasm.rs +++ b/yjit/src/disasm.rs @@ -207,7 +207,6 @@ pub fn disasm_addr_range(cb: &CodeBlock, start_addr: usize, end_addr: usize) -> #[cfg(test)] macro_rules! assert_disasm { ($cb:expr, $hex:expr, $disasm:expr) => { - assert_eq!(format!("{:x}", $cb), $hex); #[cfg(feature = "disasm")] { let disasm = disasm_addr_range( @@ -217,6 +216,7 @@ macro_rules! assert_disasm { ); assert_eq!(unindent(&disasm, false), unindent(&$disasm, true)); } + assert_eq!(format!("{:x}", $cb), $hex); }; } #[cfg(test)] |