diff options
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/CodeGen/ppc-no-altivec.c | 12 |
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 |

