diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2017-04-19 20:47:58 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2017-04-19 20:47:58 +0000 |
commit | 19a6dddd6de7a1f4aecaad954765f8cbf561fcdc (patch) | |
tree | 517a084a0e96fe3fc10dfbdc2199882060a0decb /llvm/test | |
parent | f281d490cca74f370f5121bfd74a9c8175a7a118 (diff) | |
download | bcm5719-llvm-19a6dddd6de7a1f4aecaad954765f8cbf561fcdc.tar.gz bcm5719-llvm-19a6dddd6de7a1f4aecaad954765f8cbf561fcdc.zip |
[InstCombine] Add frem constant folding test (PR32177)
llvm-svn: 300750
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/Transforms/InstCombine/constant-fold-math.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/Transforms/InstCombine/constant-fold-math.ll b/llvm/test/Transforms/InstCombine/constant-fold-math.ll index 50cd6070896..09263345e9b 100644 --- a/llvm/test/Transforms/InstCombine/constant-fold-math.ll +++ b/llvm/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 } |