[llvm] r300757 - [InstCombine] Add frem constant folding test (PR3316)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 19 14:09:19 PDT 2017


Author: rksimon
Date: Wed Apr 19 16:09:19 2017
New Revision: 300757

URL: http://llvm.org/viewvc/llvm-project?rev=300757&view=rev
Log:
[InstCombine] Add frem constant folding test (PR3316)

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=300757&r1=300756&r2=300757&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/constant-fold-math.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/constant-fold-math.ll Wed Apr 19 16:09:19 2017
@@ -54,4 +54,13 @@ define float @constant_fold_frem_f32() #
   ret float %x
 }
 
+; PR3316
+
+; CHECK-LABEL: @constant_fold_frem_f64
+; CHECK-NEXT: ret double 0.000000e+00
+define double @constant_fold_frem_f64() {
+  %x = frem double 0x43E0000000000000, 1.000000e+00
+  ret double %x
+}
+
 attributes #0 = { nounwind readnone }




More information about the llvm-commits mailing list