1*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=x86_64-linux < %s | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=x86_64-win32 < %s | FileCheck %s 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Workerdefine i8 @foobar(double %d, double* %x) { 5*9880d681SAndroid Build Coastguard Workerentry: 6*9880d681SAndroid Build Coastguard Worker %tmp2 = load double, double* %x, align 8 7*9880d681SAndroid Build Coastguard Worker %cmp = fcmp oeq double %tmp2, %d 8*9880d681SAndroid Build Coastguard Worker %conv3 = zext i1 %cmp to i8 9*9880d681SAndroid Build Coastguard Worker ret i8 %conv3 10*9880d681SAndroid Build Coastguard Worker} 11*9880d681SAndroid Build Coastguard Worker 12*9880d681SAndroid Build Coastguard Worker; test that the load is folded. 13*9880d681SAndroid Build Coastguard Worker; CHECK: cmpeqsd (%{{rdi|rdx}}), %xmm0 14