~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/tools/testing/selftests/powerpc/include/vmx_asm.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0-or-later */
  2 /*
  3  * Copyright 2015, Cyril Bur, IBM Corp.
  4  */
  5 
  6 #include "basic_asm.h"
  7 
  8 /* POS MUST BE 16 ALIGNED! */
  9 #define PUSH_VMX(pos,reg) \
 10         li      reg,pos; \
 11         stvx    v20,reg,%r1; \
 12         addi    reg,reg,16; \
 13         stvx    v21,reg,%r1; \
 14         addi    reg,reg,16; \
 15         stvx    v22,reg,%r1; \
 16         addi    reg,reg,16; \
 17         stvx    v23,reg,%r1; \
 18         addi    reg,reg,16; \
 19         stvx    v24,reg,%r1; \
 20         addi    reg,reg,16; \
 21         stvx    v25,reg,%r1; \
 22         addi    reg,reg,16; \
 23         stvx    v26,reg,%r1; \
 24         addi    reg,reg,16; \
 25         stvx    v27,reg,%r1; \
 26         addi    reg,reg,16; \
 27         stvx    v28,reg,%r1; \
 28         addi    reg,reg,16; \
 29         stvx    v29,reg,%r1; \
 30         addi    reg,reg,16; \
 31         stvx    v30,reg,%r1; \
 32         addi    reg,reg,16; \
 33         stvx    v31,reg,%r1;
 34 
 35 /* POS MUST BE 16 ALIGNED! */
 36 #define POP_VMX(pos,reg) \
 37         li      reg,pos; \
 38         lvx     v20,reg,%r1; \
 39         addi    reg,reg,16; \
 40         lvx     v21,reg,%r1; \
 41         addi    reg,reg,16; \
 42         lvx     v22,reg,%r1; \
 43         addi    reg,reg,16; \
 44         lvx     v23,reg,%r1; \
 45         addi    reg,reg,16; \
 46         lvx     v24,reg,%r1; \
 47         addi    reg,reg,16; \
 48         lvx     v25,reg,%r1; \
 49         addi    reg,reg,16; \
 50         lvx     v26,reg,%r1; \
 51         addi    reg,reg,16; \
 52         lvx     v27,reg,%r1; \
 53         addi    reg,reg,16; \
 54         lvx     v28,reg,%r1; \
 55         addi    reg,reg,16; \
 56         lvx     v29,reg,%r1; \
 57         addi    reg,reg,16; \
 58         lvx     v30,reg,%r1; \
 59         addi    reg,reg,16; \
 60         lvx     v31,reg,%r1;
 61 
 62 /*
 63  * Careful this will 'clobber' vmx (by design)
 64  * Don't call this from C
 65  */
 66 FUNC_START(load_vmx)
 67         li      r5,0
 68         lvx     v20,r5,r3
 69         addi    r5,r5,16
 70         lvx     v21,r5,r3
 71         addi    r5,r5,16
 72         lvx     v22,r5,r3
 73         addi    r5,r5,16
 74         lvx     v23,r5,r3
 75         addi    r5,r5,16
 76         lvx     v24,r5,r3
 77         addi    r5,r5,16
 78         lvx     v25,r5,r3
 79         addi    r5,r5,16
 80         lvx     v26,r5,r3
 81         addi    r5,r5,16
 82         lvx     v27,r5,r3
 83         addi    r5,r5,16
 84         lvx     v28,r5,r3
 85         addi    r5,r5,16
 86         lvx     v29,r5,r3
 87         addi    r5,r5,16
 88         lvx     v30,r5,r3
 89         addi    r5,r5,16
 90         lvx     v31,r5,r3
 91         blr
 92 FUNC_END(load_vmx)
 93 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php