1# REQUIRES: x86-registered-target, asserts
2
3## Check that --filter works properly.
4# RUN: cp -f %S/Inputs/x86-loopvectorize-costmodel.ll %t.ll && %update_analyze_test_checks --filter "LV: Found an estimated cost of [0-9]+ for VF [0-9]+ For instruction:\s*%v0 = load float, float\* %in0, align 4" %t.ll
5# RUN: diff -u %t.ll %S/Inputs/x86-loopvectorize-costmodel.ll.expected
6
7## Check that running the script again does not change the result:
8# RUN: %update_analyze_test_checks --filter "LV: Found an estimated cost of [0-9]+ for VF [0-9]+ For instruction:\s*%v0 = load float, float\* %in0, align 4" %t.ll
9# RUN: diff -u %t.ll %S/Inputs/x86-loopvectorize-costmodel.ll.expected
10
11## Check that running the script again, without arguments, does not change the result:
12# RUN: %update_analyze_test_checks %t.ll
13# RUN: diff -u %t.ll %S/Inputs/x86-loopvectorize-costmodel.ll.expected
14