summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/ppc-no-altivec.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/ppc-no-altivec.c')
-rw-r--r--clang/test/CodeGen/ppc-no-altivec.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/CodeGen/ppc-no-altivec.c b/clang/test/CodeGen/ppc-no-altivec.c
new file mode 100644
index 00000000000..1830f268dd3
--- /dev/null
+++ b/clang/test/CodeGen/ppc-no-altivec.c
@@ -0,0 +1,12 @@
+// REQUIRES: ppc64-registered-target
+// RUN: %clang_cc1 %s -triple=powerpc64-unknown-linux-gnu -S -o - | FileCheck %s
+
+typedef char v8qi __attribute__((vector_size (8)));
+
+extern v8qi x, y;
+
+v8qi foo (void) {
+ return x + y;
+}
+
+// CHECK-NOT: lvx
OpenPOWER on IntegriCloud