-; RUN: llvm-as < %s | llc -march=x86-64 -pre-RA-sched=none | grep leaq
-; RUN: llvm-as < %s | llc -march=x86-64 -pre-RA-sched=none | not grep {,%rsp)}
+; RUN: llvm-as < %s | llc -march=x86-64 > %t
+; RUN: grep leaq %t
+; RUN: not grep {,%rsp)} %t
; PR1103
target datalayout = "e-p:64:64"