[llvm-commits] [llvm] r64215 - in /llvm/branches/Apple/Dib/test/CodeGen/X86: 2009-02-08-CoalescerBug.ll pr3457.ll
Bill Wendling
isanbard at gmail.com
Tue Feb 10 03:11:31 PST 2009
Author: void
Date: Tue Feb 10 05:11:30 2009
New Revision: 64215
URL: http://llvm.org/viewvc/llvm-project?rev=64215&view=rev
Log:
New tests.
Added:
llvm/branches/Apple/Dib/test/CodeGen/X86/2009-02-08-CoalescerBug.ll
llvm/branches/Apple/Dib/test/CodeGen/X86/pr3457.ll
Added: llvm/branches/Apple/Dib/test/CodeGen/X86/2009-02-08-CoalescerBug.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Dib/test/CodeGen/X86/2009-02-08-CoalescerBug.ll?rev=64215&view=auto
==============================================================================
--- llvm/branches/Apple/Dib/test/CodeGen/X86/2009-02-08-CoalescerBug.ll (added)
+++ llvm/branches/Apple/Dib/test/CodeGen/X86/2009-02-08-CoalescerBug.ll Tue Feb 10 05:11:30 2009
@@ -0,0 +1,22 @@
+; RUN: llvm-as < %s | llc -march=x86
+; PR3486
+
+define i32 @foo(i8 signext %p_26) nounwind {
+entry:
+ %0 = icmp eq i8 %p_26, 0 ; <i1> [#uses=2]
+ %or.cond = or i1 false, %0 ; <i1> [#uses=2]
+ %iftmp.1.0 = zext i1 %or.cond to i16 ; <i16> [#uses=1]
+ br i1 %0, label %bb.i, label %bar.exit
+
+bb.i: ; preds = %entry
+ %1 = zext i1 %or.cond to i32 ; <i32> [#uses=1]
+ %2 = sdiv i32 %1, 0 ; <i32> [#uses=1]
+ %3 = trunc i32 %2 to i16 ; <i16> [#uses=1]
+ br label %bar.exit
+
+bar.exit: ; preds = %bb.i, %entry
+ %4 = phi i16 [ %3, %bb.i ], [ %iftmp.1.0, %entry ] ; <i16> [#uses=1]
+ %5 = trunc i16 %4 to i8 ; <i8> [#uses=1]
+ %6 = sext i8 %5 to i32 ; <i32> [#uses=1]
+ ret i32 %6
+}
Added: llvm/branches/Apple/Dib/test/CodeGen/X86/pr3457.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Dib/test/CodeGen/X86/pr3457.ll?rev=64215&view=auto
==============================================================================
--- llvm/branches/Apple/Dib/test/CodeGen/X86/pr3457.ll (added)
+++ llvm/branches/Apple/Dib/test/CodeGen/X86/pr3457.ll Tue Feb 10 05:11:30 2009
@@ -0,0 +1,16 @@
+; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin | not grep fstpt
+; PR3457
+; rdar://6548010
+
+define void @foo(double* nocapture %P) nounwind {
+entry:
+ %0 = tail call double (...)* @test() nounwind ; <double> [#uses=2]
+ %1 = tail call double (...)* @test() nounwind ; <double> [#uses=2]
+ %2 = mul double %0, %0 ; <double> [#uses=1]
+ %3 = mul double %1, %1 ; <double> [#uses=1]
+ %4 = add double %2, %3 ; <double> [#uses=1]
+ store double %4, double* %P, align 8
+ ret void
+}
+
+declare double @test(...)
More information about the llvm-commits
mailing list