From: gizmo98 Date: Thu, 29 Jan 2015 17:08:24 +0000 (+0100) Subject: gte_arm.S: Use ARMv6 if possible X-Git-Tag: r22~13 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6b23854c4ce7beb652b705cfa7630fe6629d9ce;p=pcsx_rearmed.git 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 --- 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