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