blob: 03ccdda97e0a34bac6372c84973d6373f2f4dad2 [file] [log] [blame]
Tobias Grosser057beb82012-05-24 15:59:06 +00001; RUN: llvm-as < %s | opt -O3 | llvm-dis | FileCheck %s
2; Testing half constant propagation.
3
4define half @abc() nounwind {
5entry:
6 %a = alloca half, align 2
7 %b = alloca half, align 2
8 %.compoundliteral = alloca float, align 4
9 store half 0xH4200, half* %a, align 2
10 store half 0xH4B9A, half* %b, align 2
11 %tmp = load half* %a, align 2
12 %tmp1 = load half* %b, align 2
13 %add = fadd half %tmp, %tmp1
14; CHECK: 0xH4C8D
15 ret half %add
16}
17