summaryrefslogtreecommitdiff
path: root/test/CodeGen
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-06-19 01:50:24 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-06-19 01:50:24 +0000
commit0d46d753f901c48b912efcb701930aeadd3b66b3 (patch)
treed08a2a217d5a6f9cbd6667f1cf844c030f9ba540 /test/CodeGen
parent72d255aff96395fb0da648afdccfd00d2a992e3f (diff)
downloadllvm-0d46d753f901c48b912efcb701930aeadd3b66b3.tar.gz
llvm-0d46d753f901c48b912efcb701930aeadd3b66b3.tar.bz2
llvm-0d46d753f901c48b912efcb701930aeadd3b66b3.tar.xz
New test case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52483 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/X86/subclass-coalesce.ll17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/CodeGen/X86/subclass-coalesce.ll b/test/CodeGen/X86/subclass-coalesce.ll
new file mode 100644
index 0000000000..26e6256ea0
--- /dev/null
+++ b/test/CodeGen/X86/subclass-coalesce.ll
@@ -0,0 +1,17 @@
+; RUN: llvm-as < %s | llc -march=x86 -join-subclass-copies -stats |& grep {Number of subclass joins performed}
+
+@mem.6 = external global i64 ; <i64*> [#uses=1]
+
+define i64 @attachFunc() nounwind {
+entry:
+ %tmp64.i = add i64 0, 72 ; <i64> [#uses=1]
+ %tmp68.i = load i64* @mem.6, align 8 ; <i64> [#uses=1]
+ %tmp70.i = icmp sgt i64 %tmp64.i, %tmp68.i ; <i1> [#uses=1]
+ br i1 %tmp70.i, label %bb73.i, label %bb116
+
+bb73.i: ; preds = %entry
+ br label %bb116
+
+bb116: ; preds = %bb73.i, %entry
+ ret i64 %tmp68.i
+}