X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=libpcsxcore%2Fgte_neon.S;fp=libpcsxcore%2Fgte_neon.s;h=9fafb27b0cbaffc2d01b2512c042cfc380dd1a5a;hp=470c3e35d49c84cc3237bcc84819e0d748f4e703;hb=c67af2ac1a8305c7377c7dda844257c5bc1545e3;hpb=61bc6d40b4f6f846a0ae1b73ceecdca893c14df4 diff --git a/libpcsxcore/gte_neon.s b/libpcsxcore/gte_neon.S similarity index 98% rename from libpcsxcore/gte_neon.s rename to libpcsxcore/gte_neon.S index 470c3e35..9fafb27b 100644 --- a/libpcsxcore/gte_neon.s +++ b/libpcsxcore/gte_neon.S @@ -17,6 +17,15 @@ scratch: .text .align 2 +.macro ldr_scratch rd +#ifndef __PIC__ + movw \rd, #:lower16:scratch + movt \rd, #:upper16:scratch +#else + ldr \rd, =scratch +#endif +.endm + @ XXX: gteMAC calc shouldn't be saturating, but it is here @ approximate gteMAC|123 flags @@ -139,8 +148,7 @@ gteRTPS_neon: push {r4-r6,lr} @ fmrx r4, fpscr @ vmrs? at least 40 cycle hit - movw r1, #:lower16:scratch - movt r1, #:upper16:scratch + ldr_scratch r1 mov r12, #0 vldmia r0, {d8} @ VXYZ(0) @@ -293,8 +301,7 @@ gteRTPS_neon: gteRTPT_neon: push {r4-r11,lr} - movw r1, #:lower16:scratch - movt r1, #:upper16:scratch + ldr_scratch r1 mov r12, #0 rtpx_preload