brintos

brintos / llvm-project-archived public Read only

0
0
Text · 648 B · 7ba071f Raw
14 lines · c
1// RUN: not %clang_cc1 -triple powerpc64le-unknown-linux-gnu -target-cpu pwr10 \2// RUN:   %s -emit-llvm-only 2>&1 | FileCheck %s3 4__attribute__((target("no-mma")))5void 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-memops12// CHECK: error: '__builtin_mma_pmxvf64ger' needs target feature mma,paired-vector-memops13}14