bolt/deps/llvm-18.1.8/clang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_undef3-bfloat.c

21 lines
887 B
C
Raw Normal View History

2025-02-14 19:21:04 +01:00
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve -target-feature +bf16 -S -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s
// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve -target-feature +bf16 -S -disable-O0-optnone -Werror -Wall -emit-llvm -o - -x c++ %s | opt -S -passes=mem2reg,tailcallelim | FileCheck %s -check-prefix=CPP-CHECK
// REQUIRES: aarch64-registered-target
#include <arm_sve.h>
// CHECK-LABEL: @test_svundef3_bf16(
// CHECK-NEXT: entry:
// CHECK-NEXT: ret <vscale x 24 x bfloat> undef
//
// CPP-CHECK-LABEL: @_Z18test_svundef3_bf16v(
// CPP-CHECK-NEXT: entry:
// CPP-CHECK-NEXT: ret <vscale x 24 x bfloat> undef
//
svbfloat16x3_t test_svundef3_bf16()
{
return svundef3_bf16();
}