Mercurial > repos > blastem
diff gentests.py @ 2469:db32408394c3
Update test generator to not generate link instructions with an odd displacement
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 24 Feb 2024 23:16:29 -0800 |
parents | 3b1b7b272311 |
children | 6c475ddefd6f |
line wrap: on
line diff
--- a/gentests.py Sat Feb 24 22:54:36 2024 -0800 +++ b/gentests.py Sat Feb 24 23:16:29 2024 -0800 @@ -503,6 +503,8 @@ sources = get_variations(src, size) for source in sources: for dest in dests: + if self.name == 'link': + dest.value = (dest.value //2) * 2 res.append(Program(Inst2Op(self.name, size, source, dest))) else: for dest in dests: