[committed] Fix previously latent bug in reorg affecting cris port
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr96139-b.c
blob0cb476517fa1f65026611bdb677b0a12e9757462
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -Wall -mvsx" } */
3 /* { dg-require-effective-target lp64 } */
4 /* { dg-require-effective-target powerpc_vsx } */
6 #include <stdio.h>
7 #include <altivec.h>
9 void
10 try_printing_longlong_a (
11 __vector signed char cval,
12 __vector signed int ival,
13 __vector signed long long int llval,
14 int x, int y, int z)
16 printf (" %016llx \n", llval[x]);
17 printf (" %016x \n", ival[z]);
18 printf (" %c \n", cval[y]);
22 void
23 try_printing_unsigned_longlong_a (
24 __vector unsigned char cval,
25 __vector unsigned int ival,
26 __vector unsigned long long int llval,
27 int x, int y, int z)
29 printf (" %016llx \n", llval[x]);
30 printf (" %016x \n", ival[z]);
31 printf (" %c \n", cval[y]);