aboutsummaryrefslogtreecommitdiffstats
path: root/tests/tcg/tricore/test_madd.S
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tcg/tricore/test_madd.S')
-rw-r--r--tests/tcg/tricore/test_madd.S11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/tcg/tricore/test_madd.S b/tests/tcg/tricore/test_madd.S
new file mode 100644
index 000000000..5d839772b
--- /dev/null
+++ b/tests/tcg/tricore/test_madd.S
@@ -0,0 +1,11 @@
+#include "macros.h"
+.text
+.global _start
+_start:
+ TEST_D_DDI_PSW(madd, 1, 0x0000fffd, 0x60000b80, 0x0000ffff, 0x7fffffff,2)
+ TEST_D_DDI_PSW(madd, 2, 0xffff7fff, 0x60000b80, 0xffff8001, 0x7fffffff,2)
+ TEST_D_DDD_PSW(madds.u, 3, 0xffffffff, 0x60000b80, 0x00000000, 0x80000000, \
+ 0x80000000)
+
+ TEST_PASSFAIL
+