aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg/xtensa/test_rst0.S
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tcg/xtensa/test_rst0.S')
-rw-r--r--tests/tcg/xtensa/test_rst0.S8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/tcg/xtensa/test_rst0.S b/tests/tcg/xtensa/test_rst0.S
index a73366b120..143e90b401 100644
--- a/tests/tcg/xtensa/test_rst0.S
+++ b/tests/tcg/xtensa/test_rst0.S
@@ -54,6 +54,8 @@ test add
assert eq, a4, a6
test_end
+#if XCHAL_HAVE_ADDX
+
test addx2
movi a2, 0x137fa5a5
mov a3, a2
@@ -93,6 +95,8 @@ test addx8
assert eq, a4, a6
test_end
+#endif
+
test sub
movi a2, 0x137fa5a5
mov a3, a2
@@ -106,6 +110,8 @@ test sub
assert eq, a4, a6
test_end
+#if XCHAL_HAVE_ADDX
+
test subx2
movi a2, 0x137fa5a5
mov a3, a2
@@ -145,4 +151,6 @@ test subx8
assert eq, a4, a6
test_end
+#endif
+
test_suite_end