Skip to content

Commit

Permalink
[InstCombine] Add frem constant folding test (PR3316)
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300757 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
RKSimon committed Apr 19, 2017
1 parent ac9b651 commit 6c2fd36
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/Transforms/InstCombine/constant-fold-math.ll
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,13 @@ define float @constant_fold_frem_f32() #0 {
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 }

0 comments on commit 6c2fd36

Please sign in to comment.