diff options
Diffstat (limited to 'tools/cf_diff.py')
| -rw-r--r-- | tools/cf_diff.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/cf_diff.py b/tools/cf_diff.py index 741e21561..70d144753 100644 --- a/tools/cf_diff.py +++ b/tools/cf_diff.py | |||
| @@ -567,7 +567,7 @@ def self_test(): | |||
| 567 | e.items = [it for it in e.items if not (it[0] == "ins" and it[1].startswith("s_or_b32 exec_lo"))] | 567 | e.items = [it for it in e.items if not (it[0] == "ins" and it[1].startswith("s_or_b32 exec_lo"))] |
| 568 | with tempfile.TemporaryDirectory(prefix="cf-diff-") as tmp: | 568 | with tempfile.TemporaryDirectory(prefix="cf-diff-") as tmp: |
| 569 | p = os.path.join(tmp, "c.s") | 569 | p = os.path.join(tmp, "c.s") |
| 570 | with open(p, "w", encoding="utf-8") as f: | 570 | with open(p, "w", encoding="utf-8", newline="\n") as f: |
| 571 | f.write(listing_text(e.assemble(), "ps_canary_bad")) | 571 | f.write(listing_text(e.assemble(), "ps_canary_bad")) |
| 572 | if len(cf_ref.run(p, wave=32)["exports"]) != 4: # 4 > lane: lanes 0-3 stay on | 572 | if len(cf_ref.run(p, wave=32)["exports"]) != 4: # 4 > lane: lanes 0-3 stay on |
| 573 | print("canary FAILED: the reference did not drop lanes whose EXEC was never restored") | 573 | print("canary FAILED: the reference did not drop lanes whose EXEC was never restored") |