[llvm] r346239 - [InstCombine] adjust tests to show dropping FMF; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 6 08:07:40 PST 2018
Author: spatel
Date: Tue Nov 6 08:07:39 2018
New Revision: 346239
URL: http://llvm.org/viewvc/llvm-project?rev=346239&view=rev
Log:
[InstCombine] adjust tests to show dropping FMF; NFC
Modified:
llvm/trunk/test/Transforms/InstCombine/fcmp.ll
Modified: llvm/trunk/test/Transforms/InstCombine/fcmp.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/fcmp.ll?rev=346239&r1=346238&r2=346239&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/fcmp.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/fcmp.ll Tue Nov 6 08:07:39 2018
@@ -12,7 +12,7 @@ define i1 @test1(float %x, float %y) {
;
%ext1 = fpext float %x to double
%ext2 = fpext float %y to double
- %cmp = fcmp ogt double %ext1, %ext2
+ %cmp = fcmp nnan ogt double %ext1, %ext2
ret i1 %cmp
}
@@ -22,7 +22,7 @@ define i1 @test2(float %a) {
; CHECK-NEXT: ret i1 [[CMP]]
;
%ext = fpext float %a to double
- %cmp = fcmp ogt double %ext, 1.000000e+00
+ %cmp = fcmp ninf ogt double %ext, 1.000000e+00
ret i1 %cmp
}
More information about the llvm-commits
mailing list