summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/portability-simd-intrinsics-ppc.cpp
blob: be0ef760d8d474b71284bb394dfbc40a04909ba9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %check_clang_tidy %s portability-simd-intrinsics %t -- \
// RUN:  -config='{CheckOptions: [ \
// RUN:    {key: portability-simd-intrinsics.Suggest, value: 1} \
// RUN:  ]}' -- -target ppc64le -maltivec -std=c++11

vector int vec_add(vector int, vector int);

void PPC() {
  vector int i0, i1;

  vec_add(i0, i1);
// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: 'vec_add' can be replaced by operator+ on std::experimental::simd objects [portability-simd-intrinsics]
}
OpenPOWER on IntegriCloud