blob: af08490b83d9b35da36d6178611a831ef19c9e36 [file] [log] [blame]
Rafael Espindolaf297c932011-02-03 03:58:05 +00001; RUN: llc < %s | FileCheck %s
2
3define i8 @foobar(double %d, double* %x) {
4entry:
5 %tmp2 = load double* %x, align 8
6 %cmp = fcmp oeq double %tmp2, %d
7 %conv3 = zext i1 %cmp to i8
8 ret i8 %conv3
9}
10
11; test that the load is folded.
12; CHECK: ucomisd (%rdi), %xmm0