blob: ba92c77e22bd3fd5bfa0e998f02cbcfd7681941a [file] [log] [blame]
NAKAMURA Takumi902f1282011-02-22 07:21:17 +00001; RUN: llc -mtriple=x86_64-linux < %s | FileCheck %s
2; RUN: llc -mtriple=x86_64-win32 < %s | FileCheck %s
Rafael Espindolaf297c932011-02-03 03:58:05 +00003
4define i8 @foobar(double %d, double* %x) {
5entry:
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.
Stuart Hastings865f0932011-06-03 23:53:54 +000013; CHECK: cmpeqsd (%{{rdi|rdx}}), %xmm0