X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=buildtools%2Fbinutils-avx512-check.py;h=a0847a23d677aaa93b6aa3eeb2c86f4827214a60;hb=79aab97c94024c4f969308ec806efb168cccc83d;hp=a4e14f35933c37049d27a47c249e4d893a55ed2d;hpb=bb9cd91095b3e8e2ce2714baa7cd2ea38414f3d8;p=dpdk.git diff --git a/buildtools/binutils-avx512-check.py b/buildtools/binutils-avx512-check.py index a4e14f3593..a0847a23d6 100644 --- a/buildtools/binutils-avx512-check.py +++ b/buildtools/binutils-avx512-check.py @@ -1,5 +1,5 @@ #! /usr/bin/env python3 -# SPDX-License-Identitifer: BSD-3-Clause +# SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2020 Intel Corporation import subprocess @@ -15,7 +15,7 @@ with tempfile.NamedTemporaryFile() as obj: src = '__asm__("vpgatherqq {}");'.format(gather_params).encode('utf-8') subprocess.run(cc + ['-c', '-xc', '-o', obj.name, '-'], input=src, check=True) asm = subprocess.run([objdump, '-d', '--no-show-raw-insn', obj.name], - capture_output=True, check=True).stdout.decode('utf-8') + stdout=subprocess.PIPE, check=True).stdout.decode('utf-8') if gather_params not in asm: print('vpgatherqq displacement error with as') sys.exit(1)