2020-06-26 05:49:00 +08:00
|
|
|
// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve -target-feature +bf16 -fallow-half-arguments-and-returns -S -O1 -Werror -Wall -emit-llvm -o - %s | FileCheck %s
|
2021-09-03 21:24:19 +08:00
|
|
|
// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve -target-feature +bf16 -fallow-half-arguments-and-returns -S -O1 -Werror -Wall -emit-llvm -o - -x c++ %s | FileCheck %s
|
2020-06-26 05:49:00 +08:00
|
|
|
// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve -fallow-half-arguments-and-returns -fsyntax-only -verify -verify-ignore-unexpected=error -verify-ignore-unexpected=note %s
|
2020-06-27 00:35:00 +08:00
|
|
|
|
|
|
|
#include <arm_sve.h>
|
|
|
|
|
|
|
|
svbfloat16x4_t test_svundef4_bf16()
|
|
|
|
{
|
2021-09-03 21:24:19 +08:00
|
|
|
// CHECK-LABEL: test_svundef4_bf16
|
|
|
|
// CHECK: ret <vscale x 32 x bfloat> undef
|
2020-06-27 00:35:00 +08:00
|
|
|
// expected-warning@+1 {{implicit declaration of function 'svundef4_bf16'}}
|
|
|
|
return svundef4_bf16();
|
|
|
|
}
|