File: acle_sve_bfloat.cpp

package info (click to toggle)
swiftlang 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,519,992 kB
  • sloc: cpp: 9,107,863; ansic: 2,040,022; asm: 1,135,751; python: 296,500; objc: 82,456; f90: 60,502; lisp: 34,951; pascal: 19,946; sh: 18,133; perl: 7,482; ml: 4,937; javascript: 4,117; makefile: 3,840; awk: 3,535; xml: 914; fortran: 619; cs: 573; ruby: 573
file content (87 lines) | stat: -rw-r--r-- 4,469 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
// REQUIRES: aarch64-registered-target

// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve -fsyntax-only -verify -verify-ignore-unexpected=error,note -emit-llvm -o - %s

#include <arm_sve.h>

void test_bfloat(svbool_t pg, uint64_t u64, int64_t i64, const bfloat16_t *const_bf16_ptr, bfloat16_t *bf16_ptr, svbfloat16_t bf16, svbfloat16x2_t bf16x2, svbfloat16x3_t bf16x3, svbfloat16x4_t bf16x4)
{
  // expected-error@+1 {{'svcreate2_bf16' needs target feature sve,bf16}}
  svcreate2_bf16(bf16, bf16);
  // expected-error@+1 {{'svcreate3_bf16' needs target feature sve,bf16}}
  svcreate3_bf16(bf16, bf16, bf16);
  // expected-error@+1 {{'svcreate4_bf16' needs target feature sve,bf16}}
  svcreate4_bf16(bf16, bf16, bf16, bf16);
  // expected-error@+1 {{'svget2_bf16' needs target feature sve,bf16}}
  svget2_bf16(bf16x2, 1);
  // expected-error@+1 {{'svget3_bf16' needs target feature sve,bf16}}
  svget3_bf16(bf16x3, 1);
  // expected-error@+1 {{'svget4_bf16' needs target feature sve,bf16}}
  svget4_bf16(bf16x4, 1);
  // expected-error@+1 {{'svld1_bf16' needs target feature sve,bf16}}
  svld1_bf16(pg, const_bf16_ptr);
  // expected-error@+1 {{'svld1_vnum_bf16' needs target feature sve,bf16}}
  svld1_vnum_bf16(pg, const_bf16_ptr, i64);
  // expected-error@+1 {{'svld1rq_bf16' needs target feature sve,bf16}}
  svld1rq_bf16(pg, const_bf16_ptr);
  // expected-error@+1 {{'svldff1_bf16' needs target feature sve,bf16}}
  svldff1_bf16(pg, const_bf16_ptr);
  // expected-error@+1 {{'svldff1_vnum_bf16' needs target feature sve,bf16}}
  svldff1_vnum_bf16(pg, const_bf16_ptr, i64);
  // expected-error@+1 {{'svldnf1_bf16' needs target feature sve,bf16}}
  svldnf1_bf16(pg, const_bf16_ptr);
  // expected-error@+1 {{'svldnf1_vnum_bf16' needs target feature sve,bf16}}
  svldnf1_vnum_bf16(pg, const_bf16_ptr, i64);
  // expected-error@+1 {{'svldnt1_bf16' needs target feature sve,bf16}}
  svldnt1_bf16(pg, const_bf16_ptr);
  // expected-error@+1 {{'svldnt1_vnum_bf16' needs target feature sve,bf16}}
  svldnt1_vnum_bf16(pg, const_bf16_ptr, i64);
  // expected-error@+1 {{'svrev_bf16' needs target feature sve,bf16}}
  svrev_bf16(bf16);
  // expected-error@+1 {{'svset2_bf16' needs target feature sve,bf16}}
  svset2_bf16(bf16x2, 1, bf16);
  // expected-error@+1 {{'svset3_bf16' needs target feature sve,bf16}}
  svset3_bf16(bf16x3, 1, bf16);
  // expected-error@+1 {{'svset4_bf16' needs target feature sve,bf16}}
  svset4_bf16(bf16x4, 1, bf16);
  // expected-error@+1 {{'svst1_bf16' needs target feature sve,bf16}}
  svst1_bf16(pg, bf16_ptr, bf16);
  // expected-error@+1 {{'svst1_vnum_bf16' needs target feature sve,bf16}}
  svst1_vnum_bf16(pg, bf16_ptr, i64, bf16);
  // expected-error@+1 {{'svstnt1_bf16' needs target feature sve,bf16}}
  svstnt1_bf16(pg, bf16_ptr, bf16);
  // expected-error@+1 {{'svstnt1_vnum_bf16' needs target feature sve,bf16}}
  svstnt1_vnum_bf16(pg, bf16_ptr, i64, bf16);
  // expected-error@+1 {{'svtrn1_bf16' needs target feature sve,bf16}}
  svtrn1_bf16(bf16, bf16);
  // expected-error@+1 {{'svtrn1q_bf16' needs target feature sve,bf16}}
  svtrn1q_bf16(bf16, bf16);
  // expected-error@+1 {{'svtrn2_bf16' needs target feature sve,bf16}}
  svtrn2_bf16(bf16, bf16);
  // expected-error@+1 {{'svtrn2q_bf16' needs target feature sve,bf16}}
  svtrn2q_bf16(bf16, bf16);
  // expected-error@+1 {{'svundef_bf16' needs target feature sve,bf16}}
  svundef_bf16();
  // expected-error@+1 {{'svundef2_bf16' needs target feature sve,bf16}}
  svundef2_bf16();
  // expected-error@+1 {{'svundef3_bf16' needs target feature sve,bf16}}
  svundef3_bf16();
  // expected-error@+1 {{'svundef4_bf16' needs target feature sve,bf16}}
  svundef4_bf16();
  // expected-error@+1 {{'svuzp1_bf16' needs target feature sve,bf16}}
  svuzp1_bf16(bf16, bf16);
  // expected-error@+1 {{'svuzp1q_bf16' needs target feature sve,bf16}}
  svuzp1q_bf16(bf16, bf16);
  // expected-error@+1 {{'svuzp2_bf16' needs target feature sve,bf16}}
  svuzp2_bf16(bf16, bf16);
  // expected-error@+1 {{'svuzp2q_bf16' needs target feature sve,bf16}}
  svuzp2q_bf16(bf16, bf16);
  // expected-error@+1 {{'svzip1_bf16' needs target feature sve,bf16}}
  svzip1_bf16(bf16, bf16);
  // expected-error@+1 {{'svzip1q_bf16' needs target feature sve,bf16}}
  svzip1q_bf16(bf16, bf16);
  // expected-error@+1 {{'svzip2_bf16' needs target feature sve,bf16}}
  svzip2_bf16(bf16, bf16);
  // expected-error@+1 {{'svzip2q_bf16' needs target feature sve,bf16}}
  svzip2q_bf16(bf16, bf16);
}