| 1 |
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py |
| 2 |
// REQUIRES: aarch64-registered-target |
| 3 |
// RUN: %clang_cc1 -triple aarch64 -target-feature +sve -target-feature +bf16 -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s |
| 4 |
// RUN: %clang_cc1 -triple aarch64 -target-feature +sve -target-feature +bf16 -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK |
| 5 |
// RUN: %clang_cc1 -fclang-abi-compat=latest -triple aarch64 -target-feature +sve -target-feature +bf16 -S -disable-O0-optnone -Werror -Wall -o /dev/null %s |
| 6 |
// RUN: %clang_cc1 -fclang-abi-compat=latest -triple aarch64 -target-feature +sme -target-feature +bf16 -S -disable-O0-optnone -Werror -Wall -o /dev/null %s |
| 7 |
|
| 8 |
#include <arm_sve.h> |
| 9 |
|
| 10 |
#if defined __ARM_FEATURE_SME |
| 11 |
#define MODE_ATTR __arm_streaming |
| 12 |
#else |
| 13 |
#define MODE_ATTR |
| 14 |
#endif |
| 15 |
|
| 16 |
|
| 17 |
// CHECK-LABEL: @test_svundef4_bf16( |
| 18 |
// CHECK-NEXT: entry: |
| 19 |
// CHECK-NEXT: ret <vscale x 32 x bfloat> undef |
| 20 |
// |
| 21 |
// CPP-CHECK-LABEL: @_Z18test_svundef4_bf16v( |
| 22 |
// CPP-CHECK-NEXT: entry: |
| 23 |
// CPP-CHECK-NEXT: ret <vscale x 32 x bfloat> undef |
| 24 |
// |
| 25 |
svbfloat16x4_t test_svundef4_bf16(void) MODE_ATTR |
| 26 |
{ |
| 27 |
return svundef4_bf16(); |
| 28 |
} |