YJIT: Use assert_disasm! in an A64 test to avoid unused warning
I kept getting unused warnings for this macro on A64 macOS.
This commit is contained in:
parent
9a735c776b
commit
ca10274fe3
Notes:
git
2023-03-15 23:08:10 +00:00
Merged: https://github.com/ruby/ruby/pull/7533 Merged-By: XrXr
@ -1119,6 +1119,7 @@ impl Assembler
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::disasm::*;
|
||||
|
||||
fn setup_asm() -> (Assembler, CodeBlock) {
|
||||
(Assembler::new(), CodeBlock::new_dummy(1024))
|
||||
@ -1467,6 +1468,11 @@ mod tests {
|
||||
asm.store(Opnd::mem(64, Opnd::Reg(X2_REG), 0), opnd);
|
||||
|
||||
asm.compile_with_num_regs(&mut cb, 1);
|
||||
|
||||
assert_disasm!(cb, "0b0001ca4b0000f8", "
|
||||
0x0: eor x11, x0, x1
|
||||
0x4: stur x11, [x2]
|
||||
");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
Loading…
x
Reference in New Issue
Block a user