[llvm-commits] [llvm] r134336 - /llvm/trunk/test/CodeGen/X86/isel-sink.ll
Chandler Carruth
chandlerc at gmail.com
Sat Jul 2 13:42:28 PDT 2011
Author: chandlerc
Date: Sat Jul 2 15:42:28 2011
New Revision: 134336
URL: http://llvm.org/viewvc/llvm-project?rev=134336&view=rev
Log:
FileCheck-ize and simplify this test.
Modified:
llvm/trunk/test/CodeGen/X86/isel-sink.ll
Modified: llvm/trunk/test/CodeGen/X86/isel-sink.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/isel-sink.ll?rev=134336&r1=134335&r2=134336&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/isel-sink.ll (original)
+++ llvm/trunk/test/CodeGen/X86/isel-sink.ll Sat Jul 2 15:42:28 2011
@@ -1,8 +1,14 @@
-; RUN: llc < %s -march=x86 | not grep lea
-; RUN: llc < %s -march=x86 -mtriple=i686-apple-darwin8 | \
-; RUN: grep {movl \$4, (.*,.*,4)}
+; RUN: llc < %s -march=x86 | FileCheck %s
define i32 @test(i32* %X, i32 %B) {
+; CHECK: test:
+; CHECK-NOT: ret
+; CHECK-NOT: lea
+; CHECK: mov{{.}} $4, ({{.*}},{{.*}},4)
+; CHECK: ret
+; CHECK: mov{{.}} ({{.*}},{{.*}},4),
+; CHECK: ret
+
; This gep should be sunk out of this block into the load/store users.
%P = getelementptr i32* %X, i32 %B
%G = icmp ult i32 %B, 1234
@@ -14,5 +20,3 @@
%V = load i32* %P
ret i32 %V
}
-
-
More information about the llvm-commits
mailing list