summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/2008-05-28-CoalescerBug.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-05-28 17:40:10 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-05-28 17:40:10 +0000
commitd77d4f98fbdeaf3d1b0ba99b547b7ac4ec43b834 (patch)
tree63244d3431af44873f3092b549813740bac0f08d /test/CodeGen/X86/2008-05-28-CoalescerBug.ll
parent33d3d4ad401e77673b6723ff2bc23ddf3c873351 (diff)
downloadllvm-d77d4f98fbdeaf3d1b0ba99b547b7ac4ec43b834.tar.gz
llvm-d77d4f98fbdeaf3d1b0ba99b547b7ac4ec43b834.tar.bz2
llvm-d77d4f98fbdeaf3d1b0ba99b547b7ac4ec43b834.tar.xz
Fix PR2289: vr defined by multiple implicit_def as result of coalescing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51648 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/2008-05-28-CoalescerBug.ll')
-rw-r--r--test/CodeGen/X86/2008-05-28-CoalescerBug.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2008-05-28-CoalescerBug.ll b/test/CodeGen/X86/2008-05-28-CoalescerBug.ll
new file mode 100644
index 0000000000..68f6ccea4e
--- /dev/null
+++ b/test/CodeGen/X86/2008-05-28-CoalescerBug.ll
@@ -0,0 +1,10 @@
+; RUN: llvm-as < %s | llc -mtriple=x86_64-unknown-linux-gnu
+; PR2289
+
+define void @_ada_ca11001() {
+entry:
+ %tmp59 = call i16 @ca11001_0__cartesian_assign( i8 zeroext 0, i8 zeroext 0, i16 undef ) ; <i16> [#uses=0]
+ unreachable
+}
+
+declare i16 @ca11001_0__cartesian_assign(i8 zeroext , i8 zeroext , i16)