]> granicus.if.org Git - clang/commit
CGBuiltin: Use frem instruction rather than libcall to implement fmod
authorJan Vesely <jan.vesely@rutgers.edu>
Fri, 26 Sep 2014 01:19:41 +0000 (01:19 +0000)
committerJan Vesely <jan.vesely@rutgers.edu>
Fri, 26 Sep 2014 01:19:41 +0000 (01:19 +0000)
commit6192145ddc2d30258fa5b06942c419eda0291535
tree0509afc279114d294bbf6a354b7df8a7debcfdb5
parent7159053ff39fc804d43dde24ce0682394fd2600d
CGBuiltin: Use frem instruction rather than libcall to implement fmod

AFAICT the semantics of frem match libm's fmod.

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Tom Stellard <tom@stellard.net>
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@218488 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGBuiltin.cpp
test/CodeGen/builtins.c