mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-04-12 19:38:50 +00:00

The alias was only ever used on darwin and had some issues there, and isn't used in practice much. Also fixes a problem with -mno-altivec not turning off -maltivec. Also add a diagnostic for faltivec/fno-altivec that directs users to use maltivec options and include the altivec.h file explicitly. llvm-svn: 298449
13 lines
663 B
C
13 lines
663 B
C
// RUN: %clang_cc1 -triple powerpc64-unknown-unknown -target-feature +altivec -ffreestanding -emit-llvm -o - %s | FileCheck %s
|
|
// RUN: %clang_cc1 -triple powerpc64-unknown-unknown -target-feature +altivec -ffreestanding -emit-llvm -fno-lax-vector-conversions -o - %s | FileCheck %s
|
|
// RUN: %clang_cc1 -triple powerpc64-unknown-unknown -target-feature +altivec -ffreestanding -emit-llvm -x c++ -o - %s | FileCheck %s
|
|
|
|
#include <altivec.h>
|
|
|
|
// Verify that simply including <altivec.h> does not generate any code
|
|
// (i.e. all inline routines in the header are marked "static")
|
|
|
|
// CHECK: target triple = "powerpc64-
|
|
// CHECK-NEXT: {{^$}}
|
|
// CHECK-NEXT: {{llvm\..*}}
|