xref: /llvm-project/llvm/test/tools/UpdateTestChecks/update_llc_test_checks/pre-process.test (revision 9692811b264600b7fcb52a1f4fcf938d198567cb)
1# REQUIRES: x86-registered-target
2## Test that update_llc_test_checks.py can run pre-processing commands.
3
4## Test that update_test_checks.py can run pre-processing commands.
5# RUN: cp -f %S/Inputs/pre-process.ll %t.ll && %update_llc_test_checks %t.ll
6# RUN: diff -u %t.ll %S/Inputs/pre-process.ll.expected
7## Check that running the script again does not change the result:
8# RUN: %update_llc_test_checks %t.ll
9# RUN: diff -u %t.ll %S/Inputs/pre-process.ll.expected
10
11