Index: utils/update_llc_test_checks.py =================================================================== --- utils/update_llc_test_checks.py +++ utils/update_llc_test_checks.py @@ -40,6 +40,8 @@ '--no_x86_scrub_rip', action='store_false', dest='x86_scrub_rip') parser.add_argument('-u', '--update-only', action='store_true', help='Only update test if it was already autogened') + parser.add_argument('-du', '--drop-update', action='store_true', + help='Drop and update test checks') parser.add_argument('tests', nargs='+') args = parser.parse_args() @@ -154,6 +156,9 @@ output_lines = [] output_lines.append(autogenerated_note) + if args.drop_update: + input_lines = [l for l in input_lines if not l.startswith((";CHECK", "; CHECK"))] + for input_line in input_lines: if is_in_function_start: if input_line == '':