qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH Risu v2 5/9] Implement basic test code for PPC64


From: Jose Ricardo Ziviani
Subject: [Qemu-devel] [PATCH Risu v2 5/9] Implement basic test code for PPC64
Date: Sun, 6 Nov 2016 15:15:24 -0200

This commit implements in assembly code a small test case to test risu
without a risugen binary file. It simply store values into general
registers and compare them.

Signed-off-by: Jose Ricardo Ziviani <address@hidden>
---
 test_ppc64le.s | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)
 create mode 100644 test_ppc64le.s

diff --git a/test_ppc64le.s b/test_ppc64le.s
new file mode 100644
index 0000000..4321751
--- /dev/null
+++ b/test_ppc64le.s
@@ -0,0 +1,51 @@
+/*****************************************************************************
+ * Copyright (c) IBM Corp, 2016
+ * 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:
+ *     Jose Ricardo Ziviani - ppc64le implementation
+ *     based on Claudio Fontana
+ *     based on test_arm.s by Peter Maydell
+ *****************************************************************************/
+
+/* Initialise the gp regs */
+li 0,0
+li 1,1
+li 2,2
+li 3,3
+li 4,4
+li 5,5
+li 6,6
+li 7,7
+li 8,8
+li 9,9
+li 10, 10
+li 11, 11
+li 12, 12
+li 13, 13
+li 14, 14
+li 15, 15
+li 16, 16
+li 17, 17
+li 18, 18
+li 19, 19
+li 20, 20
+li 21, 21
+li 22, 22
+li 23, 23
+li 24, 24
+li 25, 25
+li 26, 26
+li 27, 27
+li 28, 28
+li 29, 29
+li 30, 30
+li 31, 31
+
+/* do compare */
+.int 0x00005af0
+/* exit test */
+.int 0x00005af1
-- 
2.7.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]