This has been rather useful in our downstream CHERI target where we want to run tests both with addrspace(0) and addrspace(200) pointers. With this patch we can prefix the opt command with `sed -e 's/addrspace(200)/addrspace(0)/g' -e 's/-A200-P200-G200//g'` to test both cases using the same IR input. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D95137
7 lines
372 B
Plaintext
7 lines
372 B
Plaintext
## Test that update_test_checks.py can run pre-processing commands.
|
|
# RUN: cp -f %S/Inputs/pre-process.ll %t.ll && %update_test_checks --function-signature %t.ll
|
|
# RUN: diff -u %t.ll %S/Inputs/pre-process.ll.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/pre-process.ll.expected
|