From: Sanjay Patel Date: Sat, 2 Sep 2017 14:35:18 +0000 (+0000) Subject: [InstCombine] put 2 related tests in the same file; NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e9b6b5304efef1d673a38ffb63e1716ceac7085;p=llvm [InstCombine] put 2 related tests in the same file; NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312412 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/InstCombine/2007-01-14-FcmpSelf.ll b/test/Transforms/InstCombine/2007-01-14-FcmpSelf.ll deleted file mode 100644 index 4fcfd264f45..00000000000 --- a/test/Transforms/InstCombine/2007-01-14-FcmpSelf.ll +++ /dev/null @@ -1,6 +0,0 @@ -; RUN: opt < %s -instcombine -S | grep "fcmp uno.*0.0" -; PR1111 -define i1 @test(double %X) { - %tmp = fcmp une double %X, %X - ret i1 %tmp -} diff --git a/test/Transforms/InstCombine/fcmp-special.ll b/test/Transforms/InstCombine/fcmp-special.ll index e0ce3a2d088..bef71ef67f3 100644 --- a/test/Transforms/InstCombine/fcmp-special.ll +++ b/test/Transforms/InstCombine/fcmp-special.ll @@ -1,8 +1,8 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py ; RUN: opt < %s -instcombine -S | FileCheck %s -define i1 @misc0(double %arg) { -; CHECK-LABEL: @misc0( +define i1 @oeq_self(double %arg) { +; CHECK-LABEL: @oeq_self( ; CHECK-NEXT: [[TMP:%.*]] = fcmp ord double %arg, 0.000000e+00 ; CHECK-NEXT: ret i1 [[TMP]] ; @@ -10,3 +10,14 @@ define i1 @misc0(double %arg) { ret i1 %tmp } +; PR1111 - https://bugs.llvm.org/show_bug.cgi?id=1111 + +define i1 @une_self(double %x) { +; CHECK-LABEL: @une_self( +; CHECK-NEXT: [[TMP:%.*]] = fcmp uno double %x, 0.000000e+00 +; CHECK-NEXT: ret i1 [[TMP]] +; + %tmp = fcmp une double %x, %x + ret i1 %tmp +} +