10c1bc742181ded4930842b46e9507372f0b1b963James Dong/*
278e52bfac041d71ce53b5b13c2abf78af742b09dLajos Molnar * Copyright (C) 2007-2008 ARM Limited
378e52bfac041d71ce53b5b13c2abf78af742b09dLajos Molnar *
478e52bfac041d71ce53b5b13c2abf78af742b09dLajos Molnar * Licensed under the Apache License, Version 2.0 (the "License");
578e52bfac041d71ce53b5b13c2abf78af742b09dLajos Molnar * you may not use this file except in compliance with the License.
678e52bfac041d71ce53b5b13c2abf78af742b09dLajos Molnar * You may obtain a copy of the License at
778e52bfac041d71ce53b5b13c2abf78af742b09dLajos Molnar *
878e52bfac041d71ce53b5b13c2abf78af742b09dLajos Molnar *      http://www.apache.org/licenses/LICENSE-2.0
978e52bfac041d71ce53b5b13c2abf78af742b09dLajos Molnar *
1078e52bfac041d71ce53b5b13c2abf78af742b09dLajos Molnar * Unless required by applicable law or agreed to in writing, software
1178e52bfac041d71ce53b5b13c2abf78af742b09dLajos Molnar * distributed under the License is distributed on an "AS IS" BASIS,
1278e52bfac041d71ce53b5b13c2abf78af742b09dLajos Molnar * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1378e52bfac041d71ce53b5b13c2abf78af742b09dLajos Molnar * See the License for the specific language governing permissions and
1478e52bfac041d71ce53b5b13c2abf78af742b09dLajos Molnar * limitations under the License.
1578e52bfac041d71ce53b5b13c2abf78af742b09dLajos Molnar *
1678e52bfac041d71ce53b5b13c2abf78af742b09dLajos Molnar */
1778e52bfac041d71ce53b5b13c2abf78af742b09dLajos Molnar/*
180c1bc742181ded4930842b46e9507372f0b1b963James Dong *
190c1bc742181ded4930842b46e9507372f0b1b963James Dong */
200c1bc742181ded4930842b46e9507372f0b1b963James Dong
210c1bc742181ded4930842b46e9507372f0b1b963James Dong    .eabi_attribute 24, 1
220c1bc742181ded4930842b46e9507372f0b1b963James Dong    .eabi_attribute 25, 1
230c1bc742181ded4930842b46e9507372f0b1b963James Dong
240c1bc742181ded4930842b46e9507372f0b1b963James Dong    .arm
250c1bc742181ded4930842b46e9507372f0b1b963James Dong    .fpu neon
260c1bc742181ded4930842b46e9507372f0b1b963James Dong    .text
270c1bc742181ded4930842b46e9507372f0b1b963James Dong
280c1bc742181ded4930842b46e9507372f0b1b963James Dong    .global armVCM4P10_InterpolateLuma_HorDiagCopy_unsafe
290c1bc742181ded4930842b46e9507372f0b1b963James Dong    .func   armVCM4P10_InterpolateLuma_HorDiagCopy_unsafe
300c1bc742181ded4930842b46e9507372f0b1b963James DongarmVCM4P10_InterpolateLuma_HorDiagCopy_unsafe:
310c1bc742181ded4930842b46e9507372f0b1b963James Dong    PUSH     {r4-r6,lr}
320c1bc742181ded4930842b46e9507372f0b1b963James Dong    MOV      lr,#4
330c1bc742181ded4930842b46e9507372f0b1b963James Dong    LDR      r6, =0xfe00fe0
340c1bc742181ded4930842b46e9507372f0b1b963James Dong    LDR      r12, =0xff00ff
350c1bc742181ded4930842b46e9507372f0b1b963James DongLoopStart1:
360c1bc742181ded4930842b46e9507372f0b1b963James Dong    LDR      r11,[r0,#0xc]
370c1bc742181ded4930842b46e9507372f0b1b963James Dong    LDR      r10,[r0,#8]
380c1bc742181ded4930842b46e9507372f0b1b963James Dong    LDR      r5,[r0,#4]
390c1bc742181ded4930842b46e9507372f0b1b963James Dong    LDR      r4,[r0],r1
400c1bc742181ded4930842b46e9507372f0b1b963James Dong    UQSUB16  r11,r11,r6
410c1bc742181ded4930842b46e9507372f0b1b963James Dong    UQSUB16  r10,r10,r6
420c1bc742181ded4930842b46e9507372f0b1b963James Dong    UQSUB16  r5,r5,r6
430c1bc742181ded4930842b46e9507372f0b1b963James Dong    UQSUB16  r4,r4,r6
440c1bc742181ded4930842b46e9507372f0b1b963James Dong    USAT16   r11,#13,r11
450c1bc742181ded4930842b46e9507372f0b1b963James Dong    USAT16   r10,#13,r10
460c1bc742181ded4930842b46e9507372f0b1b963James Dong    USAT16   r5,#13,r5
470c1bc742181ded4930842b46e9507372f0b1b963James Dong    USAT16   r4,#13,r4
480c1bc742181ded4930842b46e9507372f0b1b963James Dong    AND      r11,r12,r11,LSR #5
490c1bc742181ded4930842b46e9507372f0b1b963James Dong    AND      r10,r12,r10,LSR #5
500c1bc742181ded4930842b46e9507372f0b1b963James Dong    AND      r5,r12,r5,LSR #5
510c1bc742181ded4930842b46e9507372f0b1b963James Dong    AND      r4,r12,r4,LSR #5
520c1bc742181ded4930842b46e9507372f0b1b963James Dong    ORR      r11,r10,r11,LSL #8
530c1bc742181ded4930842b46e9507372f0b1b963James Dong    ORR      r10,r4,r5,LSL #8
540c1bc742181ded4930842b46e9507372f0b1b963James Dong    SUBS     lr,lr,#1
550c1bc742181ded4930842b46e9507372f0b1b963James Dong    STRD     r10,r11,[r7],#8
560c1bc742181ded4930842b46e9507372f0b1b963James Dong    BGT      LoopStart1
570c1bc742181ded4930842b46e9507372f0b1b963James Dong    SUB      r0,r7,#0x20
580c1bc742181ded4930842b46e9507372f0b1b963James Dong    MOV      r1,#8
590c1bc742181ded4930842b46e9507372f0b1b963James Dong    POP      {r4-r6,pc}
600c1bc742181ded4930842b46e9507372f0b1b963James Dong    .endfunc
610c1bc742181ded4930842b46e9507372f0b1b963James Dong
620c1bc742181ded4930842b46e9507372f0b1b963James Dong    .global armVCM4P10_InterpolateLuma_VerDiagCopy_unsafe
630c1bc742181ded4930842b46e9507372f0b1b963James Dong    .func   armVCM4P10_InterpolateLuma_VerDiagCopy_unsafe
640c1bc742181ded4930842b46e9507372f0b1b963James DongarmVCM4P10_InterpolateLuma_VerDiagCopy_unsafe:
650c1bc742181ded4930842b46e9507372f0b1b963James Dong    PUSH     {r4-r6,lr}
660c1bc742181ded4930842b46e9507372f0b1b963James Dong    LDR      r6, =0xfe00fe0
670c1bc742181ded4930842b46e9507372f0b1b963James Dong    LDR      r12, =0xff00ff
680c1bc742181ded4930842b46e9507372f0b1b963James Dong    MOV      lr,#2
690c1bc742181ded4930842b46e9507372f0b1b963James DongLoopStart:
700c1bc742181ded4930842b46e9507372f0b1b963James Dong    LDR      r11,[r0,#0xc]
710c1bc742181ded4930842b46e9507372f0b1b963James Dong    LDR      r10,[r0,#8]
720c1bc742181ded4930842b46e9507372f0b1b963James Dong    LDR      r5,[r0,#4]
730c1bc742181ded4930842b46e9507372f0b1b963James Dong    LDR      r4,[r0],r1
740c1bc742181ded4930842b46e9507372f0b1b963James Dong    UQSUB16  r11,r11,r6
750c1bc742181ded4930842b46e9507372f0b1b963James Dong    UQSUB16  r10,r10,r6
760c1bc742181ded4930842b46e9507372f0b1b963James Dong    UQSUB16  r5,r5,r6
770c1bc742181ded4930842b46e9507372f0b1b963James Dong    UQSUB16  r4,r4,r6
780c1bc742181ded4930842b46e9507372f0b1b963James Dong    USAT16   r11,#13,r11
790c1bc742181ded4930842b46e9507372f0b1b963James Dong    USAT16   r10,#13,r10
800c1bc742181ded4930842b46e9507372f0b1b963James Dong    USAT16   r5,#13,r5
810c1bc742181ded4930842b46e9507372f0b1b963James Dong    USAT16   r4,#13,r4
820c1bc742181ded4930842b46e9507372f0b1b963James Dong    AND      r11,r12,r11,LSR #5
830c1bc742181ded4930842b46e9507372f0b1b963James Dong    AND      r10,r12,r10,LSR #5
840c1bc742181ded4930842b46e9507372f0b1b963James Dong    AND      r5,r12,r5,LSR #5
850c1bc742181ded4930842b46e9507372f0b1b963James Dong    AND      r4,r12,r4,LSR #5
860c1bc742181ded4930842b46e9507372f0b1b963James Dong    ORR      r11,r10,r11,LSL #8
870c1bc742181ded4930842b46e9507372f0b1b963James Dong    ORR      r10,r4,r5,LSL #8
880c1bc742181ded4930842b46e9507372f0b1b963James Dong    PKHBT    r4,r10,r11,LSL #16
890c1bc742181ded4930842b46e9507372f0b1b963James Dong    STR      r4,[r7],#8
900c1bc742181ded4930842b46e9507372f0b1b963James Dong    PKHTB    r5,r11,r10,ASR #16
910c1bc742181ded4930842b46e9507372f0b1b963James Dong    STR      r5,[r7],#-4
920c1bc742181ded4930842b46e9507372f0b1b963James Dong    LDR      r11,[r0,#0xc]
930c1bc742181ded4930842b46e9507372f0b1b963James Dong    LDR      r10,[r0,#8]
940c1bc742181ded4930842b46e9507372f0b1b963James Dong    LDR      r5,[r0,#4]
950c1bc742181ded4930842b46e9507372f0b1b963James Dong    LDR      r4,[r0],r1
960c1bc742181ded4930842b46e9507372f0b1b963James Dong    UQSUB16  r11,r11,r6
970c1bc742181ded4930842b46e9507372f0b1b963James Dong    UQSUB16  r10,r10,r6
980c1bc742181ded4930842b46e9507372f0b1b963James Dong    UQSUB16  r5,r5,r6
990c1bc742181ded4930842b46e9507372f0b1b963James Dong    UQSUB16  r4,r4,r6
1000c1bc742181ded4930842b46e9507372f0b1b963James Dong    USAT16   r11,#13,r11
1010c1bc742181ded4930842b46e9507372f0b1b963James Dong    USAT16   r10,#13,r10
1020c1bc742181ded4930842b46e9507372f0b1b963James Dong    USAT16   r5,#13,r5
1030c1bc742181ded4930842b46e9507372f0b1b963James Dong    USAT16   r4,#13,r4
1040c1bc742181ded4930842b46e9507372f0b1b963James Dong    AND      r11,r12,r11,LSR #5
1050c1bc742181ded4930842b46e9507372f0b1b963James Dong    AND      r10,r12,r10,LSR #5
1060c1bc742181ded4930842b46e9507372f0b1b963James Dong    AND      r5,r12,r5,LSR #5
1070c1bc742181ded4930842b46e9507372f0b1b963James Dong    AND      r4,r12,r4,LSR #5
1080c1bc742181ded4930842b46e9507372f0b1b963James Dong    ORR      r11,r10,r11,LSL #8
1090c1bc742181ded4930842b46e9507372f0b1b963James Dong    ORR      r10,r4,r5,LSL #8
1100c1bc742181ded4930842b46e9507372f0b1b963James Dong    PKHBT    r4,r10,r11,LSL #16
1110c1bc742181ded4930842b46e9507372f0b1b963James Dong    SUBS     lr,lr,#1
1120c1bc742181ded4930842b46e9507372f0b1b963James Dong    STR      r4,[r7],#8
1130c1bc742181ded4930842b46e9507372f0b1b963James Dong    PKHTB    r5,r11,r10,ASR #16
1140c1bc742181ded4930842b46e9507372f0b1b963James Dong    STR      r5,[r7],#4
1150c1bc742181ded4930842b46e9507372f0b1b963James Dong    BGT      LoopStart
1160c1bc742181ded4930842b46e9507372f0b1b963James Dong    SUB      r0,r7,#0x18
1170c1bc742181ded4930842b46e9507372f0b1b963James Dong    MOV      r1,#4
1180c1bc742181ded4930842b46e9507372f0b1b963James Dong    POP      {r4-r6,pc}
1190c1bc742181ded4930842b46e9507372f0b1b963James Dong    .endfunc
1200c1bc742181ded4930842b46e9507372f0b1b963James Dong
1210c1bc742181ded4930842b46e9507372f0b1b963James Dong    .end
1220c1bc742181ded4930842b46e9507372f0b1b963James Dong
123