Rewrite X86 codegen regression test with FileCheck
[oota-llvm.git] / test / CodeGen / X86 / zext-inreg-0.ll
index a4ffd67f388d800945e40e0b54049411b51c6b86..688b88db526aea4efd5803e3c978d3c6da471341 100644 (file)
@@ -1,5 +1,12 @@
-; RUN: llvm-as < %s | llc -march=x86 | not grep and
-; RUN: llvm-as < %s | llc -march=x86-64 | not grep and
+; RUN: llc < %s -march=x86 | FileCheck -check-prefix=X86 %s
+; RUN: llc < %s -march=x86-64 | FileCheck -check-prefix=X64 %s
+
+; X86-NOT: and
+
+; X64-NOT: and
+; X64-NOT: movzbq
+; X64-NOT: movzwq
+; X64-NOT: movzlq
 
 ; These should use movzbl instead of 'and 255'.
 ; This related to not having a ZERO_EXTEND_REG opcode.