forked from OSchip/llvm-project
[InstCombine] put 2 related tests in the same file; NFC
llvm-svn: 312412
This commit is contained in:
parent
16019c5a68
commit
8ae3630fee
|
@ -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
|
||||
}
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue