[llvm] r312412 - [InstCombine] put 2 related tests in the same file; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 2 07:35:18 PDT 2017
Author: spatel
Date: Sat Sep 2 07:35:18 2017
New Revision: 312412
URL: http://llvm.org/viewvc/llvm-project?rev=312412&view=rev
Log:
[InstCombine] put 2 related tests in the same file; NFC
Removed:
llvm/trunk/test/Transforms/InstCombine/2007-01-14-FcmpSelf.ll
Modified:
llvm/trunk/test/Transforms/InstCombine/fcmp-special.ll
Removed: llvm/trunk/test/Transforms/InstCombine/2007-01-14-FcmpSelf.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/2007-01-14-FcmpSelf.ll?rev=312411&view=auto
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/2007-01-14-FcmpSelf.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/2007-01-14-FcmpSelf.ll (removed)
@@ -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
-}
Modified: llvm/trunk/test/Transforms/InstCombine/fcmp-special.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/fcmp-special.ll?rev=312412&r1=312411&r2=312412&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/fcmp-special.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/fcmp-special.ll Sat Sep 2 07:35:18 2017
@@ -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
+}
+
More information about the llvm-commits
mailing list