aboutsummaryrefslogtreecommitdiff
path: root/libpcsxcore/gte_arm.S
diff options
context:
space:
mode:
authorgizmo982015-01-29 18:08:24 +0100
committernotaz2015-01-31 21:30:42 +0200
commitf6b23854c4ce7beb652b705cfa7630fe6629d9ce (patch)
treed2069c319156993e38877b7e7a513b091bbc2dd9 /libpcsxcore/gte_arm.S
parent332a45333682fdbc2070af1f0acdc52b64e068af (diff)
downloadpcsx_rearmed-f6b23854c4ce7beb652b705cfa7630fe6629d9ce.tar.gz
pcsx_rearmed-f6b23854c4ce7beb652b705cfa7630fe6629d9ce.tar.bz2
pcsx_rearmed-f6b23854c4ce7beb652b705cfa7630fe6629d9ce.zip
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
Diffstat (limited to 'libpcsxcore/gte_arm.S')
-rw-r--r--libpcsxcore/gte_arm.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/libpcsxcore/gte_arm.S b/libpcsxcore/gte_arm.S
index 3ef876d..d6fc1ab 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