Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / RISCV / bfloat-mangle.cpp
blob7cfa80358e32cdfebab3efa80ce2507285635bb6
1 // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 2
2 // RUN: %clang_cc1 -triple riscv64 -emit-llvm -o - %s | FileCheck %s --check-prefixes=CHECK-RV64
3 // RUN: %clang_cc1 -triple riscv32 -emit-llvm -o - %s | FileCheck %s --check-prefixes=CHECK-RV32
5 // CHECK-RV64-LABEL: define dso_local void @_Z3fooDF16b
6 // CHECK-RV64-SAME: (bfloat noundef [[B:%.*]]) #[[ATTR0:[0-9]+]] {
7 // CHECK-RV64-NEXT: entry:
8 // CHECK-RV64-NEXT: [[B_ADDR:%.*]] = alloca bfloat, align 2
9 // CHECK-RV64-NEXT: store bfloat [[B]], ptr [[B_ADDR]], align 2
10 // CHECK-RV64-NEXT: ret void
12 // CHECK-RV32-LABEL: define dso_local void @_Z3fooDF16b
13 // CHECK-RV32-SAME: (bfloat noundef [[B:%.*]]) #[[ATTR0:[0-9]+]] {
14 // CHECK-RV32-NEXT: entry:
15 // CHECK-RV32-NEXT: [[B_ADDR:%.*]] = alloca bfloat, align 2
16 // CHECK-RV32-NEXT: store bfloat [[B]], ptr [[B_ADDR]], align 2
17 // CHECK-RV32-NEXT: ret void
19 void foo(__bf16 b) {}