Add a test case to check handling of dbg-declare by fast-isel.
[oota-llvm.git] / test / CodeGen / X86 / cmp0.ll
1 ; RUN: llc < %s -march=x86-64 | FileCheck %s
2
3 define i64 @test0(i64 %x) nounwind {
4   %t = icmp eq i64 %x, 0
5   %r = zext i1 %t to i64
6   ret i64 %r
7 ; CHECK: test0:
8 ; CHECK:        testq   %rdi, %rdi
9 ; CHECK:        sete    %al
10 ; CHECK:        movzbl  %al, %eax
11 ; CHECK:        ret
12 }
13
14 define i64 @test1(i64 %x) nounwind {
15   %t = icmp slt i64 %x, 1
16   %r = zext i1 %t to i64
17   ret i64 %r
18 ; CHECK: test1:
19 ; CHECK:        testq   %rdi, %rdi
20 ; CHECK:        setle   %al
21 ; CHECK:        movzbl  %al, %eax
22 ; CHECK:        ret
23 }
24