From 73af8c9c57122e5ae61f80d916653db0dbb1e91f Mon Sep 17 00:00:00 2001 From: Jan Voung Date: Wed, 19 Jun 2013 16:12:25 -0700 Subject: Rewrite llvm.flt.rounds to "1" for now, and disallow llvm.flt.rounds. Until there is an intrinsic to *set* the rounding mode, this intrinsic to *get* the rounding mode isn't so useful. Separately we will add a test that for each platform, the initial rounding mode is "1" (round to nearest). That is the case right now for x86, ARM, and MIPS. (see https://codereview.chromium.org/16785003/) BUG=https://code.google.com/p/nativeclient/issues/detail?id=3491 R=mseaborn@chromium.org Review URL: https://codereview.chromium.org/17229007 --- tools/opt/opt.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'tools') diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index 866597ec72..804382fca7 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -624,6 +624,7 @@ int main(int argc, char **argv) { initializeReplacePtrsWithIntsPass(Registry); initializeResolveAliasesPass(Registry); initializeResolvePNaClIntrinsicsPass(Registry); + initializeRewriteLLVMIntrinsicsPass(Registry); initializeRewritePNaClLibraryCallsPass(Registry); initializeStripAttributesPass(Registry); initializeStripMetadataPass(Registry); -- cgit v1.2.3-18-g5258