summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/UpdateTestChecks/update_llc_test_checks/basic.test
blob: 74c2b6cd70ede4c60cea85d17e46593bbd84f3b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# REQUIRES: x86-registered-target
## Basic test checking that update_llc_test_checks.py can update a file with multiple check prefixes

# RUN: cp -f %S/Inputs/basic.ll %t.ll && %update_llc_test_checks %t.ll
# RUN: diff -u %S/Inputs/basic.ll.expected %t.ll
## The flags --x86_scrub_rip and --extra_scrub should have any effect for this
## test. Check the output is identical.
# RUN: cp -f %S/Inputs/basic.ll %t.ll &&  %update_llc_test_checks --extra_scrub %t.ll
# RUN: diff -u %S/Inputs/basic.ll.expected %t.ll
# RUN: cp -f %S/Inputs/basic.ll %t.ll &&  %update_llc_test_checks --x86_scrub_rip %t.ll
# RUN: diff -u %S/Inputs/basic.ll.expected %t.ll
## Finally, run the script on an already updated file and verify that all previous
## CHECK lines are removed.
# RUN: %update_llc_test_checks %t.ll
# RUN: diff -u %S/Inputs/basic.ll.expected %t.ll
OpenPOWER on IntegriCloud