1 // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
2 // RUN: %clang_cc1 -triple riscv64 -emit-llvm %s -o - \
9 // CHECK-NEXT: [[TMP0:%.*]] = load half, ptr @y, align 2
10 // CHECK-NEXT: [[CONV:%.*]] = fpext half [[TMP0]] to float
11 // CHECK-NEXT: [[CONV1:%.*]] = fptosi float [[CONV]] to i16
12 // CHECK-NEXT: store i16 [[CONV1]], ptr @z, align 2
13 // CHECK-NEXT: ret void
18 // CHECK-LABEL: @bar2(
20 // CHECK-NEXT: [[TMP0:%.*]] = load i16, ptr @z, align 2
21 // CHECK-NEXT: [[CONV:%.*]] = sitofp i16 [[TMP0]] to float
22 // CHECK-NEXT: [[CONV1:%.*]] = fptrunc float [[CONV]] to half
23 // CHECK-NEXT: store half [[CONV1]], ptr @y, align 2
24 // CHECK-NEXT: ret void