blob: 9b251f57e0e332bf366c398d4429a668daf50c12 [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.
NAKAMURA Takumi902f1282011-02-22 07:21:17 +000013; CHECK: ucomisd (%{{rdi|rdx}}), %xmm0