diff options
author | Zvi Rackover <zvi.rackover@intel.com> | 2016-11-07 17:47:21 +0000 |
---|---|---|
committer | Zvi Rackover <zvi.rackover@intel.com> | 2016-11-07 17:47:21 +0000 |
commit | 35a5acf8ad266cd1a796c6f53295379fec754fb8 (patch) | |
tree | d9b83e2a5d558aaf1f40f80358def33e7e7ff5d3 | |
parent | a09c7e7e66514ca63920d0117e96ae42c367e348 (diff) | |
download | bcm5719-llvm-35a5acf8ad266cd1a796c6f53295379fec754fb8.tar.gz bcm5719-llvm-35a5acf8ad266cd1a796c6f53295379fec754fb8.zip |
[X86] Fix test checks script to handle run lines with no pipe checks
Fixes crashes in tests such as test/CodeGen/X86/masked_gather_scatter.ll which
contains a RUN: with no pipe chain.
llvm-svn: 286125
-rwxr-xr-x | llvm/utils/update_llc_test_checks.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/utils/update_llc_test_checks.py b/llvm/utils/update_llc_test_checks.py index d2df5b6511e..12faa806be4 100755 --- a/llvm/utils/update_llc_test_checks.py +++ b/llvm/utils/update_llc_test_checks.py @@ -164,7 +164,11 @@ def main(): prefix_list = [] for l in run_lines: - (llc_cmd, filecheck_cmd) = tuple([cmd.strip() for cmd in l.split('|', 1)]) + commands = [cmd.strip() for cmd in l.split('|', 1)] + llc_cmd = commands[0] + filecheck_cmd = '' + if len(commands) > 1: + filecheck_cmd = commands[1] if not llc_cmd.startswith('llc '): print >>sys.stderr, 'WARNING: Skipping non-llc RUN line: ' + l continue |