aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/reg.rs
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2023-12-07 23:00:09 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2023-12-07 23:00:09 +0100
commitf4a9fdb3357ce1a2dfc12cbb0fee6b915bc810c4 (patch)
treef250376867477ac309d9fed4333224efe2d3969d /src/reg.rs
parent647e3646c2f686ce236059b935336c43c8a9a074 (diff)
downloadjuicebox-asm-f4a9fdb3357ce1a2dfc12cbb0fee6b915bc810c4.tar.gz
juicebox-asm-f4a9fdb3357ce1a2dfc12cbb0fee6b915bc810c4.zip
remove prelude
Diffstat (limited to 'src/reg.rs')
-rw-r--r--src/reg.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/reg.rs b/src/reg.rs
index 15417c4..43fd8af 100644
--- a/src/reg.rs
+++ b/src/reg.rs
@@ -158,7 +158,10 @@ mod tests {
assert!(!r.rexw());
// Check need REX byte.
- let rex = matches!(r, r8l | r9l | r10l | r11l | r12l | r13l | r14l | r15l | spl | bpl | sil | dil);
+ let rex = matches!(
+ r,
+ r8l | r9l | r10l | r11l | r12l | r13l | r14l | r15l | spl | bpl | sil | dil
+ );
assert_eq!(r.need_rex(), rex);
// Check need SIB byte.