[llvm] r188950 - [tests] Update fma3 check to work with Py3.
Daniel Dunbar
daniel at zuster.org
Wed Aug 21 15:26:44 PDT 2013
Author: ddunbar
Date: Wed Aug 21 17:26:44 2013
New Revision: 188950
URL: http://llvm.org/viewvc/llvm-project?rev=188950&view=rev
Log:
[tests] Update fma3 check to work with Py3.
Modified:
llvm/trunk/test/lit.cfg
Modified: llvm/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.cfg?rev=188950&r1=188949&r2=188950&view=diff
==============================================================================
--- llvm/trunk/test/lit.cfg (original)
+++ llvm/trunk/test/lit.cfg Wed Aug 21 17:26:44 2013
@@ -297,7 +297,8 @@ if 'darwin' == sys.platform:
stdout = subprocess.PIPE)
except OSError:
print("Could not exec sysctl")
- if -1 != sysctl_cmd.stdout.read().find("hw.optional.fma: 1"):
+ result = sysctl_cmd.stdout.read().decode('ascii')
+ if -1 != result.find("hw.optional.fma: 1"):
config.available_features.add('fma3')
sysctl_cmd.wait()
More information about the llvm-commits
mailing list