Add test case from PR940.
authorEvan Cheng <evan.cheng@apple.com>
Tue, 10 Oct 2006 04:33:46 +0000 (04:33 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 10 Oct 2006 04:33:46 +0000 (04:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30852 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/2006-10-09-CycleInDAG.ll [new file with mode: 0644]

diff --git a/test/CodeGen/X86/2006-10-09-CycleInDAG.ll b/test/CodeGen/X86/2006-10-09-CycleInDAG.ll
new file mode 100644 (file)
index 0000000..fab720f
--- /dev/null
@@ -0,0 +1,10 @@
+; RUN: llvm-as < %s | llc -march=x86
+
+void %_ZN13QFSFileEngine4readEPcx() {
+       %tmp201 = load int* null
+       %tmp201 = cast int %tmp201 to long
+       %tmp202 = load long* null
+       %tmp203 = add long %tmp201, %tmp202
+       store long %tmp203, long* null
+       ret void
+}