xref: /llvm-project/clang/test/CodeGen/PowerPC/ppc-p10-mma-builtin-err.c (revision fa1f88cdeca245497843c507167b84f5522e88cc)
1 // RUN: not %clang_cc1 -triple powerpc64le-unknown-linux-gnu -target-cpu pwr10 \
2 // RUN:   %s -emit-llvm-only 2>&1 | FileCheck %s
3 
4 __attribute__((target("no-mma")))
test_mma(unsigned char * vqp,unsigned char * vpp,vector unsigned char vc,unsigned char * resp)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
13 }
14