1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4
2 ; RUN: llc -mtriple=aarch64 -mattr=-fp-armv8 -o - %s | FileCheck %s
4 define half @f2h(float %a) {
6 ; CHECK: // %bb.0: // %entry
7 ; CHECK-NEXT: str x30, [sp, #-16]! // 8-byte Folded Spill
8 ; CHECK-NEXT: .cfi_def_cfa_offset 16
9 ; CHECK-NEXT: .cfi_offset w30, -16
10 ; CHECK-NEXT: bl __gnu_f2h_ieee
11 ; CHECK-NEXT: ldr x30, [sp], #16 // 8-byte Folded Reload
14 %0 = fptrunc float %a to half
18 define bfloat @f2bfloat(float %a) {
19 ; CHECK-LABEL: f2bfloat:
20 ; CHECK: // %bb.0: // %entry
21 ; CHECK-NEXT: str x30, [sp, #-16]! // 8-byte Folded Spill
22 ; CHECK-NEXT: .cfi_def_cfa_offset 16
23 ; CHECK-NEXT: .cfi_offset w30, -16
24 ; CHECK-NEXT: bl __truncsfbf2
25 ; CHECK-NEXT: ldr x30, [sp], #16 // 8-byte Folded Reload
28 %0 = fptrunc float %a to bfloat