diff options
| author | Cong Hou <congh@google.com> | 2016-01-26 20:09:38 +0000 |
|---|---|---|
| committer | Cong Hou <congh@google.com> | 2016-01-26 20:09:38 +0000 |
| commit | 26d04ef9d972b5210251b1859a91fd6e735a14d6 (patch) | |
| tree | 31e1d46f0f58a2a5e075785e3d4746900a991da5 | |
| parent | 551a57f7979653ecff5884f71036577f4f922583 (diff) | |
| download | bcm5719-llvm-26d04ef9d972b5210251b1859a91fd6e735a14d6.tar.gz bcm5719-llvm-26d04ef9d972b5210251b1859a91fd6e735a14d6.zip | |
Add a missing test case for r258847.
llvm-svn: 258848
| -rw-r--r-- | llvm/test/CodeGen/X86/x86-analyze-branch-jne-jp.ll | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/x86-analyze-branch-jne-jp.ll b/llvm/test/CodeGen/X86/x86-analyze-branch-jne-jp.ll new file mode 100644 index 00000000000..fed985b7b56 --- /dev/null +++ b/llvm/test/CodeGen/X86/x86-analyze-branch-jne-jp.ll @@ -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() |

