Debian Codegraph @

media_driver/agnostic/gen11_icllp/vp/kernel_free/Source/Compute_Lumakey.asm

raw
1 /*
2 * Copyright (c) 2017, Intel Corporation
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included
12 * in all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
18 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20 * OTHER DEALINGS IN THE SOFTWARE.
21 */
22
23 L0:
24 add (1|M0) a0.3<1>:w a0.3<0;1,0>:w -32:w
25 shl (16|M0) r15.0<1>:uw r2.25<0;1,0>:ub 0x8:uw
26 shl (16|M0) r14.0<1>:uw r2.24<0;1,0>:ub 0x8:uw
27 and (16|M0) r13.0<1>:uw r[a0.5]<16;16,1>:uw 0xFF00:uw
28 cmp (16|M0) (le)f0.0 null.0<1>:w r13.0<16;16,1>:uw r15.0<16;16,1>:uw
29 (f0.0) cmp (16|M0) (ge)f0.0 null.0<1>:w r13.0<16;16,1>:uw r14.0<16;16,1>:uw
30 not (1|M0) r17.0<1>:uw f0.0<0;1,0>:uw
31 and (1|M0) r[a0.3]<1>:uw r17.0<0;1,0>:uw r[a0.3]<0;1,0>:uw
32 and (16|M0) r13.0<1>:uw r[a0.5,32]<16;16,1>:uw 0xFF00:uw
33 cmp (16|M0) (le)f0.0 null.0<1>:w r13.0<16;16,1>:uw r15.0<16;16,1>:uw
34 (f0.0) cmp (16|M0) (ge)f0.0 null.0<1>:w r13.0<16;16,1>:uw r14.0<16;16,1>:uw
35 not (1|M0) r17.1<1>:uw f0.0<0;1,0>:uw
36 and (1|M0) r[a0.3,2]<1>:uw r17.1<0;1,0>:uw r[a0.3,2]<0;1,0>:uw
37 add (2|M0) a0.2<1>:ud a0.2<2;2,1>:ud r22.5<0;1,0>:ud
38 and (16|M0) r13.0<1>:uw r[a0.5]<16;16,1>:uw 0xFF00:uw
39 cmp (16|M0) (le)f0.0 null.0<1>:w r13.0<16;16,1>:uw r15.0<16;16,1>:uw
40 (f0.0) cmp (16|M0) (ge)f0.0 null.0<1>:w r13.0<16;16,1>:uw r14.0<16;16,1>:uw
41 not (1|M0) r17.2<1>:uw f0.0<0;1,0>:uw
42 and (1|M0) r[a0.3,4]<1>:uw r17.2<0;1,0>:uw r[a0.3,4]<0;1,0>:uw
43 and (16|M0) r13.0<1>:uw r[a0.5,32]<16;16,1>:uw 0xFF00:uw
44 cmp (16|M0) (le)f0.0 null.0<1>:w r13.0<16;16,1>:uw r15.0<16;16,1>:uw
45 (f0.0) cmp (16|M0) (ge)f0.0 null.0<1>:w r13.0<16;16,1>:uw r14.0<16;16,1>:uw
46 not (1|M0) r17.3<1>:uw f0.0<0;1,0>:uw
47 and (1|M0) r[a0.3,6]<1>:uw r17.3<0;1,0>:uw r[a0.3,6]<0;1,0>:uw
48 add (2|M0) a0.2<1>:ud a0.2<2;2,1>:ud -r22.5<0;1,0>:ud