Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / aarch64-sve-intrinsics / acle_sve_undef-bfloat.c
blobc723137d59585a2ee216226f8a3d87636586d5b8
1 // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
2 // 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
3 // 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
5 // REQUIRES: aarch64-registered-target
7 #include <arm_sve.h>
9 // CHECK-LABEL: @test_svundef_bf16(
10 // CHECK-NEXT: entry:
11 // CHECK-NEXT: ret <vscale x 8 x bfloat> undef
13 // CPP-CHECK-LABEL: @_Z17test_svundef_bf16v(
14 // CPP-CHECK-NEXT: entry:
15 // CPP-CHECK-NEXT: ret <vscale x 8 x bfloat> undef
17 svbfloat16_t test_svundef_bf16()
19 return svundef_bf16();