File: cell_builtin-2.c

package info (click to toggle)
gcc-arm-none-eabi 15%3A8-2019-q3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 571,828 kB
  • sloc: ansic: 2,937,651; cpp: 881,644; ada: 597,189; makefile: 65,528; asm: 56,499; xml: 46,621; exp: 24,747; sh: 19,684; python: 7,256; pascal: 4,370; awk: 3,497; perl: 2,695; yacc: 316; ml: 285; f90: 234; lex: 198; objc: 194; haskell: 119
file content (48 lines) | stat: -rw-r--r-- 2,308 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } } */
/* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=cell" } } */
/* { dg-options "-O2 -maltivec -mcpu=cell" } */
/* { dg-final { scan-assembler-times "lvlxl" 19 } } */

#include <altivec.h>

typedef __vector signed char vsc;
typedef __vector signed short vss;
typedef __vector signed int vsi;
typedef __vector unsigned char vuc;
typedef __vector unsigned short vus;
typedef __vector unsigned int vui;
typedef __vector bool char vbc;
typedef __vector bool short vbs;
typedef __vector bool int vbi;
typedef __vector float vsf;
typedef __vector pixel vp;
typedef signed char sc;
typedef signed short ss;
typedef signed int si;
typedef signed long sl;
typedef unsigned char uc;
typedef unsigned short us;
typedef unsigned int ui;
typedef unsigned long ul;
typedef float sf;

vsc  lc2(long a, void *p)           { return __builtin_altivec_lvlxl (a,p); }
vsf  llxl01(long a, vsf *p)         { return __builtin_vec_lvlxl (a,p); }
vsf  llxl02(long a, sf *p)          { return __builtin_vec_lvlxl (a,p); }
vbi  llxl03(long a, vbi *p)         { return __builtin_vec_lvlxl (a,p); }
vsi  llxl04(long a, vsi *p)         { return __builtin_vec_lvlxl (a,p); }
vsi  llxl05(long a, si *p)          { return __builtin_vec_lvlxl (a,p); }
vui  llxl06(long a, vui *p)         { return __builtin_vec_lvlxl (a,p); }
vui  llxl07(long a, ui *p)          { return __builtin_vec_lvlxl (a,p); }
vbs  llxl08(long a, vbs *p)         { return __builtin_vec_lvlxl (a,p); }
vp   llxl09(long a, vp *p)          { return __builtin_vec_lvlxl (a,p); }
vss  llxl10(long a, vss *p)         { return __builtin_vec_lvlxl (a,p); }
vss  llxl11(long a, ss *p)          { return __builtin_vec_lvlxl (a,p); }
vus  llxl12(long a, vus *p)         { return __builtin_vec_lvlxl (a,p); }
vus  llxl13(long a, us *p)          { return __builtin_vec_lvlxl (a,p); }
vbc  llxl14(long a, vbc *p)         { return __builtin_vec_lvlxl (a,p); }
vsc  llxl15(long a, vsc *p)         { return __builtin_vec_lvlxl (a,p); }
vsc  llxl16(long a, sc *p)          { return __builtin_vec_lvlxl (a,p); }
vuc  llxl17(long a, vuc *p)         { return __builtin_vec_lvlxl (a,p); }
vuc  llxl18(long a, uc *p)          { return __builtin_vec_lvlxl (a,p); }