aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/reg.rs
diff options
context:
space:
mode:
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.