summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/pr96139-b.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/powerpc/pr96139-b.c')
-rw-r--r--gcc/testsuite/gcc.target/powerpc/pr96139-b.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/powerpc/pr96139-b.c b/gcc/testsuite/gcc.target/powerpc/pr96139-b.c
new file mode 100644
index 00000000000..19c1110d0b3
--- /dev/null
+++ b/gcc/testsuite/gcc.target/powerpc/pr96139-b.c
@@ -0,0 +1,32 @@
+/* { dg-do compile } */
+/* { dg-options "-O2 -Wall -m64" } */
+/* { dg-require-effective-target lp64 } */
+/* { dg-require-effective-target powerpc_altivec_ok } */
+
+#include <stdio.h>
+#include <altivec.h>
+
+void
+try_printing_longlong_a (
+ __vector signed char cval,
+ __vector signed int ival,
+ __vector signed long long int llval,
+ int x, int y, int z)
+{
+ printf (" %016llx \n", llval[x]);
+ printf (" %016x \n", ival[z]);
+ printf (" %c \n", cval[y]);
+}
+
+
+void
+try_printing_unsigned_longlong_a (
+ __vector unsigned char cval,
+ __vector unsigned int ival,
+ __vector unsigned long long int llval,
+ int x, int y, int z)
+{
+ printf (" %016llx \n", llval[x]);
+ printf (" %016x \n", ival[z]);
+ printf (" %c \n", cval[y]);
+}