1
- // RUN: not %clang_cc1 -triple powerpc64le-unknown-linux-gnu -target-cpu pwr10 \
2
- // RUN: %s -emit-llvm-only 2>&1 | FileCheck %s
3
- // RUN: not %clang_cc1 -triple powerpc64le-unknown-linux-gnu -target-cpu future \
4
- // RUN: %s -emit-llvm-only 2>&1 | FileCheck %s
1
+ // RUN: not %clang_cc1 -triple powerpc64le-unknown-linux-gnu -target-feature -mma \
2
+ // RUN: -target-cpu pwr10 %s -emit-llvm-only 2>&1 | \
3
+ // RUN: FileCheck --check-prefixes=CHECK,ISA_FUTURE %s
4
+ // RUN: not %clang_cc1 -triple powerpc64le-unknown-linux-gnu -target-feature -mma \
5
+ // RUN: -target-cpu future %s -emit-llvm-only 2>&1 | \
6
+ // RUN: FileCheck --check-prefixes=CHECK,ISA_FUTURE %s
7
+ // RUN: not %clang_cc1 -triple powerpc64le-unknown-linux-gnu -target-feature \
8
+ // RUN: -isa-future-instructions -target-cpu future %s -emit-llvm-only 2>&1 | \
9
+ // RUN: FileCheck --check-prefix=ISA_FUTURE %s
5
10
6
- __attribute__((target ("no-mma" )))
11
+ // __attribute__((target("no-mma")))
7
12
void test_mma (unsigned char * vdmrp , unsigned char * vpp , vector unsigned char vc ) {
8
13
__dmr1024 vdmr = * ((__dmr1024 * )vdmrp );
9
14
__vector_pair vp = * ((__vector_pair * )vpp );
@@ -23,9 +28,9 @@ void test_mma(unsigned char *vdmrp, unsigned char *vpp, vector unsigned char vc)
23
28
// CHECK: error: '__builtin_mma_pmdmxvi8gerx4pp' needs target feature mma,paired-vector-memops
24
29
// CHECK: error: '__builtin_mma_dmxvi8gerx4spp' needs target feature mma,paired-vector-memops
25
30
// CHECK: error: '__builtin_mma_pmdmxvi8gerx4spp' needs target feature mma,paired-vector-memops
26
- // CHECK : error: '__builtin_mma_dmsetdmrz' needs target feature mma,isa-future-instructions
27
- // CHECK : error: '__builtin_mma_dmmr' needs target feature mma,isa-future-instructions
28
- // CHECK : error: '__builtin_mma_dmxor' needs target feature mma,isa-future-instructions
31
+ // ISA_FUTURE : error: '__builtin_mma_dmsetdmrz' needs target feature mma,isa-future-instructions
32
+ // ISA_FUTURE : error: '__builtin_mma_dmmr' needs target feature mma,isa-future-instructions
33
+ // ISA_FUTURE : error: '__builtin_mma_dmxor' needs target feature mma,isa-future-instructions
29
34
30
35
// DMF VSX Vector bfloat16 GER 2x builtins.
31
36
@@ -40,16 +45,16 @@ void test_mma(unsigned char *vdmrp, unsigned char *vpp, vector unsigned char vc)
40
45
__builtin_mma_pmdmxvbf16gerx2pn (& vdmr , vp , vc , 0 , 0 , 0 );
41
46
__builtin_mma_pmdmxvbf16gerx2pp (& vdmr , vp , vc , 0 , 0 , 0 );
42
47
43
- // CHECK : error: '__builtin_mma_dmxvbf16gerx2' needs target feature mma,paired-vector-memops
44
- // CHECK : error: '__builtin_mma_dmxvbf16gerx2nn' needs target feature mma,paired-vector-memops
45
- // CHECK : error: '__builtin_mma_dmxvbf16gerx2np' needs target feature mma,paired-vector-memops
46
- // CHECK : error: '__builtin_mma_dmxvbf16gerx2pn' needs target feature mma,paired-vector-memops
47
- // CHECK : error: '__builtin_mma_dmxvbf16gerx2pp' needs target feature mma,paired-vector-memops
48
- // CHECK : error: '__builtin_mma_pmdmxvbf16gerx2' needs target feature mma,paired-vector-memops
49
- // CHECK : error: '__builtin_mma_pmdmxvbf16gerx2nn' needs target feature mma,paired-vector-memops
50
- // CHECK : error: '__builtin_mma_pmdmxvbf16gerx2np' needs target feature mma,paired-vector-memops
51
- // CHECK : error: '__builtin_mma_pmdmxvbf16gerx2pn' needs target feature mma,paired-vector-memops
52
- // CHECK : error: '__builtin_mma_pmdmxvbf16gerx2pp' needs target feature mma,paired-vector-memops
48
+ // ISA_FUTURE : error: '__builtin_mma_dmxvbf16gerx2' needs target feature mma,isa-future-instructions
49
+ // ISA_FUTURE : error: '__builtin_mma_dmxvbf16gerx2nn' needs target feature mma,isa-future-instructions
50
+ // ISA_FUTURE : error: '__builtin_mma_dmxvbf16gerx2np' needs target feature mma,isa-future-instructions
51
+ // ISA_FUTURE : error: '__builtin_mma_dmxvbf16gerx2pn' needs target feature mma,isa-future-instructions
52
+ // ISA_FUTURE : error: '__builtin_mma_dmxvbf16gerx2pp' needs target feature mma,isa-future-instructions
53
+ // ISA_FUTURE : error: '__builtin_mma_pmdmxvbf16gerx2' needs target feature mma,isa-future-instructions
54
+ // ISA_FUTURE : error: '__builtin_mma_pmdmxvbf16gerx2nn' needs target feature mma,isa-future-instructions
55
+ // ISA_FUTURE : error: '__builtin_mma_pmdmxvbf16gerx2np' needs target feature mma,isa-future-instructions
56
+ // ISA_FUTURE : error: '__builtin_mma_pmdmxvbf16gerx2pn' needs target feature mma,isa-future-instructions
57
+ // ISA_FUTURE : error: '__builtin_mma_pmdmxvbf16gerx2pp' needs target feature mma,isa-future-instructions
53
58
54
59
// DMF VSX Vector 16-bitFloating-point GER 2x builtins.
55
60
@@ -64,14 +69,14 @@ void test_mma(unsigned char *vdmrp, unsigned char *vpp, vector unsigned char vc)
64
69
__builtin_mma_pmdmxvf16gerx2pn (& vdmr , vp , vc , 0 , 0 , 0 );
65
70
__builtin_mma_pmdmxvf16gerx2pp (& vdmr , vp , vc , 0 , 0 , 0 );
66
71
67
- // CHECK : error: '__builtin_mma_dmxvf16gerx2' needs target feature mma,paired-vector-memops
68
- // CHECK : error: '__builtin_mma_dmxvf16gerx2nn' needs target feature mma,paired-vector-memops
69
- // CHECK : error: '__builtin_mma_dmxvf16gerx2np' needs target feature mma,paired-vector-memops
70
- // CHECK : error: '__builtin_mma_dmxvf16gerx2pn' needs target feature mma,paired-vector-memops
71
- // CHECK : error: '__builtin_mma_dmxvf16gerx2pp' needs target feature mma,paired-vector-memops
72
- // CHECK : error: '__builtin_mma_pmdmxvf16gerx2' needs target feature mma,paired-vector-memops
73
- // CHECK : error: '__builtin_mma_pmdmxvf16gerx2nn' needs target feature mma,paired-vector-memops
74
- // CHECK : error: '__builtin_mma_pmdmxvf16gerx2np' needs target feature mma,paired-vector-memops
75
- // CHECK : error: '__builtin_mma_pmdmxvf16gerx2pn' needs target feature mma,paired-vector-memops
76
- // CHECK : error: '__builtin_mma_pmdmxvf16gerx2pp' needs target feature mma,paired-vector-memops
72
+ // ISA_FUTURE : error: '__builtin_mma_dmxvf16gerx2' needs target feature mma,isa-future-instructions
73
+ // ISA_FUTURE : error: '__builtin_mma_dmxvf16gerx2nn' needs target feature mma,isa-future-instructions
74
+ // ISA_FUTURE : error: '__builtin_mma_dmxvf16gerx2np' needs target feature mma,isa-future-instructions
75
+ // ISA_FUTURE : error: '__builtin_mma_dmxvf16gerx2pn' needs target feature mma,isa-future-instructions
76
+ // ISA_FUTURE : error: '__builtin_mma_dmxvf16gerx2pp' needs target feature mma,isa-future-instructions
77
+ // ISA_FUTURE : error: '__builtin_mma_pmdmxvf16gerx2' needs target feature mma,isa-future-instructions
78
+ // ISA_FUTURE : error: '__builtin_mma_pmdmxvf16gerx2nn' needs target feature mma,isa-future-instructions
79
+ // ISA_FUTURE : error: '__builtin_mma_pmdmxvf16gerx2np' needs target feature mma,isa-future-instructions
80
+ // ISA_FUTURE : error: '__builtin_mma_pmdmxvf16gerx2pn' needs target feature mma,isa-future-instructions
81
+ // ISA_FUTURE : error: '__builtin_mma_pmdmxvf16gerx2pp' needs target feature mma,isa-future-instructions
77
82
}
0 commit comments