brintos

brintos / llvm-project-archived public Read only

0
0
Text · 874 B · 79f12ed Raw
30 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 62; RUN: sed 's/iXLen/i32/g' %s | llc -mtriple=riscv32 -mattr=+zfhmin,+zfbfmin \3; RUN:   -verify-machineinstrs | FileCheck %s --check-prefixes=RV324; RUN: sed 's/iXLen/i64/g' %s | llc -mtriple=riscv64 -mattr=+zfhmin,+zfbfmin \5; RUN:   -verify-machineinstrs | FileCheck %s --check-prefixes=RV646 7define bfloat @fcvt_bf16_h(half %a) nounwind {8; RV32-LABEL: fcvt_bf16_h:9; RV32:       # %bb.0:10; RV32-NEXT:    ret11;12; RV64-LABEL: fcvt_bf16_h:13; RV64:       # %bb.0:14; RV64-NEXT:    ret15  %r = bitcast half %a to bfloat16  ret bfloat %r17}18 19define half @test_h_bf16(bfloat %a) nounwind {20; RV32-LABEL: test_h_bf16:21; RV32:       # %bb.0:22; RV32-NEXT:    ret23;24; RV64-LABEL: test_h_bf16:25; RV64:       # %bb.0:26; RV64-NEXT:    ret27  %r = bitcast bfloat %a to half28  ret half %r29}30