New test case.
authorEvan Cheng <evan.cheng@apple.com>
Thu, 19 Jun 2008 01:50:24 +0000 (01:50 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 19 Jun 2008 01:50:24 +0000 (01:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52483 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/subclass-coalesce.ll [new file with mode: 0644]

diff --git a/test/CodeGen/X86/subclass-coalesce.ll b/test/CodeGen/X86/subclass-coalesce.ll
new file mode 100644 (file)
index 0000000..26e6256
--- /dev/null
@@ -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
+}