Debian Codegraph @

gcc/testsuite/gcc.target/powerpc/fold-vec-st-longlong.c

raw
1 /* Verify that overloaded built-ins for vec_st* with long long
2 inputs produce the right code. */
3
4 /* { dg-do compile { target lp64 } } */
5 /* { dg-options "-mvsx -O2" } */
6 /* { dg-additional-options "-mdejagnu-cpu=power8" { target { ! has_arch_pwr8 } } } */
7 /* { dg-require-effective-target powerpc_vsx } */
8
9 #include <altivec.h>
10
11 void
12 testst_1 (vector signed long long vsll1, int i1, vector signed long long * vsllp)
13 {
14 return vec_st(vsll1, i1, vsllp);
15 }
16 void
17 testst_3 (vector unsigned long long vull1, int i1, vector unsigned long long * vsllp)
18 {
19 return vec_st(vull1, i1, vsllp);
20 }
21 void
22 testst_5 (vector bool long long vbll1, int i1, vector bool long long * vbllp)
23 {
24 return vec_st(vbll1, i1, vbllp);
25 }
26 void
27 testst_cst1 (vector signed long long vsll1, int i1, vector signed long long * vsllp)
28 {
29 return vec_st(vsll1, 12, vsllp);
30 }
31 void
32 testst_cst3 (vector unsigned long long vull1, int i1, vector unsigned long long * vsllp)
33 {
34 return vec_st(vull1, 24, vsllp);
35 }
36 void
37 testst_cst5 (vector bool long long vbll1, int i1, vector bool long long * vbllp)
38 {
39 return vec_st(vbll1, 36, vbllp);
40 }
41
42 /* { dg-final { scan-assembler-times {\mstvx\M} 6 } } */