summary refs log tree commit diff stats
path: root/tests/tcg/xtensa/test_clamps.S
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tcg/xtensa/test_clamps.S')
-rw-r--r--tests/tcg/xtensa/test_clamps.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/tcg/xtensa/test_clamps.S b/tests/tcg/xtensa/test_clamps.S
index 3efabfd9d3..d9b2c38ac1 100644
--- a/tests/tcg/xtensa/test_clamps.S
+++ b/tests/tcg/xtensa/test_clamps.S
@@ -2,6 +2,8 @@
 
 test_suite clamps
 
+#if XCHAL_HAVE_CLAMPS
+
 test clamps
     movi    a2, 0
     movi    a3, 0
@@ -39,4 +41,6 @@ test clamps
     assert  eq, a3, a2
 test_end
 
+#endif
+
 test_suite_end