CodeGen peephole: fold redundant phys reg copies
[oota-llvm.git] / test / CodeGen / X86 / fold-call-2.ll
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..b5e2606410f0cd2754ff12e34f3c27eb08f3b3e0 100644 (file)
@@ -0,0 +1,10 @@
+; RUN: llc < %s -mtriple=i386-apple-darwin | grep mov | count 1
+
+@f = external global void ()*          ; <void ()**> [#uses=1]
+
+define i32 @main() nounwind {
+entry:
+       load void ()*, void ()** @f, align 8            ; <void ()*>:0 [#uses=1]
+       tail call void %0( ) nounwind
+       ret i32 0
+}