isa_parser.py (12104:edd63f9c6184) isa_parser.py (12109:f29e9c5418aa)
1# Copyright (c) 2014 ARM Limited
1# Copyright (c) 2014, 2016 ARM Limited
2# All rights reserved
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license
9# terms below provided that you ensure that this notice is replicated

--- 850 unchanged lines hidden (view full) ---

860 # if the token following the operand is an assignment, this is
861 # a destination (LHS), else it's a source (RHS)
862 is_dest = (assignRE.match(code, match.end()) != None)
863 is_src = not is_dest
864 # see if we've already seen this one
865 op_desc = self.find_base(op_base)
866 if op_desc:
867 if op_desc.ext != op_ext:
2# All rights reserved
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license
9# terms below provided that you ensure that this notice is replicated

--- 850 unchanged lines hidden (view full) ---

860 # if the token following the operand is an assignment, this is
861 # a destination (LHS), else it's a source (RHS)
862 is_dest = (assignRE.match(code, match.end()) != None)
863 is_src = not is_dest
864 # see if we've already seen this one
865 op_desc = self.find_base(op_base)
866 if op_desc:
867 if op_desc.ext != op_ext:
868 error('Inconsistent extensions for operand %s' % \
869 op_base)
868 error ('Inconsistent extensions for operand %s' % \
869 op_base)
870 op_desc.is_src = op_desc.is_src or is_src
871 op_desc.is_dest = op_desc.is_dest or is_dest
872 else:
873 # new operand: create new descriptor
874 op_desc = parser.operandNameMap[op_base](parser,
875 op_full, op_ext, is_src, is_dest)
876 self.append(op_desc)
877 # start next search after end of current match

--- 1577 unchanged lines hidden ---
870 op_desc.is_src = op_desc.is_src or is_src
871 op_desc.is_dest = op_desc.is_dest or is_dest
872 else:
873 # new operand: create new descriptor
874 op_desc = parser.operandNameMap[op_base](parser,
875 op_full, op_ext, is_src, is_dest)
876 self.append(op_desc)
877 # start next search after end of current match

--- 1577 unchanged lines hidden ---