summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Wu <[email protected]>2023-03-15 19:07:49 -0400
committerGitHub <[email protected]>2023-03-15 19:07:49 -0400
commitca10274fe34abad64dcbb20569aa5899bbf4c585 (patch)
treedb085e0963b53180d27e63357bba7e4084089ec7
parent9a735c776b5413377a921949494f42d1e15851ba (diff)
YJIT: Use assert_disasm! in an A64 test to avoid unused warning
I kept getting unused warnings for this macro on A64 macOS.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/7533 Merged-By: XrXr
-rw-r--r--yjit/src/backend/arm64/mod.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/yjit/src/backend/arm64/mod.rs b/yjit/src/backend/arm64/mod.rs
index fc26b9d893..4e5748d231 100644
--- a/yjit/src/backend/arm64/mod.rs
+++ b/yjit/src/backend/arm64/mod.rs
@@ -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]