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
) {
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