aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-08-24 19:19:55 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-08-24 19:19:55 +0000
commit32c727cd95a7718e10e225bb9fc00be6681706aa (patch)
tree20d659c0652eb822c63548dd90abc5e1b27e1a38 /test/CodeGen/X86
parent40ab164d3ae6fddb279ae49ab2f9756b466c640a (diff)
downloadexternal_llvm-32c727cd95a7718e10e225bb9fc00be6681706aa.zip
external_llvm-32c727cd95a7718e10e225bb9fc00be6681706aa.tar.gz
external_llvm-32c727cd95a7718e10e225bb9fc00be6681706aa.tar.bz2
Move callseq_start above the call address load to allow load to be folded into the call node.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55292 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86')
-rw-r--r--test/CodeGen/X86/fold-call-2.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/fold-call-2.ll b/test/CodeGen/X86/fold-call-2.ll
new file mode 100644
index 0000000..349f986
--- /dev/null
+++ b/test/CodeGen/X86/fold-call-2.ll
@@ -0,0 +1,10 @@
+; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin | grep mov | count 1
+
+@f = external global void ()* ; <void ()**> [#uses=1]
+
+define i32 @main() nounwind {
+entry:
+ load void ()** @f, align 8 ; <void ()*>:0 [#uses=1]
+ tail call void %0( ) nounwind
+ ret i32 0
+}