Debian Codegraph @

gcc/testsuite/gcc.target/powerpc/pr96139-c.c

raw
1 /* { dg-do run } */
2 /* { dg-options "-O2 -Wall -maltivec" } */
3 /* { dg-require-effective-target vmx_hw } */
4
5 /*
6 * Based on test created by sjmunroe for pr96139
7 */
8
9 #include <stdio.h>
10 #include <altivec.h>
11
12 volatile vector long long llfoo;
13
14 void
15 print_v2xint64_b () {
16 printf (" %016llx \n", llfoo[0]);
17 printf (" %016llx \n", llfoo[1]);
18 }
19
20 int
21 main() {
22 llfoo[0]=12345678;
23 llfoo[1]=34567890;
24 print_v2xint64_b();
25 return 0;
26 }