gh-107901: add the HAS_EVAL_BREAK instruction flag (#108375)

This commit is contained in:
Irit Katriel 2023-08-25 19:33:59 +01:00 committed by GitHub
parent 5a25daa512
commit 5f41376e93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 28 additions and 21 deletions

View file

@ -381,7 +381,8 @@ class Analyzer:
# Make sure the targets have the same fmt
fmts = list(set([t.instr_fmt for t in targets]))
assert len(fmts) == 1
assert len(list(set([t.instr_flags.bitmap() for t in targets]))) == 1
ignored_flags = {'HAS_EVAL_BREAK_FLAG'}
assert len({t.instr_flags.bitmap(ignore=ignored_flags) for t in targets}) == 1
return PseudoInstruction(pseudo.name, targets, fmts[0], targets[0].instr_flags)
def analyze_instruction(