From f6b23854c4ce7beb652b705cfa7630fe6629d9ce Mon Sep 17 00:00:00 2001 From: gizmo98 Date: Thu, 29 Jan 2015 18:08:24 +0100 Subject: [PATCH] gte_arm.S: Use ARMv6 if possible Replace HAVE_ARMv7 with HAVE_ARMv6 if the instructions are supported by ARMv6. ssat, usat and sxth are present under ARMv6: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0473k/dom1361289925707.html --- libpcsxcore/gte_arm.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libpcsxcore/gte_arm.S b/libpcsxcore/gte_arm.S index 3ef876dd..d6fc1ab8 100644 --- a/libpcsxcore/gte_arm.S +++ b/libpcsxcore/gte_arm.S @@ -11,7 +11,7 @@ .align 2 .macro sgnxt16 rd rs -#ifdef HAVE_ARMV7 +#ifdef HAVE_ARMV6 sxth \rd, \rs #else lsl \rd, \rs, #16 @@ -28,7 +28,7 @@ .endm .macro ssatx rd wr bit -#ifdef HAVE_ARMV7 +#ifdef HAVE_ARMV6 ssat \rd, #\bit, \rd #else cmp \rd, \wr @@ -52,7 +52,7 @@ .endm .macro usat16_ rd rs -#ifdef HAVE_ARMV7 +#ifdef HAVE_ARMV6 usat \rd, #16, \rs #else subs \rd, \rs, #0 -- 2.39.2