1 | // RUN: %clang_cc1 -triple powerpc64-unknown-unknown -target-feature +altivec -ffreestanding -emit-llvm -o - %s | FileCheck %s |
2 | // RUN: %clang_cc1 -triple powerpc64-unknown-unknown -target-feature +altivec -ffreestanding -emit-llvm -fno-lax-vector-conversions -o - %s | FileCheck %s |
3 | // RUN: %clang_cc1 -triple powerpc64-unknown-unknown -target-feature +altivec -ffreestanding -emit-llvm -x c++ -o - %s | FileCheck %s |
4 | |
5 | #include <altivec.h> |
6 | |
7 | // Verify that simply including <altivec.h> does not generate any code |
8 | // (i.e. all inline routines in the header are marked "static") |
9 | |
10 | // CHECK: target triple = "powerpc64- |
11 | // CHECK-NEXT: {{^$}} |
12 | // CHECK-NEXT: {{llvm\..*}} |
13 | |