// REQUIRES: powerpc-registered-target
// RUN: not %clang_cc1 -target-feature +altivec -triple powerpc64le-unknown-unknown \
// RUN: -target-cpu pwr8 -target-feature -crypto -emit-llvm %s -o - 2>&1 \
// RUN: | FileCheck %s
// RUN: not %clang_cc1 -target-feature +altivec -triple powerpc64-unknown-unknown \
// RUN: -target-cpu pwr8 -target-feature -crypto -emit-llvm %s -o - 2>&1 \
// RUN: | FileCheck %s
// RUN: not %clang_cc1 -target-feature +altivec -triple powerpc64-unknown-unknown \
// RUN: -target-cpu pwr8 -target-feature -power8-vector \
// RUN: -target-feature -crypto -emit-llvm %s -o - 2>&1 \
// RUN: | FileCheck %s -check-prefix=CHECK-P8V
// Test cases for the builtins the way they are exposed to
// users through altivec.h
void
// CHECK: use of unknown builtin '__builtin_crypto_vsbox'
// CHECK: use of unknown builtin '__builtin_crypto_vcipher'
// CHECK: use of unknown builtin '__builtin_crypto_vcipherlast'
// CHECK: use of unknown builtin '__builtin_crypto_vncipher'
// CHECK: use of unknown builtin '__builtin_crypto_vncipherlast'
// CHECK: use of unknown builtin '__builtin_crypto_vshasigmaw'
// CHECK: use of unknown builtin '__builtin_crypto_vshasigmad'
// CHECK-P8V: use of unknown builtin '__builtin_crypto_vpmsumb'
// CHECK-P8V: use of unknown builtin '__builtin_crypto_vpermxor'