5 vector_fun (vector
unsigned int a
, vector
unsigned int b
)
8 a
= ((vector
unsigned int) vec_splat_u8(2));
9 b
= ((vector
unsigned int) vec_splat_u8(3));
18 vector
unsigned int y
;
19 vector
unsigned int x
;
20 vector
unsigned int z
;
23 /* This line may look unnecessary but we do need it, because we want to
24 have a line to do a next over (so that gdb refetches the registers)
25 and we don't want the code to change any vector registers.
26 The splat operations below modify the VRs,i
27 so we don't want to execute them yet. */
29 x
= ((vector
unsigned int) vec_splat_u8 (-2));
30 y
= ((vector
unsigned int) vec_splat_u8 (1));
32 z
= vector_fun (x
, y
);
35 x
= vec_add (x
, ((vector
unsigned int){5,6,7,8}));
36 z
= (vector
unsigned int) vec_splat_u8 ( -2);
38 z
= (vector
unsigned int) vec_cmpeq (x
,y
);
This page took 0.035704 seconds and 4 git commands to generate.