[llvm-commits] [llvm] r133009 - /llvm/trunk/test/CodeGen/X86/undef-label.ll
Rafael Espindola
rafael.espindola at gmail.com
Tue Jun 14 13:38:50 PDT 2011
Author: rafael
Date: Tue Jun 14 15:38:50 2011
New Revision: 133009
URL: http://llvm.org/viewvc/llvm-project?rev=133009&view=rev
Log:
Add a test for the recent regression.
Added:
llvm/trunk/test/CodeGen/X86/undef-label.ll
Added: llvm/trunk/test/CodeGen/X86/undef-label.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/undef-label.ll?rev=133009&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/X86/undef-label.ll (added)
+++ llvm/trunk/test/CodeGen/X86/undef-label.ll Tue Jun 14 15:38:50 2011
@@ -0,0 +1,19 @@
+; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s
+
+; This is a case where we would incorrectly conclude that LBB0_1 could only
+; be reached via fall through and would therefore omit the label.
+
+; CHECK: jne .LBB0_1
+; CHECK-NEXT: jnp .LBB0_3
+; CHECK-NEXT: .LBB0_1:
+
+define void @xyz() {
+entry:
+ br i1 fcmp oeq (double fsub (double undef, double undef), double 0.000000e+00), label %bar, label %foo
+
+foo:
+ br i1 fcmp ogt (double fdiv (double fsub (double fmul (double undef, double undef), double fsub (double undef, double undef)), double fmul (double undef, double undef)), double 1.0), label %foo, label %bar
+
+bar:
+ ret void
+}
More information about the llvm-commits
mailing list