xref: /llvm-project/llvm/test/Assembler/half-conv.ll (revision 75a479221b72c8b4827470485949cebf67d1c967)
1; RUN: opt < %s -O3 -S | FileCheck %s
2; RUN: verify-uselistorder %s
3; Testing half to float conversion.
4
5define float @abc() nounwind {
6entry:
7  %a = alloca half, align 2
8  %.compoundliteral = alloca float, align 4
9  store half 0xH4C8D, ptr %a, align 2
10  %tmp = load half, ptr %a, align 2
11  %conv = fpext half %tmp to float
12; CHECK: 0x4032340000000000
13  ret float %conv
14}
15