blob: 733ab5002a92a91f6c20532821964b427066fa75 [file] [log] [blame]
Eric Christopher758aad72017-03-21 22:06:18 +00001// 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
Ulrich Weigand9936f132012-10-31 18:17:07 +00004
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
Eric Christopherc168ef42015-04-03 01:27:02 +000010// CHECK: target triple = "powerpc64-
Rafael Espindola1368f8a2014-03-05 20:08:57 +000011// CHECK-NEXT: {{^$}}
Nirav Dave8497ef42017-03-18 00:43:39 +000012// CHECK-NEXT: {{llvm\..*}}