aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/sparc/fpackfix.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/sparc/fpackfix.c')
-rw-r--r--gcc/testsuite/gcc.target/sparc/fpackfix.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/sparc/fpackfix.c b/gcc/testsuite/gcc.target/sparc/fpackfix.c
new file mode 100644
index 00000000000..815bec0cf38
--- /dev/null
+++ b/gcc/testsuite/gcc.target/sparc/fpackfix.c
@@ -0,0 +1,10 @@
+/* { dg-do compile } */
+/* { dg-options "-mcpu=ultrasparc -mvis" } */
+typedef int vec32 __attribute__((vector_size(8)));
+typedef short vec16 __attribute__((vector_size(4)));
+
+vec16 foo (vec32 a) {
+ return __builtin_vis_fpackfix (a);
+}
+
+/* { dg-final { scan-assembler "fpackfix\t%" } } */