[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / CodeGen / PowerPC / ppc-p10-mma-builtin-err.c
blob7ba071fef16560ad2e215cd45e4c88314f965be8
1 // RUN: not %clang_cc1 -triple powerpc64le-unknown-linux-gnu -target-cpu pwr10 \
2 // RUN: %s -emit-llvm-only 2>&1 | FileCheck %s
4 __attribute__((target("no-mma")))
5 void test_mma(unsigned char *vqp, unsigned char *vpp, vector unsigned char vc, unsigned char *resp) {
6 __vector_quad vq = *((__vector_quad *)vqp);
7 __vector_pair vp = *((__vector_pair *)vpp);
8 __builtin_mma_xxmtacc(&vq);
9 *((__vector_quad *)resp) = vq;
10 __builtin_mma_pmxvf64ger(&vq, vp, vc, 0, 0);
11 // CHECK: error: '__builtin_mma_xxmtacc' needs target feature mma,paired-vector-memops
12 // CHECK: error: '__builtin_mma_pmxvf64ger' needs target feature mma,paired-vector-memops