blob: 657550154af48907d9a53daed6448b4d148e405f [file] [log] [blame]
Arnaud A. de Grandmaison08f32402014-05-27 22:03:28 +00001; RUN: opt < %s -O3 -S | FileCheck %s
Duncan P. N. Exon Smith13f5c582014-08-19 21:08:27 +00002; RUN: verify-uselistorder %s
Tobias Grosser057beb82012-05-24 15:59:06 +00003; 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, half* %a, align 2
David Blaikie7c9c6ed2015-02-27 21:17:42 +000010 %tmp = load half, half* %a, align 2
Tobias Grosser057beb82012-05-24 15:59:06 +000011 %conv = fpext half %tmp to float
12; CHECK: 0x4032340000000000
13 ret float %conv
14}