2014-05-28 06:03:28 +08:00
|
|
|
; RUN: opt < %s -O3 -S | FileCheck %s
|
2014-08-20 05:08:27 +08:00
|
|
|
; RUN: verify-uselistorder %s
|
2012-05-24 23:59:06 +08:00
|
|
|
; Testing half to float conversion.
|
|
|
|
|
|
|
|
define float @abc() nounwind {
|
|
|
|
entry:
|
|
|
|
%a = alloca half, align 2
|
|
|
|
%.compoundliteral = alloca float, align 4
|
|
|
|
store half 0xH4C8D, half* %a, align 2
|
2015-02-28 05:17:42 +08:00
|
|
|
%tmp = load half, half* %a, align 2
|
2012-05-24 23:59:06 +08:00
|
|
|
%conv = fpext half %tmp to float
|
|
|
|
; CHECK: 0x4032340000000000
|
|
|
|
ret float %conv
|
|
|
|
}
|