diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-11-07 06:19:20 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-11-07 06:19:20 +0000 | 
| commit | 74ab6efbe8b3a7cabca024247f49d715f57c915c (patch) | |
| tree | 1448015c111b67d69cb984c1ac69d9d724d17c2a | |
| parent | 3d709759178b9eca8063bd0b6a097714d0856aee (diff) | |
| download | bcm5719-llvm-74ab6efbe8b3a7cabca024247f49d715f57c915c.tar.gz bcm5719-llvm-74ab6efbe8b3a7cabca024247f49d715f57c915c.zip  | |
merge cmp1 into cmp0 and filecheckize.
llvm-svn: 86345
| -rw-r--r-- | llvm/test/CodeGen/X86/cmp0.ll | 21 | ||||
| -rw-r--r-- | llvm/test/CodeGen/X86/cmp1.ll | 7 | 
2 files changed, 19 insertions, 9 deletions
diff --git a/llvm/test/CodeGen/X86/cmp0.ll b/llvm/test/CodeGen/X86/cmp0.ll index de893745bae..4878448800c 100644 --- a/llvm/test/CodeGen/X86/cmp0.ll +++ b/llvm/test/CodeGen/X86/cmp0.ll @@ -1,7 +1,24 @@ -; RUN: llc < %s -march=x86-64 | grep -v cmp +; RUN: llc < %s -march=x86-64 | FileCheck %s -define i64 @foo(i64 %x) { +define i64 @test0(i64 %x) nounwind {    %t = icmp eq i64 %x, 0    %r = zext i1 %t to i64    ret i64 %r +; CHECK: test0: +; CHECK: 	testq	%rdi, %rdi +; CHECK: 	sete	%al +; CHECK: 	movzbl	%al, %eax +; CHECK: 	ret  } + +define i64 @test1(i64 %x) nounwind { +  %t = icmp slt i64 %x, 1 +  %r = zext i1 %t to i64 +  ret i64 %r +; CHECK: test1: +; CHECK: 	testq	%rdi, %rdi +; CHECK: 	setle	%al +; CHECK: 	movzbl	%al, %eax +; CHECK: 	ret +} + diff --git a/llvm/test/CodeGen/X86/cmp1.ll b/llvm/test/CodeGen/X86/cmp1.ll deleted file mode 100644 index d4aa399ae95..00000000000 --- a/llvm/test/CodeGen/X86/cmp1.ll +++ /dev/null @@ -1,7 +0,0 @@ -; RUN: llc < %s -march=x86-64 | grep -v cmp - -define i64 @foo(i64 %x) { -  %t = icmp slt i64 %x, 1 -  %r = zext i1 %t to i64 -  ret i64 %r -}  | 

