armVCM4P10_TransformResidual4x4_s.S revision 7ea582e1dbdd9a88b2105fbe29ed0ec92cbf70c6
1/*
2 * Copyright (C) 2007-2008 ARM Limited
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 */
17/*
18 *
19 */
20
21    .eabi_attribute 24, 1
22    .eabi_attribute 25, 1
23
24    .arm
25    .fpu neon
26    .text
27
28    .global armVCM4P10_TransformResidual4x4
29armVCM4P10_TransformResidual4x4:
30    VPUSH    {d8}
31    VLD4.16  {d0,d1,d2,d3},[r1]
32    VMOV.I16 d4,#0
33    VADD.I16 d5,d0,d2
34    VSUB.I16 d6,d0,d2
35    VHADD.S16 d7,d1,d4
36    VHADD.S16 d8,d3,d4
37    VSUB.I16 d7,d7,d3
38    VADD.I16 d8,d1,d8
39    VADD.I16 d0,d5,d8
40    VADD.I16 d1,d6,d7
41    VSUB.I16 d2,d6,d7
42    VSUB.I16 d3,d5,d8
43    VTRN.16  d0,d1
44    VTRN.16  d2,d3
45    VTRN.32  q0,q1
46    VADD.I16 d5,d0,d2
47    VSUB.I16 d6,d0,d2
48    VHADD.S16 d7,d1,d4
49    VHADD.S16 d8,d3,d4
50    VSUB.I16 d7,d7,d3
51    VADD.I16 d8,d1,d8
52    VADD.I16 d0,d5,d8
53    VADD.I16 d1,d6,d7
54    VSUB.I16 d2,d6,d7
55    VSUB.I16 d3,d5,d8
56    VRSHR.S16 d0,d0,#6
57    VRSHR.S16 d1,d1,#6
58    VRSHR.S16 d2,d2,#6
59    VRSHR.S16 d3,d3,#6
60    VST1.16  {d0,d1,d2,d3},[r0]
61    VPOP     {d8}
62    BX       lr
63
64    .end
65
66