diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2015-02-03 21:26:45 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2015-02-03 21:26:45 +0000 |
commit | a4a77ed59e7020f11817fcfa81f12d0cc6b37555 (patch) | |
tree | b2813324eab1ecc586ccbcbc597870ffbe9cf43e /llvm/utils/update_llc_test_checks.py | |
parent | f796a1ded0ce5ca9f90793192c1789c2dc22e953 (diff) | |
download | bcm5719-llvm-a4a77ed59e7020f11817fcfa81f12d0cc6b37555.tar.gz bcm5719-llvm-a4a77ed59e7020f11817fcfa81f12d0cc6b37555.zip |
[x86] Tweak my update script to use test case function names starting
with 'stress' to indicate that the specific output isn't interesting and
relax them to only check the last instruction (a ret).
I've updated the one test case that really uses this to name the one
'stress_test' which was actually producing output we can directly check.
With this, the script doesn't introduce noise when run over the v16 test
file.
llvm-svn: 228033
Diffstat (limited to 'llvm/utils/update_llc_test_checks.py')
-rwxr-xr-x | llvm/utils/update_llc_test_checks.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/utils/update_llc_test_checks.py b/llvm/utils/update_llc_test_checks.py index 4125ea981ec..c99872313da 100755 --- a/llvm/utils/update_llc_test_checks.py +++ b/llvm/utils/update_llc_test_checks.py @@ -122,6 +122,9 @@ def main(): continue f = m.group('f') f_asm = scrub_asm(m.group('body')) + if f.startswith('stress'): + # We only use the last line of the asm for stress tests. + f_asm = '\n'.join(f_asm.splitlines()[-1:]) if args.verbose: print >>sys.stderr, 'Processing asm for function: ' + f for l in f_asm.splitlines(): |