1 // RUN: %check_clang_tidy -std=c++11,c++14,c++17 %s portability-simd-intrinsics %t -- \
2 // RUN:  -config='{CheckOptions: [ \
3 // RUN:    {key: portability-simd-intrinsics.Suggest, value: true} \
4 // RUN:  ]}' -- -target ppc64le -maltivec
5 // RUN: %check_clang_tidy -std=c++20-or-later %s portability-simd-intrinsics -check-suffix=CXX20 %t -- \
6 // RUN:  -config='{CheckOptions: [ \
7 // RUN:    {key: portability-simd-intrinsics.Suggest, value: true} \
8 // RUN:  ]}' -- -target ppc64le -maltivec
9 
10 vector int vec_add(vector int, vector int);
11 
PPC()12 void PPC() {
13   vector int i0, i1;
14 
15   vec_add(i0, i1);
16   // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: 'vec_add' can be replaced by operator+ on std::experimental::simd objects [portability-simd-intrinsics]
17   // CHECK-MESSAGES-CXX20: :[[@LINE-2]]:3: warning: 'vec_add' can be replaced by operator+ on std::simd objects [portability-simd-intrinsics]
18 }
19