[llvm] r258848 - Add a missing test case for r258847.

Cong Hou via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 26 12:09:38 PST 2016


Author: conghou
Date: Tue Jan 26 14:09:38 2016
New Revision: 258848

URL: http://llvm.org/viewvc/llvm-project?rev=258848&view=rev
Log:
Add a missing test case for r258847.


Added:
    llvm/trunk/test/CodeGen/X86/x86-analyze-branch-jne-jp.ll

Added: llvm/trunk/test/CodeGen/X86/x86-analyze-branch-jne-jp.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/x86-analyze-branch-jne-jp.ll?rev=258848&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/X86/x86-analyze-branch-jne-jp.ll (added)
+++ llvm/trunk/test/CodeGen/X86/x86-analyze-branch-jne-jp.ll Tue Jan 26 14:09:38 2016
@@ -0,0 +1,21 @@
+; RUN: llc -mcpu=corei7 -mtriple=x86_64-linux < %s | FileCheck %s -check-prefix=CHECK
+
+; Test if the negation of the non-equality check between floating points are
+; translated to jnp followed by jne.
+
+; CHECK: jne
+; CHECK-NEXT: jnp
+define void @foo(float %f) {
+entry:
+  %cmp = fcmp une float %f, 0.000000e+00
+  br i1 %cmp, label %if.then, label %if.end
+
+if.then:
+  tail call void @a()
+  br label %if.end
+
+if.end:
+  ret void
+}
+
+declare void @a()




More information about the llvm-commits mailing list