llvm-project/clang/test/Parser/p10-vector-bool-128.c
Ahsan Saghir f4c337ab85 [PowerPC] Add support for vector bool __int128 for Power10
Summary:
This patch adds support for `vector bool __int128` type for Power10.

Reviewers: #powerpc, hfinkel, lei, stefanp, amyk

Reviewed By: #powerpc, lei, amyk

Subscribers: lei, amyk, wuzish, nemanjai, shchenz, cfe-commits

Tags: #llvm, #powerpc, #clang

Differential Revision: https://reviews.llvm.org/D81816
2020-06-23 21:25:56 -05:00

13 lines
566 B
C

// RUN: %clang_cc1 -triple=powerpc64-unknown-linux-gnu -target-cpu pwr10 \
// RUN: -target-feature +vsx -target-feature +power10-vector \
// RUN: -fsyntax-only -verify %s
// RUN: %clang_cc1 -triple=powerpc64le-unknown-linux-gnu -target-cpu pwr10 \
// RUN: -target-feature +power10-vector -fsyntax-only -verify %s
// expected-no-diagnostics
// Test legitimate uses of 'vector bool __int128' with VSX.
__vector bool __int128 v1_bi128;
__vector __bool __int128 v2_bi128;
vector bool __int128 v3_bi128;
vector __bool __int128 v4_bi128;