brintos

brintos / llvm-project-archived public Read only

0
0
Text · 459 B · d26545d Raw
19 lines · plain
1; RUN: opt < %s -O3 -S | FileCheck %s2; RUN: verify-uselistorder %s3; Testing half constant propagation.4 5define half @abc() nounwind {6entry:7  %a = alloca half, align 28  %b = alloca half, align 29  %.compoundliteral = alloca float, align 410  store half 0xH4200, ptr %a, align 211  store half 0xH4B9A, ptr %b, align 212  %tmp = load half, ptr %a, align 213  %tmp1 = load half, ptr %b, align 214  %add = fadd half %tmp, %tmp115; CHECK: 0xH4C8D16  ret half %add17}18 19