CodeGen peephole: fold redundant phys reg copies
[oota-llvm.git] / test / CodeGen / X86 / x86-64-shortint.ll
index d1364508d11b6889beeaf06fbefd8b00908a373e..75f89023509dd33896d10ee0b3e4b2799287232c 100644 (file)
@@ -1,12 +1,14 @@
-; RUN: llvm-as < %s | llc | grep movswl
+; RUN: llc < %s | FileCheck %s
+
+; CHECK: movswl
 
 target datalayout = "e-p:64:64"
 target triple = "x86_64-apple-darwin8"
 
 
-define void @bar(i16 zext  %A) {
-        tail call void @foo( i16 %A sext  )
+define void @bar(i16 zeroext  %A) {
+        tail call void @foo( i16 signext %A   )
         ret void
 }
-declare void @foo(i16 sext )
+declare void @foo(i16 signext )