diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2008-02-05 22:50:29 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2008-02-05 22:50:29 +0000 |
| commit | 87fbd66f9f8027e72a9cb9b97595d12626f31a2a (patch) | |
| tree | 8b9c0e8fcb6bb10b4767b7d653295a5d55ff5082 /llvm/test/CodeGen | |
| parent | 0f329161115d5a6a9e4dfbf1fb535f8d307fb421 (diff) | |
| download | bcm5719-llvm-87fbd66f9f8027e72a9cb9b97595d12626f31a2a.tar.gz bcm5719-llvm-87fbd66f9f8027e72a9cb9b97595d12626f31a2a.zip | |
Fix PR1975: dag isel emitter produces patterns that isel wrong flag result.
llvm-svn: 46776
Diffstat (limited to 'llvm/test/CodeGen')
| -rw-r--r-- | llvm/test/CodeGen/X86/2008-02-05-ISelCrash.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/2008-02-05-ISelCrash.ll b/llvm/test/CodeGen/X86/2008-02-05-ISelCrash.ll new file mode 100644 index 00000000000..6885cf14cf1 --- /dev/null +++ b/llvm/test/CodeGen/X86/2008-02-05-ISelCrash.ll @@ -0,0 +1,12 @@ +; RUN: llvm-as < %s | llc -march=x86 +; PR1975 + +@nodes = external global i64 ; <i64*> [#uses=2] + +define fastcc i32 @ab(i32 %alpha, i32 %beta) nounwind { +entry: + %tmp1 = load i64* @nodes, align 8 ; <i64> [#uses=1] + %tmp2 = add i64 %tmp1, 1 ; <i64> [#uses=1] + store i64 %tmp2, i64* @nodes, align 8 + ret i32 0 +} |

