1# REQUIRES: x86-registered-target
2## Basic test checking that update_llc_test_checks.py can update a file with multiple check prefixes
3
4# RUN: cp -f %S/Inputs/basic.ll %t.ll && %update_llc_test_checks %t.ll
5# RUN: diff -u %S/Inputs/basic.ll.expected %t.ll
6## The flags --x86_scrub_rip and --extra_scrub should have any effect for this
7## test. Check the output is identical.
8# RUN: cp -f %S/Inputs/basic.ll %t.ll &&  %update_llc_test_checks --extra_scrub %t.ll
9# RUN: diff -u %S/Inputs/basic.ll.expected %t.ll
10# RUN: cp -f %S/Inputs/basic.ll %t.ll &&  %update_llc_test_checks --x86_scrub_rip %t.ll
11# RUN: diff -u %S/Inputs/basic.ll.expected %t.ll
12## Finally, run the script on an already updated file and verify that all previous
13## CHECK lines are removed.
14# RUN: %update_llc_test_checks %t.ll
15# RUN: diff -u %S/Inputs/basic.ll.expected %t.ll
16