aboutsummaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-12-11 20:49:45 -0500
committerJack Lloyd <[email protected]>2017-12-11 20:49:45 -0500
commit4cc5e2fe991d4233f053abedf73a5dc22594330b (patch)
tree62a5d3ab4f6fa8423e9da840e43a934011bd3732 /configure.py
parent8517b97cbeec0ca5ff2aa12ff16d04473679aee2 (diff)
Rename SSE4.x names to avoid underscores
This breaks how we determine the ISA flags for amalgamation files. The code for doing that is kind of a hack but I don't want to mess with it right now, easier to just rename the ISA internally.
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.py b/configure.py
index 0a9596168..d7b03f8c1 100755
--- a/configure.py
+++ b/configure.py
@@ -335,7 +335,7 @@ def process_command_line(args): # pylint: disable=too-many-locals
target_group.add_option('--disable-%s' % (isa_extn),
help='disable %s intrinsics' % (isa_extn_name),
action='append_const',
- const=isa_extn.replace('-', '').replace('.', '_'),
+ const=isa_extn.replace('-', '').replace('.', ''),
dest='disable_intrinsics')
build_group = optparse.OptionGroup(parser, 'Build options')
@@ -972,6 +972,11 @@ class ArchInfo(InfoObject):
self.submodel_aliases = parse_lex_dict(lex.submodel_aliases)
self.wordsize = int(lex.wordsize)
+ alphanumeric = re.compile('^[a-z0-9]+$')
+ for isa in self.isa_extensions:
+ if alphanumeric.match(isa) is None:
+ logging.error('Invalid name for ISA extension "%s"', isa)
+
def all_submodels(self):
"""
Return a list of all submodels for this arch, ordered longest