diff --git a/src/runtime/hexagon/hexagon_module.cc b/src/runtime/hexagon/hexagon_module.cc index 88815c388ccd..41aa5855ceeb 100644 --- a/src/runtime/hexagon/hexagon_module.cc +++ b/src/runtime/hexagon/hexagon_module.cc @@ -483,9 +483,10 @@ hexagon::ArgLayout HexagonModuleNode::BuildArgLayout(const TVMArgs& As) const { ICHECK_EQ(static_cast(A), static_cast(A)); Args.Push(static_cast(A)); break; - // 64-bit values + // As above, treat floating point values as float32. case kDLFloat: - Args.Push(static_cast(A)); + ICHECK_EQ(static_cast(A), static_cast(static_cast(A))); + Args.Push(static_cast(static_cast(A))); break; case kTVMOpaqueHandle: