| Rafael Espindola | f5754b8 | 2011-02-03 04:21:01 +0000 | [diff] [blame^] | 1 | ; RUN: llc -march=x86-64 < %s | FileCheck %s |
| Rafael Espindola | d11311f | 2011-02-03 03:58:05 +0000 | [diff] [blame] | 2 | |
| 3 | define i8 @foobar(double %d, double* %x) { | ||||
| 4 | entry: | ||||
| 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 | ||||