Add support for x86 CMPEQSS and friends. These instructions do a
[oota-llvm.git] / test / CodeGen / X86 / pr9127.ll
1 ; RUN: llc -mtriple=x86_64-linux < %s | FileCheck %s
2 ; RUN: llc -mtriple=x86_64-win32 < %s | FileCheck %s
3
4 define i8 @foobar(double %d, double* %x) {
5 entry:
6   %tmp2 = load 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