Improve the grep commands for this test to be tolerant of ABI
[oota-llvm.git] / test / CodeGen / X86 / tailcallbyval.ll
index dc1dea7e113ee804f461e02397fd4ed84d91a7bb..9085b050ec541469d7c3e272ccecfbd4f1639cf5 100644 (file)
@@ -1,5 +1,9 @@
 ; RUN: llvm-as < %s | llc -march=x86 -tailcallopt | grep TAILCALL
-%struct.s = type { i32, i32, i32 }
+; check for the 2 byval moves
+; RUN: llvm-as < %s | llc -march=x86 -tailcallopt | grep rep | wc -l | grep 2
+%struct.s = type {i32, i32, i32, i32, i32, i32, i32, i32,
+                  i32, i32, i32, i32, i32, i32, i32, i32,
+                  i32, i32, i32, i32, i32, i32, i32, i32 }
 
 define  fastcc i32 @tailcallee(%struct.s* byval %a) {
 entry: