This allows to check for various globals (metadata/attributes/...) and also resolves problems with globals (metadata/attributes/...) being reused across different prefixes. Reviewed By: sstefan1 Differential Revision: https://reviews.llvm.org/D94741
22 lines
1.1 KiB
Plaintext
22 lines
1.1 KiB
Plaintext
## Check that generated functions are included.
|
|
# RUN: cp -f %S/Inputs/generated_funcs.ll %t.ll && %update_test_checks --include-generated-funcs %t.ll
|
|
# RUN: diff -u %t.ll %S/Inputs/generated_funcs.ll.generated.expected
|
|
|
|
## Check that running the script again does not change the result:
|
|
# RUN: %update_test_checks --include-generated-funcs %t.ll
|
|
# RUN: diff -u %t.ll %S/Inputs/generated_funcs.ll.generated.expected
|
|
## Also try the --check-globals flag
|
|
# RUN: %update_test_checks %t.ll --check-globals
|
|
# RUN: diff -u %t.ll %S/Inputs/generated_funcs.ll.generated.globals.expected
|
|
|
|
## Check that generated functions are not included.
|
|
# RUN: cp -f %S/Inputs/generated_funcs.ll %t.ll && %update_test_checks %t.ll
|
|
# RUN: diff -u %t.ll %S/Inputs/generated_funcs.ll.nogenerated.expected
|
|
|
|
## Check that running the script again does not change the result:
|
|
# RUN: %update_test_checks %t.ll
|
|
# RUN: diff -u %t.ll %S/Inputs/generated_funcs.ll.nogenerated.expected
|
|
## Also try the --check-globals flag
|
|
# RUN: %update_test_checks %t.ll --check-globals
|
|
# RUN: diff -u %t.ll %S/Inputs/generated_funcs.ll.nogenerated.globals.expected
|