about summary refs log tree commit diff stats
path: root/subx/032check_operand_bounds.cc
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-08-09 21:35:04 -0700
committerKartik Agaram <vc@akkartik.com>2018-08-09 21:46:12 -0700
commit90b01a1b277f457914c1a5757ecfde3af4591ab0 (patch)
tree5e6a72ac63b7dcdc4c2d689e6dff3a51802888a9 /subx/032check_operand_bounds.cc
parentf2889b002ab36e13ac5771cf33635ec35cfc3b34 (diff)
downloadmu-90b01a1b277f457914c1a5757ecfde3af4591ab0.tar.gz
4499
More tweaks for check passes. Ensure they're never first-class
transforms.
Diffstat (limited to 'subx/032check_operand_bounds.cc')
-rw-r--r--subx/032check_operand_bounds.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/subx/032check_operand_bounds.cc b/subx/032check_operand_bounds.cc
index 7ed2732b..9a810453 100644
--- a/subx/032check_operand_bounds.cc
+++ b/subx/032check_operand_bounds.cc
@@ -3,7 +3,7 @@
 :(scenario check_bitfield_sizes)
 % Hide_errors = true;
 == 0x1
-01/add 4/mod
+01/add 4/mod 3/rm32 1/r32  # add ECX to EBX
 +error: '4/mod' too large to fit in bitfield mod
 
 :(before "End Globals")
@@ -22,7 +22,7 @@ put(Operand_bound, "disp16", 1<<16);
 put(Operand_bound, "imm8", 1<<8);
 // no bound needed for imm32
 
-:(after "Pack Operands")
+:(before "Pack Operands(segment code)")
 check_operand_bounds(code);
 if (trace_contains_errors()) return;
 :(code)