annotate clang/test/Sema/builtins-hvx-v65.c @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // REQUIRES: hexagon-registered-target
anatofuz
parents:
diff changeset
2 // RUN: %clang_cc1 -triple hexagon %s -target-feature +hvx-length128b -target-feature +hvxv65 -target-cpu hexagonv65 -fsyntax-only -verify
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 typedef long Vect1024 __attribute__((__vector_size__(128)))
anatofuz
parents:
diff changeset
5 __attribute__((aligned(128)));
anatofuz
parents:
diff changeset
6 typedef long Vect2048 __attribute__((__vector_size__(256)))
anatofuz
parents:
diff changeset
7 __attribute__((aligned(128)));
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 typedef Vect1024 HVX_Vector;
anatofuz
parents:
diff changeset
10 typedef Vect2048 HVX_VectorPair;
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 // expected-no-diagnostics
anatofuz
parents:
diff changeset
13 HVX_Vector builtin_needs_v60(HVX_VectorPair a) {
anatofuz
parents:
diff changeset
14 return __builtin_HEXAGON_V6_hi_128B(a);
anatofuz
parents:
diff changeset
15 }
anatofuz
parents:
diff changeset
16
anatofuz
parents:
diff changeset
17 HVX_Vector builtin_needs_v62(char a) {
anatofuz
parents:
diff changeset
18 return __builtin_HEXAGON_V6_lvsplatb_128B(a);
anatofuz
parents:
diff changeset
19 }
anatofuz
parents:
diff changeset
20
anatofuz
parents:
diff changeset
21 HVX_VectorPair builtin_needs_v65() {
anatofuz
parents:
diff changeset
22 return __builtin_HEXAGON_V6_vdd0_128B();
anatofuz
parents:
diff changeset
23 }