Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / aarch64-sve-intrinsics / acle_sve_undef2-bfloat.c
blobd86a1e67b00d2d94b7674dae2e9a1c59c8d27d52
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_svundef2_bf16(
10 // CHECK-NEXT: entry:
11 // CHECK-NEXT: ret <vscale x 16 x bfloat> undef
13 // CPP-CHECK-LABEL: @_Z18test_svundef2_bf16v(
14 // CPP-CHECK-NEXT: entry:
15 // CPP-CHECK-NEXT: ret <vscale x 16 x bfloat> undef
17 svbfloat16x2_t test_svundef2_bf16()
19 return svundef2_bf16();