diff --git a/slothy/targets/arm_v7m/arch_v7m.py b/slothy/targets/arm_v7m/arch_v7m.py index 6d0364ec..6da66177 100644 --- a/slothy/targets/arm_v7m/arch_v7m.py +++ b/slothy/targets/arm_v7m/arch_v7m.py @@ -650,7 +650,7 @@ def pattern_i(i): imm_pattern = "#(\\\\w|\\\\s|/| |-|\\*|\\+|\\(|\\)|=|,)+" index_pattern = "[0-9]+" width_pattern = "(?:\.w|\.n|)" - barrel_pattern = "(?:lsl|ror|lsr|asr)" + barrel_pattern = "(?:lsl|ror|lsr|asr)\\\\s*" range_pattern = "\{(?P[rs])(?P\\\\d+)-[rs](?P\\\\d+)\}" src = re.sub(" ", "\\\\s+", src) @@ -968,7 +968,7 @@ class add_imm_short(Armv7mBasicArithmetic): # pylint: disable=missing-docstring, in_outs = ["Rd"] class add_shifted(Armv7mShiftedArithmetic): # pylint: disable=missing-docstring,invalid-name - pattern = "add , , , " + pattern = "add , , , " inputs = ["Ra","Rb"] outputs = ["Rd"] @@ -995,7 +995,7 @@ class sub(Armv7mBasicArithmetic): # pylint: disable=missing-docstring,invalid-na outputs = ["Rd"] class sub_shifted(Armv7mShiftedArithmetic): # pylint: disable=missing-docstring,invalid-name - pattern = "sub , , , " + pattern = "sub , , , " inputs = ["Ra","Rb"] outputs = ["Rd"] @@ -1138,7 +1138,7 @@ class log_and(Armv7mLogical): # pylint: disable=missing-docstring,invalid-name outputs = ["Rd"] class log_and_shifted(Armv7mShiftedLogical): # pylint: disable=missing-docstring,invalid-name - pattern = "and , , , " + pattern = "and , , , " inputs = ["Ra", "Rb"] outputs = ["Rd"] @@ -1148,7 +1148,7 @@ class log_or(Armv7mLogical): # pylint: disable=missing-docstring,invalid-name outputs = ["Rd"] class log_or_shifted(Armv7mShiftedLogical): # pylint: disable=missing-docstring,invalid-name - pattern = "orr , , , " + pattern = "orr , , , " inputs = ["Ra", "Rb"] outputs = ["Rd"] @@ -1175,7 +1175,7 @@ class eors_short(Armv7mLogical): # pylint: disable=missing-docstring,invalid-nam modifiesFlags = True class eor_shifted(Armv7mShiftedLogical): # pylint: disable=missing-docstring,invalid-name - pattern = "eor , , , " + pattern = "eor , , , " inputs = ["Ra", "Rb"] outputs = ["Rd"] @@ -1195,7 +1195,7 @@ class bics(Armv7mLogical): # pylint: disable=missing-docstring,invalid-name modifiesFlags = True class bic_shifted(Armv7mShiftedLogical): # pylint: disable=missing-docstring,invalid-name - pattern = "bic , , , " + pattern = "bic , , , " inputs = ["Ra", "Rb"] outputs = ["Rd"] @@ -1235,7 +1235,7 @@ class asrs(Armv7mLogical): # pylint: disable=missing-docstring,invalid-name modifiesFlags = True class pkhtb(Armv7mShiftedLogical): # pylint: disable=missing-docstring,invalid-name - pattern = "pkhtb , , , " + pattern = "pkhtb , , , " inputs = ["Ra", "Rb"] outputs = ["Rd"] @@ -1245,7 +1245,7 @@ class pkhbt(Armv7mLogical): # pylint: disable=missing-docstring,invalid-name outputs = ["Rd"] class pkhbt_shifted(Armv7mShiftedLogical): # pylint: disable=missing-docstring,invalid-name - pattern = "pkhbt , , , " + pattern = "pkhbt , , , " inputs = ["Ra", "Rb"] outputs = ["Rd"]