Cache size of PassVector to speed up getNumContainedPasses().
[oota-llvm.git] / test / CodeGen / X86 / widen_cast-1.ll
index 58b1d4e03db073cd4b16d458dbcf343b28939dec..56c63644e02efc723671908e6b3ca5ed4f86789a 100644 (file)
@@ -1,7 +1,14 @@
-; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse42 -disable-mmx -o %t
-; RUN: grep paddw  %t | count 1
-; RUN: grep movd  %t | count 1
-; RUN: grep pextrd  %t | count 1
+; RUN: llc -march=x86 -mcpu=generic -mattr=+sse42 < %s | FileCheck %s
+; RUN: llc -march=x86 -mcpu=atom < %s | FileCheck -check-prefix=ATOM %s
+
+; CHECK: paddd
+; CHECK: movl
+; CHECK: movlpd
+
+; Scheduler causes produce a different instruction order
+; ATOM: movl
+; ATOM: paddd
+; ATOM: movlpd
 
 ; bitcast a v4i16 to v2i32