diff --git a/test/CodeGen/X86/commute-two-addr.ll b/test/CodeGen/X86/commute-two-addr.ll index 860c1597908..5f6baf4402d 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