blob: 7ca876b3c71fa6d4774e63595fa6f20c31a2cfbc [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 constant propagation.
4
5define half @abc() nounwind {
6entry:
7 %a = alloca half, align 2
8 %b = alloca half, align 2
9 %.compoundliteral = alloca float, align 4
10 store half 0xH4200, half* %a, align 2
11 store half 0xH4B9A, half* %b, align 2
David Blaikie7c9c6ed2015-02-27 21:17:42 +000012 %tmp = load half, half* %a, align 2
13 %tmp1 = load half, half* %b, align 2
Tobias Grosser057beb82012-05-24 15:59:06 +000014 %add = fadd half %tmp, %tmp1
15; CHECK: 0xH4C8D
16 ret half %add
17}
18