1*9880d681SAndroid Build Coastguard Worker; RUN: opt < %s -O3 -S | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker; RUN: verify-uselistorder %s 3*9880d681SAndroid Build Coastguard Worker; Testing half constant propagation. 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Workerdefine half @abc() nounwind { 6*9880d681SAndroid Build Coastguard Workerentry: 7*9880d681SAndroid Build Coastguard Worker %a = alloca half, align 2 8*9880d681SAndroid Build Coastguard Worker %b = alloca half, align 2 9*9880d681SAndroid Build Coastguard Worker %.compoundliteral = alloca float, align 4 10*9880d681SAndroid Build Coastguard Worker store half 0xH4200, half* %a, align 2 11*9880d681SAndroid Build Coastguard Worker store half 0xH4B9A, half* %b, align 2 12*9880d681SAndroid Build Coastguard Worker %tmp = load half, half* %a, align 2 13*9880d681SAndroid Build Coastguard Worker %tmp1 = load half, half* %b, align 2 14*9880d681SAndroid Build Coastguard Worker %add = fadd half %tmp, %tmp1 15*9880d681SAndroid Build Coastguard Worker; CHECK: 0xH4C8D 16*9880d681SAndroid Build Coastguard Worker ret half %add 17*9880d681SAndroid Build Coastguard Worker} 18*9880d681SAndroid Build Coastguard Worker 19