diff options
author | Eli Bendersky <eliben@chromium.org> | 2013-07-10 13:58:16 -0700 |
---|---|---|
committer | Eli Bendersky <eliben@chromium.org> | 2013-07-10 13:58:16 -0700 |
commit | a7324c581f3f66acfbf98e18dee3d919d85af16d (patch) | |
tree | ff62b06ad8a0ee347c90885659031ddc3c70f566 | |
parent | f5dd243794b81819994b4fce6037ac652dd9f3d8 (diff) |
Reject the llvm.powi intrinsic in the PNaCl ABI verifier.
BUG=https://code.google.com/p/nativeclient/issues/detail?id=3524
R=jfb@chromium.org
Review URL: https://codereview.chromium.org/18614013
-rw-r--r-- | lib/Analysis/NaCl/PNaClABIVerifyModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/NaCl/PNaClABIVerifyModule.cpp b/lib/Analysis/NaCl/PNaClABIVerifyModule.cpp index 890bb907b8..17852ebbef 100644 --- a/lib/Analysis/NaCl/PNaClABIVerifyModule.cpp +++ b/lib/Analysis/NaCl/PNaClABIVerifyModule.cpp @@ -288,6 +288,7 @@ bool AllowedIntrinsics::isAllowed(const Function *Func) { case Intrinsic::log2: case Intrinsic::log10: case Intrinsic::pow: + case Intrinsic::powi: case Intrinsic::sin: // We run -lower-expect to convert Intrinsic::expect into branch weights // and consume in the middle-end. The backend just ignores llvm.expect. @@ -303,7 +304,6 @@ bool AllowedIntrinsics::isAllowed(const Function *Func) { case Intrinsic::dbg_value: return PNaClABIAllowDevIntrinsics || PNaClABIAllowDebugMetadata; case Intrinsic::nacl_target_arch: // Used by translator self-build. - case Intrinsic::powi: // Rounding not defined: support with fast-math? case Intrinsic::prefetch: // TODO(jfb): Use our own data-prefetch intrinsic instead. return PNaClABIAllowDevIntrinsics; } |