From 4865e7ea729dc4ee6d39b6f1875a28977b8c60fa Mon Sep 17 00:00:00 2001 From: Julian Hammer Date: Thu, 15 Oct 2020 11:59:51 +0200 Subject: [PATCH 1/2] fixed ignoring of last line without end marker --- osaca/semantics/marker_utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/osaca/semantics/marker_utils.py b/osaca/semantics/marker_utils.py index 42cb923..f47c147 100755 --- a/osaca/semantics/marker_utils.py +++ b/osaca/semantics/marker_utils.py @@ -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] From 5a5a1e74f51d8ca9f2261c2e685b5fe88d7d14a7 Mon Sep 17 00:00:00 2001 From: Julian Hammer Date: Thu, 15 Oct 2020 13:15:54 +0200 Subject: [PATCH 2/2] added CMP to aarch64 to exclude first op from destinations --- osaca/data/isa/aarch64.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/osaca/data/isa/aarch64.yml b/osaca/data/isa/aarch64.yml index 2957a28..601c033 100644 --- a/osaca/data/isa/aarch64.yml +++ b/osaca/data/isa/aarch64.yml @@ -181,3 +181,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