[llvm] r300750 - [InstCombine] Add frem constant folding test (PR32177)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 19 13:47:59 PDT 2017
Author: rksimon
Date: Wed Apr 19 15:47:58 2017
New Revision: 300750
URL: http://llvm.org/viewvc/llvm-project?rev=300750&view=rev
Log:
[InstCombine] Add frem constant folding test (PR32177)
Modified:
llvm/trunk/test/Transforms/InstCombine/constant-fold-math.ll
Modified: llvm/trunk/test/Transforms/InstCombine/constant-fold-math.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/constant-fold-math.ll?rev=300750&r1=300749&r2=300750&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/constant-fold-math.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/constant-fold-math.ll Wed Apr 19 15:47:58 2017
@@ -45,4 +45,13 @@ define double @constant_fold_fmuladd_f64
ret double %x
}
+; PR32177
+
+; CHECK-LABEL: @constant_fold_frem_f32
+; CHECK-NEXT: ret float 0x41A61B2000000000
+define float @constant_fold_frem_f32() #0 {
+ %x = frem float 0x43cbfcd960000000, 0xc1e2b34a00000000
+ ret float %x
+}
+
attributes #0 = { nounwind readnone }
More information about the llvm-commits
mailing list