[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / CodeGen / PowerPC / ppc-p10-paired-vec-memops-builtin-err.c
blob0c5e6d59607d227b6e1bec5552a98065af1d84c3
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-paired-vector-memops")))
5 void test_pair(unsigned char *vqp, unsigned char *vpp, vector unsigned char vc, unsigned char *resp) {
6 __vector_pair res;
7 signed long offset;
8 __builtin_vsx_assemble_pair(&res, vc, vc);
9 __builtin_vsx_disassemble_pair(resp, (__vector_pair*)vpp);
10 __vector_pair vp = __builtin_vsx_lxvp(offset, (const __vector_pair*)vpp);
11 __builtin_vsx_stxvp(vp, offset, (__vector_pair*)vpp);
12 __builtin_mma_xxmtacc((__vector_quad *)vpp);
13 __builtin_mma_pmxvf64ger((__vector_quad *)vpp, vp, vc, 0, 0);
14 // CHECK: error: '__builtin_vsx_assemble_pair' needs target feature paired-vector-memops
15 // CHECK: error: '__builtin_vsx_disassemble_pair' needs target feature paired-vector-memops
16 // CHECK: error: '__builtin_vsx_lxvp' needs target feature paired-vector-memops
17 // CHECK: error: '__builtin_vsx_stxvp' needs target feature paired-vector-memops
18 // CHECK: error: '__builtin_mma_xxmtacc' needs target feature mma,paired-vector-memops
19 // CHECK: error: '__builtin_mma_pmxvf64ger' needs target feature mma,paired-vector-memops