summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/commute-two-addr.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-05-09 05:54:27 +0000
committerChris Lattner <sabre@nondot.org>2005-05-09 05:54:27 +0000
commitf2c7af2cb06fd1edcbbb66d3c2aa2fc16d798a4f (patch)
treef03c1f4d69fab38f7cf51df67397f64204f6bf6f /test/CodeGen/X86/commute-two-addr.ll
parenta80d2bd89c3317505ba7557f9e9230aa002554a8 (diff)
downloadllvm-f2c7af2cb06fd1edcbbb66d3c2aa2fc16d798a4f.tar.gz
llvm-f2c7af2cb06fd1edcbbb66d3c2aa2fc16d798a4f.tar.bz2
llvm-f2c7af2cb06fd1edcbbb66d3c2aa2fc16d798a4f.tar.xz
tweak test to accept the (good) code emitted by the pattern isel
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21812 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/commute-two-addr.ll')
-rw-r--r--test/CodeGen/X86/commute-two-addr.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/X86/commute-two-addr.ll b/test/CodeGen/X86/commute-two-addr.ll
index 860c159790..5f6baf4402 100644
--- a/test/CodeGen/X86/commute-two-addr.ll
+++ b/test/CodeGen/X86/commute-two-addr.ll
@@ -1,8 +1,8 @@
; The register allocator can commute two-address instructions to avoid
; insertion of register-register copies.
-; Check that there are no register-register copies left.
-; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel | not grep 'mov %E.X, %E.X'
+; Make sure there are only 3 mov's for each testcase
+; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel | grep 'mov ' | wc -l | grep 6
%G = external global int