File: aarch64-sme2-sve2p1-diagnostics.c

package info (click to toggle)
llvm-toolchain-18 1%3A18.1.8-18
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,908,340 kB
  • sloc: cpp: 6,667,937; ansic: 1,440,452; asm: 883,619; python: 230,549; objc: 76,880; f90: 74,238; lisp: 35,989; pascal: 16,571; sh: 10,229; perl: 7,459; ml: 5,047; awk: 3,523; makefile: 2,987; javascript: 2,149; xml: 892; fortran: 649; cs: 573
file content (37 lines) | stat: -rw-r--r-- 1,312 bytes parent folder | download
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
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sme -fsyntax-only -verify %s

// REQUIRES: aarch64-registered-target
#include "arm_sve.h"

//svldnt1:

__attribute__((target("+sme2")))
svuint8x2_t sme2_or_sve2p1_intrinsic_test_sme2_invalid(svcount_t png, const uint8_t *rn) {
  // expected-warning@+1 {{builtin call has undefined behaviour when called from a non-streaming function}}
  return svldnt1_u8_x2(png, rn);
}

__attribute__((target("+sme2")))
svint16x4_t sme2_or_sve2p1_intrinsic_test_sme2(svcount_t png, const int16_t *rn) __arm_streaming {
  // expected-no-warning
  return svldnt1_s16_x4(png, rn);
}

__attribute__((target("+sve2p1")))
svuint32x2_t sme2_or_sve2p1_intrinsic_test_sve2p1(svcount_t png, const uint32_t *rn) {
  // expected-no-warning
  return svldnt1_u32_x2(png, rn);
}

__attribute__((target("+sme2,+sve2p1")))
svint64x4_t sme2_or_sve2p1_intrinsic_test_both_arm_streaming(svcount_t png, const int64_t *rn) __arm_streaming {
  // expected-no-warning
  return svldnt1_s64_x4(png, rn);
}

__attribute__((target("+sme2,+sve2p1")))
svint64x4_t sme2_or_sve2p1_intrinsic_test_both_no_arm_streaming(svcount_t png, const int64_t *rn) {
  // expected-no-warning
  return svldnt1_s64_x4(png, rn);
}