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