Merge branch 'master' into fix/increment_handling

This commit is contained in:
Julian Hammer
2020-10-15 13:17:02 +02:00
2 changed files with 28 additions and 0 deletions

View File

@@ -90,3 +90,29 @@ instruction_forms:
post-indexed: "*"
source: false
destination: true
- name: cmp
operands:
- class: "register"
prefix: "*"
source: true
destination: false
- class: "register"
prefix: "*"
source: true
destination: false
- name: cmp
operands:
- class: "register"
prefix: "*"
source: true
destination: false
- class: "memory"
prefix: "*"
base: "*"
offset: "*"
index: "*"
scale: "*"
pre-indexed: "*"
post-indexed: "*"
source: true
destination: false

View File

@@ -23,6 +23,8 @@ def reduce_to_section(kernel, isa):
raise ValueError('ISA not supported.')
if start == -1:
start = 0
if end == -1:
end = len(kernel)
return kernel[start:end]