# HG changeset patch # User Michael Pavone # Date 1739167727 28800 # Node ID 01cd8aa40573724194610f7b23c37d77705a53b2 # Parent eb4b37c14c931de4dc9cb35d98a173cd2c1d6025 populate registers at full size in test generator to expose masking bugs diff -r eb4b37c14c93 -r 01cd8aa40573 gentests.py --- a/gentests.py Sun Feb 09 20:36:06 2025 -0800 +++ b/gentests.py Sun Feb 09 22:08:47 2025 -0800 @@ -94,6 +94,9 @@ def write_init(self, outfile, size, already): if not str(self) in already and not self.kind in ('ccr', 'sr'): + if self.kind in ('d', 'a'): + #populate all register bits during init to catch masking bugs + size = 'l' minv,maxv = get_size_range(size) val = randint(minv,maxv) already[str(self)] = val