Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / aarch64-sve-intrinsics / acle_sve_undef4-bfloat.c
blob675b5ac269ddbf49f37a36b1f02a5f9353b03e5a
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_svundef4_bf16(
10 // CHECK-NEXT: entry:
11 // CHECK-NEXT: ret <vscale x 32 x bfloat> undef
13 // CPP-CHECK-LABEL: @_Z18test_svundef4_bf16v(
14 // CPP-CHECK-NEXT: entry:
15 // CPP-CHECK-NEXT: ret <vscale x 32 x bfloat> undef
17 svbfloat16x4_t test_svundef4_bf16()
19 return svundef4_bf16();