[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[risu PATCH v3 3/7] s390x: Add simple s390x.risu file
From: |
Thomas Huth |
Subject: |
[risu PATCH v3 3/7] s390x: Add simple s390x.risu file |
Date: |
Thu, 14 Sep 2023 13:33:07 +0200 |
This only adds a limited set of s390x instructions for initial testing.
More instructions will be added later.
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
s390x.risu | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 81 insertions(+)
create mode 100644 s390x.risu
diff --git a/s390x.risu b/s390x.risu
new file mode 100644
index 0000000..1661be6
--- /dev/null
+++ b/s390x.risu
@@ -0,0 +1,81 @@
+###############################################################################
+# Copyright 2023 Red Hat Inc.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# Thomas Huth - initial implementation
+###############################################################################
+
+.mode s390x
+
+# format:RR Add (register + register, 32 bit)
+AR Z 00011010 r1:4 r2:4
+
+# format:RRE Add (register + register, 64 bit)
+AGR Z 10111001 00001000 00000000 r1:4 r2:4
+
+# format:RRE Add (register + register, 32 bit to 64 bit)
+AGFR Z 10111001 00011000 00000000 r1:4 r2:4
+
+# format:RRF-a Add (three registers, 32 bit)
+ARK STFLE45 10111001 11111000 r3:4 0000 r1:4 r2:4
+
+# format:RRF-a Add (three registers, 64 bit)
+AGRK STFLE45 10111001 11101000 r3:4 0000 r1:4 r2:4
+
+
+# format:RRE Add Halfword Immediate (32 bit)
+AHI Z 10100111 r1:4 1010 i2:16
+
+# format:RI Add Halfword Immediate (64 bit)
+AGHI Z 10100111 r1:4 1011 i2:16
+
+
+# format:RR Add Logical (32 bit)
+ALR Z 00011110 r1:4 r2:4
+
+# format:RRE Add Logical (64 bit)
+ALGR Z 10111001 00001010 00000000 r1:4 r2:4
+
+# format:RRE Add Logical (32 bit to 64 bit)
+ALGFR Z 10111001 00011010 00000000 r1:4 r2:4
+
+
+# format:RRF-c Population Count
+POPCNT STFLE45 10111001 11100001 m3:4 0000 r1:4 r2:4
+
+
+###### Binary floating point instructions ######
+
+# format:RRE ADD (short BFP)
+AEBR BFP 10110011 00001010 00000000 r1:4 r2:4
+
+# format:RRE ADD (long BFP)
+ADBR BFP 10110011 00011010 00000000 r1:4 r2:4
+
+# format:RRE ADD (extended BFP)
+AXBR BFP 10110011 01001010 00000000 r1:4 r2:4
+
+
+# format:RRE COMPARE (short BFP)
+CEBR BFP 10110011 00001001 00000000 r1:4 r2:4
+
+# format:RRE COMPARE (long BFP)
+CDBR BFP 10110011 00011001 00000000 r1:4 r2:4
+
+# format:RRE COMPARE (extended BFP)
+CXBR BFP 10110011 01001001 00000000 r1:4 r2:4
+
+
+# format:RRF-e LOAD FP INTEGER (short BFP)
+FIEBRA BFP 10110011 01010111 m3:4 m4:4 r1:4 r2:4
+
+# format:RRF-e LOAD FP INTEGER (long BFP)
+FIDBRA BFP 10110011 01011111 m3:4 m4:4 r1:4 r2:4
+
+# format:RRF-e LOAD FP INTEGER (extended BFP)
+FIXBRA BFP 10110011 01000111 m3:4 m4:4 r1:4 r2:4
+
--
2.41.0
- [risu PATCH v3 0/7] Add support for s390x to RISU, Thomas Huth, 2023/09/14
- [risu PATCH v3 2/7] s390x: Add basic s390x support to the C code, Thomas Huth, 2023/09/14
- [risu PATCH v3 1/7] Pass siginfo_t->si_addr to the reginfo_init() function, Thomas Huth, 2023/09/14
- [risu PATCH v3 3/7] s390x: Add simple s390x.risu file,
Thomas Huth <=
- [risu PATCH v3 4/7] s390x: Add basic risugen perl module for s390x, Thomas Huth, 2023/09/14
- [risu PATCH v3 6/7] build-all-archs: Add s390x to the script that builds all architectures, Thomas Huth, 2023/09/14
- [risu PATCH v3 5/7] s390x: Update the configure script for s390x support, Thomas Huth, 2023/09/14
- [risu RFC PATCH v3 7/7] Add a travis.yml file for testing RISU in the Travis-CI, Thomas Huth, 2023/09/14
- Re: [risu PATCH v3 0/7] Add support for s390x to RISU, Peter Maydell, 2023/09/18