brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · 3ef21e6 Raw
26 lines · plain
1# REQUIRES: x86-registered-target2## Basic test checking that update_llc_test_checks.py can update a file with multiple check prefixes3 4# RUN: cp -f %S/Inputs/basic.ll %t.ll && %update_llc_test_checks %t.ll5# RUN: echo '; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py' > %t.expected.ll6# RUN: cat %S/Inputs/basic.ll.expected >> %t.expected.ll7# RUN: diff -u %t.expected.ll %t.ll8 9## The flags --x86_scrub_rip and --extra_scrub should not have any effect on this10## test. Check the output is identical.11# RUN: cp -f %S/Inputs/basic.ll %t.ll && %update_llc_test_checks --extra_scrub %t.ll12# RUN: echo '; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --extra_scrub' > %t.expected.ll13# RUN: cat %S/Inputs/basic.ll.expected >> %t.expected.ll14# RUN: diff -u %t.expected.ll %t.ll15# RUN: cp -f %S/Inputs/basic.ll %t.ll && %update_llc_test_checks --x86_scrub_rip %t.ll16# RUN: echo '; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --x86_scrub_rip' > %t.expected.ll17# RUN: cat %S/Inputs/basic.ll.expected >> %t.expected.ll18# RUN: diff -u %t.expected.ll %t.ll19 20## Finally, run the script on an already updated file and verify that all previous21## CHECK lines are removed.22# RUN: %update_llc_test_checks %t.ll23# RUN: echo '; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --x86_scrub_rip' > %t.expected.ll24# RUN: cat %S/Inputs/basic.ll.expected >> %t.expected.ll25# RUN: diff -u %t.expected.ll %t.ll26