From: Simon Pilgrim Date: Wed, 19 Apr 2017 20:47:58 +0000 (+0000) Subject: [InstCombine] Add frem constant folding test (PR32177) X-Git-Tag: android-x86-7.1-r4~17495 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=2684aaead6b34eaa08b7d1294ea722a6e63c8e4c;p=android-x86%2Fexternal-llvm.git [InstCombine] Add frem constant folding test (PR32177) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300750 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/InstCombine/constant-fold-math.ll b/test/Transforms/InstCombine/constant-fold-math.ll index 50cd6070896..09263345e9b 100644 --- a/test/Transforms/InstCombine/constant-fold-math.ll +++ b/test/Transforms/InstCombine/constant-fold-math.ll @@ -45,4 +45,13 @@ define double @constant_fold_fmuladd_f64() #0 { 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 }