CodeGen peephole: fold redundant phys reg copies
[oota-llvm.git] / test / CodeGen / X86 / x86-64-pic-10.ll
index b6f82e23b7e7bf6bd67a95bbea6cd804276f939c..d76cf6a17552c93de25e64a1a8be2128e327303e 100644 (file)
@@ -1,7 +1,7 @@
 ; RUN: llc < %s -mtriple=x86_64-pc-linux -relocation-model=pic -o %t1
-; RUN: grep {callq     g@PLT} %t1
+; RUN: grep "callq     g@PLT" %t1
 
-@g = alias weak i32 ()* @f
+@g = weak alias i32 (), i32 ()* @f
 
 define void @h() {
 entry:
@@ -9,4 +9,6 @@ entry:
         ret void
 }
 
-declare extern_weak i32 @f()
+define weak i32 @f() {
+  ret i32 42
+}