10d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar///*****************************************************************************
20d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//*
30d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//* Copyright (C) 2012 Ittiam Systems Pvt Ltd, Bangalore
40d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//*
50d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//* Licensed under the Apache License, Version 2.0 (the "License");
60d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//* you may not use this file except in compliance with the License.
70d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//* You may obtain a copy of the License at:
80d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//*
90d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//* http://www.apache.org/licenses/LICENSE-2.0
100d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//*
110d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//* Unless required by applicable law or agreed to in writing, software
120d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//* distributed under the License is distributed on an "AS IS" BASIS,
130d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
140d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//* See the License for the specific language governing permissions and
150d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//* limitations under the License.
160d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//*
170d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//*****************************************************************************/
180d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar///**
190d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar///*******************************************************************************
200d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//* //file
210d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//*  ihevcd_itrans_recon_dc_chroma.s
220d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//*
230d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//* //brief
240d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//*  contains function definitions itrans and recon for dc only case
250d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//*
260d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//* //author
270d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//*  ittiam
280d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//*
290d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//* //par list of functions:
300d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//*
310d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//*
320d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//* //remarks
330d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//*  none
340d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//*
350d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//*******************************************************************************/
360d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
370d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
380d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar.text
390d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar.include "ihevc_neon_macros.s"
400d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
410d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
420d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar.globl ihevcd_itrans_recon_dc_chroma_av8
430d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
440d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar.type ihevcd_itrans_recon_dc_chroma_av8, %function
450d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
460d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakarihevcd_itrans_recon_dc_chroma_av8:
470d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
480d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//void ihevcd_itrans_recon_dc_chroma(uword8 *pu1_pred,
490d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//                            uword8 *pu1_dst,
500d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//                            word32 pred_strd,
510d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//                            word32 dst_strd,
520d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//                            word32 log2_trans_size,
530d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//                            word16 i2_coeff_value)
540d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
550d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//x0:pu1_pred
560d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//x1:pu1_dest
570d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//x2:pred_strd
580d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar//x3:dst_strd
590d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
600d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
610d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
620d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    push_v_regs
630d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    stp         x19, x20,[sp,#-16]!
640d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
650d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    sxth        x5, w5 // since the argument is of word16, sign extend to x register
660d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
670d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    mov         x10,#1
680d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    lsl         x4,x10,x4                   //    trans_size = (1 << log2_trans_size)//
690d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    mov         x6,#64                      // 1 << (shift1 - 1)//
700d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    mov         x7,#2048                    // 1<<(shift2-1)
710d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
720d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    add         x8,x6,x5,lsl #6
730d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    asr         x20, x8, #7
740d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    mov         x19,#32767
750d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    cmp         x20,x19
760d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    blt         lbl36
770d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    mov         x8,#32767
780d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    b           lbl36_1
790d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakarlbl36:
800d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    mov         x19,#-32768
810d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    cmp         x20,x19
820d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    csel        x8, x19, x20, lt
830d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakarlbl36_1:
840d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
850d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    add         x5,x7,x8,lsl #6
860d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    asr         x20, x5, #12
870d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    mov         x19,#32767
880d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    cmp         x20,x19
890d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    blt         lbl38
900d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    mov         x6,#32767
910d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    b           lbl38_1
920d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakarlbl38:
930d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    mov         x19,#-32768
940d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    cmp         x20,x19
950d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    csel        x6, x19, x20, lt
960d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakarlbl38_1:
970d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
980d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    mov         x9,x4
990d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    mov         x8,x4
1000d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
1010d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    // x6 has the dc_value
1020d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    // x4 has the trans_size value
1030d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    // x8 has the row value
1040d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    // x9 has the col value
1050d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    dup         v0.8h,w6
1060d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    cmp         x4,#4
1070d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    beq         row_loop_4chroma
1080d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
1090d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
1100d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakarrow_loop_chroma:
1110d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    mov         x9,x4
1120d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
1130d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
1140d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakarcol_loop_chroma:
1150d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
1160d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    mov         x7,x0
1170d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    ld2         {v2.8b, v3.8b},[x7],x2
1180d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    ld2         {v4.8b, v5.8b},[x7],x2
1190d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    ld2         {v6.8b, v7.8b},[x7],x2
1200d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    ld2         {v8.8b, v9.8b},[x7],x2
1210d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
1220d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    ld2         {v10.8b, v11.8b},[x7],x2
1230d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    ld2         {v12.8b, v13.8b},[x7],x2
1240d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    ld2         {v14.8b, v15.8b},[x7],x2
1250d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    ld2         {v16.8b, v17.8b},[x7]
1260d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
1270d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    add         x0,x0,#16
1280d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
1290d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
1300d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    uaddw       v30.8h,  v0.8h ,  v2.8b
1310d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    uaddw       v28.8h,  v0.8h ,  v4.8b
1320d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    uaddw       v26.8h,  v0.8h ,  v6.8b
1330d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    uaddw       v24.8h,  v0.8h ,  v8.8b
1340d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    uaddw       v22.8h,  v0.8h ,  v10.8b
1350d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    uaddw       v20.8h,  v0.8h ,  v12.8b
1360d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    uaddw       v18.8h,  v0.8h ,  v14.8b
1370d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
1380d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
1390d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    mov         x11,x1
1400d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    sqxtun      v2.8b, v30.8h
1410d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    sqxtun      v4.8b, v28.8h
1420d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    sqxtun      v6.8b, v26.8h
1430d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    sqxtun      v8.8b, v24.8h
1440d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
1450d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    uaddw       v30.8h,  v0.8h ,  v16.8b
1460d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
1470d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    sqxtun      v10.8b, v22.8h
1480d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    sqxtun      v12.8b, v20.8h
1490d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    sqxtun      v14.8b, v18.8h
1500d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    sqxtun      v16.8b, v30.8h
1510d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
1520d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    st2         {v2.8b, v3.8b},[x11],x3
1530d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    st2         {v4.8b, v5.8b},[x11],x3
1540d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    st2         {v6.8b, v7.8b},[x11],x3
1550d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    st2         {v8.8b, v9.8b},[x11],x3
1560d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
1570d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    st2         {v10.8b, v11.8b},[x11],x3
1580d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    st2         {v12.8b, v13.8b},[x11],x3
1590d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    st2         {v14.8b, v15.8b},[x11],x3
1600d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    st2         {v16.8b, v17.8b},[x11]
1610d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
1620d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    add         x1,x1,#16
1630d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
1640d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    subs        x9,x9,#8
1650d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    bgt         col_loop_chroma
1660d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
1670d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    subs        x8,x8,#8
1680d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
1690d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    add         x0,x0,x2,lsl #3
1700d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    add         x1,x1,x3,lsl #3
1710d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    sub         x0,x0,x4,lsl #1
1720d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    sub         x1,x1,x4,lsl #1
1730d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    bgt         row_loop_chroma
1740d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    b           end_loops_chroma
1750d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
1760d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
1770d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakarrow_loop_4chroma:
1780d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    mov         x9,x10
1790d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
1800d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
1810d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakarcol_loop_4chroma:
1820d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
1830d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
1840d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    ld2         {v2.8b, v3.8b},[x0],x2
1850d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    ld2         {v4.8b, v5.8b},[x0],x2
1860d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    ld2         {v6.8b, v7.8b},[x0],x2
1870d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    ld2         {v8.8b, v9.8b},[x0]
1880d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
1890d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
1900d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
1910d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
1920d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    uaddw       v30.8h,  v0.8h ,  v2.8b
1930d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    uaddw       v28.8h,  v0.8h ,  v4.8b
1940d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    uaddw       v26.8h,  v0.8h ,  v6.8b
1950d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    uaddw       v24.8h,  v0.8h ,  v8.8b
1960d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
1970d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
1980d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
1990d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    sqxtun      v31.8b, v30.8h
2000d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    sqxtun      v29.8b, v28.8h
2010d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    sqxtun      v27.8b, v26.8h
2020d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    sqxtun      v25.8b, v24.8h
2030d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
2040d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
2050d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    zip1        v2.8b, v31.8b, v3.8b
2060d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    zip1        v4.8b, v29.8b, v5.8b
2070d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    zip1        v6.8b, v27.8b, v7.8b
2080d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    zip1        v8.8b, v25.8b, v9.8b
2090d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
2100d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    st1         {v2.2s},[x1],x3
2110d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    st1         {v4.2s},[x1],x3
2120d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    st1         {v6.2s},[x1],x3
2130d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    st1         {v8.2s},[x1]
2140d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
2150d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakarend_loops_chroma:
2160d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    ldp         x19, x20,[sp],#16
2170d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    pop_v_regs
2180d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar    ret
2190d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
2200d8951cef4b1a1dbf4ff5ba3e8796cf1d4503098Harish Mahendrakar
221