summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-10-10 04:33:46 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-10-10 04:33:46 +0000
commitccc4870d63c7be5bc411025204a1ebf349a60500 (patch)
tree89333238d93707f0f3012968ab2157d319748823
parenta275ecbd10b95878dd25333843cdd19e714c3640 (diff)
downloadllvm-ccc4870d63c7be5bc411025204a1ebf349a60500.tar.gz
llvm-ccc4870d63c7be5bc411025204a1ebf349a60500.tar.bz2
llvm-ccc4870d63c7be5bc411025204a1ebf349a60500.tar.xz
Add test case from PR940.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30852 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGen/X86/2006-10-09-CycleInDAG.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2006-10-09-CycleInDAG.ll b/test/CodeGen/X86/2006-10-09-CycleInDAG.ll
new file mode 100644
index 0000000000..fab720f599
--- /dev/null
+++ b/test/CodeGen/X86/2006-10-09-CycleInDAG.ll
@@ -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
+}