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_Copy4x4_unsafe 290c1bc742181ded4930842b46e9507372f0b1b963James DongarmVCM4P10_InterpolateLuma_Copy4x4_unsafe: 300c1bc742181ded4930842b46e9507372f0b1b963James Dong PUSH {r4-r6,lr} 310c1bc742181ded4930842b46e9507372f0b1b963James Dong AND r12,r0,#3 320c1bc742181ded4930842b46e9507372f0b1b963James Dong BIC r0,r0,#3 330c1bc742181ded4930842b46e9507372f0b1b963James Dong ADD pc,pc,r12,LSL #2 340c1bc742181ded4930842b46e9507372f0b1b963James Dong NOP 350c1bc742181ded4930842b46e9507372f0b1b963James Dong B Copy4x4Align0 360c1bc742181ded4930842b46e9507372f0b1b963James Dong B Copy4x4Align1 370c1bc742181ded4930842b46e9507372f0b1b963James Dong B Copy4x4Align2 380c1bc742181ded4930842b46e9507372f0b1b963James Dong B Copy4x4Align3 390c1bc742181ded4930842b46e9507372f0b1b963James DongCopy4x4Align0: 400c1bc742181ded4930842b46e9507372f0b1b963James Dong LDR r4,[r0],r1 410c1bc742181ded4930842b46e9507372f0b1b963James Dong LDR r5,[r0],r1 420c1bc742181ded4930842b46e9507372f0b1b963James Dong STR r4,[r2],r3 430c1bc742181ded4930842b46e9507372f0b1b963James Dong LDR r8,[r0],r1 440c1bc742181ded4930842b46e9507372f0b1b963James Dong STR r5,[r2],r3 450c1bc742181ded4930842b46e9507372f0b1b963James Dong LDR r9,[r0],r1 460c1bc742181ded4930842b46e9507372f0b1b963James Dong STR r8,[r2],r3 470c1bc742181ded4930842b46e9507372f0b1b963James Dong STR r9,[r2],r3 480c1bc742181ded4930842b46e9507372f0b1b963James Dong B Copy4x4End 490c1bc742181ded4930842b46e9507372f0b1b963James DongCopy4x4Align1: 500c1bc742181ded4930842b46e9507372f0b1b963James Dong LDR r5,[r0,#4] 510c1bc742181ded4930842b46e9507372f0b1b963James Dong LDR r4,[r0],r1 520c1bc742181ded4930842b46e9507372f0b1b963James Dong LDR r9,[r0,#4] 530c1bc742181ded4930842b46e9507372f0b1b963James Dong LDR r8,[r0],r1 540c1bc742181ded4930842b46e9507372f0b1b963James Dong LSR r4,r4,#8 550c1bc742181ded4930842b46e9507372f0b1b963James Dong ORR r4,r4,r5,LSL #24 560c1bc742181ded4930842b46e9507372f0b1b963James Dong STR r4,[r2],r3 570c1bc742181ded4930842b46e9507372f0b1b963James Dong LSR r8,r8,#8 580c1bc742181ded4930842b46e9507372f0b1b963James Dong ORR r8,r8,r9,LSL #24 590c1bc742181ded4930842b46e9507372f0b1b963James Dong LDR r5,[r0,#4] 600c1bc742181ded4930842b46e9507372f0b1b963James Dong LDR r4,[r0],r1 610c1bc742181ded4930842b46e9507372f0b1b963James Dong STR r8,[r2],r3 620c1bc742181ded4930842b46e9507372f0b1b963James Dong LDR r9,[r0,#4] 630c1bc742181ded4930842b46e9507372f0b1b963James Dong LDR r8,[r0],r1 640c1bc742181ded4930842b46e9507372f0b1b963James Dong LSR r4,r4,#8 650c1bc742181ded4930842b46e9507372f0b1b963James Dong ORR r4,r4,r5,LSL #24 660c1bc742181ded4930842b46e9507372f0b1b963James Dong STR r4,[r2],r3 670c1bc742181ded4930842b46e9507372f0b1b963James Dong LSR r8,r8,#8 680c1bc742181ded4930842b46e9507372f0b1b963James Dong ORR r8,r8,r9,LSL #24 690c1bc742181ded4930842b46e9507372f0b1b963James Dong STR r8,[r2],r3 700c1bc742181ded4930842b46e9507372f0b1b963James Dong B Copy4x4End 710c1bc742181ded4930842b46e9507372f0b1b963James DongCopy4x4Align2: 720c1bc742181ded4930842b46e9507372f0b1b963James Dong LDR r5,[r0,#4] 730c1bc742181ded4930842b46e9507372f0b1b963James Dong LDR r4,[r0],r1 740c1bc742181ded4930842b46e9507372f0b1b963James Dong LDR r9,[r0,#4] 750c1bc742181ded4930842b46e9507372f0b1b963James Dong LDR r8,[r0],r1 760c1bc742181ded4930842b46e9507372f0b1b963James Dong LSR r4,r4,#16 770c1bc742181ded4930842b46e9507372f0b1b963James Dong ORR r4,r4,r5,LSL #16 780c1bc742181ded4930842b46e9507372f0b1b963James Dong STR r4,[r2],r3 790c1bc742181ded4930842b46e9507372f0b1b963James Dong LSR r8,r8,#16 800c1bc742181ded4930842b46e9507372f0b1b963James Dong ORR r8,r8,r9,LSL #16 810c1bc742181ded4930842b46e9507372f0b1b963James Dong STR r8,[r2],r3 820c1bc742181ded4930842b46e9507372f0b1b963James Dong LDR r5,[r0,#4] 830c1bc742181ded4930842b46e9507372f0b1b963James Dong LDR r4,[r0],r1 840c1bc742181ded4930842b46e9507372f0b1b963James Dong LDR r9,[r0,#4] 850c1bc742181ded4930842b46e9507372f0b1b963James Dong LDR r8,[r0],r1 860c1bc742181ded4930842b46e9507372f0b1b963James Dong LSR r4,r4,#16 870c1bc742181ded4930842b46e9507372f0b1b963James Dong ORR r4,r4,r5,LSL #16 880c1bc742181ded4930842b46e9507372f0b1b963James Dong STR r4,[r2],r3 890c1bc742181ded4930842b46e9507372f0b1b963James Dong LSR r8,r8,#16 900c1bc742181ded4930842b46e9507372f0b1b963James Dong ORR r8,r8,r9,LSL #16 910c1bc742181ded4930842b46e9507372f0b1b963James Dong STR r8,[r2],r3 920c1bc742181ded4930842b46e9507372f0b1b963James Dong B Copy4x4End 930c1bc742181ded4930842b46e9507372f0b1b963James DongCopy4x4Align3: 940c1bc742181ded4930842b46e9507372f0b1b963James Dong LDR r5,[r0,#4] 950c1bc742181ded4930842b46e9507372f0b1b963James Dong LDR r4,[r0],r1 960c1bc742181ded4930842b46e9507372f0b1b963James Dong LDR r9,[r0,#4] 970c1bc742181ded4930842b46e9507372f0b1b963James Dong LDR r8,[r0],r1 980c1bc742181ded4930842b46e9507372f0b1b963James Dong LSR r4,r4,#24 990c1bc742181ded4930842b46e9507372f0b1b963James Dong ORR r4,r4,r5,LSL #8 1000c1bc742181ded4930842b46e9507372f0b1b963James Dong STR r4,[r2],r3 1010c1bc742181ded4930842b46e9507372f0b1b963James Dong LSR r8,r8,#24 1020c1bc742181ded4930842b46e9507372f0b1b963James Dong ORR r8,r8,r9,LSL #8 1030c1bc742181ded4930842b46e9507372f0b1b963James Dong STR r8,[r2],r3 1040c1bc742181ded4930842b46e9507372f0b1b963James Dong LDR r5,[r0,#4] 1050c1bc742181ded4930842b46e9507372f0b1b963James Dong LDR r4,[r0],r1 1060c1bc742181ded4930842b46e9507372f0b1b963James Dong LDR r9,[r0,#4] 1070c1bc742181ded4930842b46e9507372f0b1b963James Dong LDR r8,[r0],r1 1080c1bc742181ded4930842b46e9507372f0b1b963James Dong LSR r4,r4,#24 1090c1bc742181ded4930842b46e9507372f0b1b963James Dong ORR r4,r4,r5,LSL #8 1100c1bc742181ded4930842b46e9507372f0b1b963James Dong STR r4,[r2],r3 1110c1bc742181ded4930842b46e9507372f0b1b963James Dong LSR r8,r8,#24 1120c1bc742181ded4930842b46e9507372f0b1b963James Dong ORR r8,r8,r9,LSL #8 1130c1bc742181ded4930842b46e9507372f0b1b963James Dong STR r8,[r2],r3 1140c1bc742181ded4930842b46e9507372f0b1b963James DongCopy4x4End: 1150c1bc742181ded4930842b46e9507372f0b1b963James Dong POP {r4-r6,pc} 1160c1bc742181ded4930842b46e9507372f0b1b963James Dong 1170c1bc742181ded4930842b46e9507372f0b1b963James Dong .end 1180c1bc742181ded4930842b46e9507372f0b1b963James Dong 119