You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unable to use floats for an exponent operation at compile time.
Steps to reproduce
Reproduction example:
aliasnum=1.23**4.56fnmain():
print(num)
open-source/mojo/stdlib/stdlib/builtin/_startup.mojo:114:4: error: call expansion failed
open-source/mojo/stdlib/stdlib/builtin/_startup.mojo:45:4: note: function instantiation failed
<unknown>:0: note: failed to compile-time evaluate function call
open-source/mojo/stdlib/stdlib/builtin/simd.mojo:851:8: note: failed to interpret function @stdlib::builtin::simd::SIMD::__pow__(::SIMD[$0, $1],::SIMD[$0, $1]),type=f64,size=1
open-source/mojo/stdlib/stdlib/builtin/simd.mojo:862:20: note: failed to evaluate call
open-source/mojo/stdlib/stdlib/builtin/simd.mojo:2996:4: note: failed to interpret function @stdlib::builtin::simd::_pow[::Int,::DType,::DType](::SIMD[$1, $0],::SIMD[$2, $0]),simd_width=1,type`=f64,type`1=f64
open-source/mojo/stdlib/stdlib/builtin/simd.mojo:3015:21: note: failed to evaluate call
open-source/mojo/stdlib/stdlib/builtin/simd.mojo:3054:4: note: failed to interpret function @stdlib::builtin::simd::_powf[::Int,::DType,::DType](::SIMD[$1, $0],::SIMD[$2, $0]),simd_width=1,type`=f64,type`1=f64
open-source/mojo/stdlib/stdlib/builtin/simd.mojo:3065:33: note: failed to evaluate call
open-source/mojo/stdlib/stdlib/builtin/simd.mojo:3035:4: note: failed to interpret function @stdlib::builtin::simd::_powf_scalar[::DType,::DType](::SIMD[$0, {1}],::SIMD[$1, {1}]),type`=f64,type`1=f64
open-source/mojo/stdlib/stdlib/builtin/simd.mojo:3050:20: note: failed to evaluate call
open-source/mojo/stdlib/stdlib/math/math.mojo:550:4: note: failed to interpret function @stdlib::math::math::exp[::DType,::Int](::SIMD[$0, $1]),type=f64,simd_width=1
open-source/mojo/stdlib/stdlib/math/math.mojo:65:27: note: call expansion failed
<unknown>:0:0: note: failed to evaluate call
open-source/mojo/stdlib/stdlib/builtin/simd.mojo:1590:8: note: failed to interpret function @stdlib::builtin::simd::SIMD::__floor__(::SIMD[$0, $1]),type=f64,size=1
open-source/mojo/stdlib/stdlib/builtin/simd.mojo:1596:57: note: failed to evaluate call
open-source/mojo/stdlib/stdlib/builtin/simd.mojo:1882:8: note: failed to interpret function @stdlib::builtin::simd::SIMD::_floor_ceil_trunc_impl[::StringLiteral](::SIMD[$0, $1]),type=f64,size=1,intrinsic="llvm.floor"
open-source/mojo/stdlib/stdlib/builtin/simd.mojo:1902:74: note: call expansion failed
open-source/mojo/stdlib/stdlib/sys/intrinsics.mojo:90:14: note: failed to interpret operation pop.call_llvm_intrinsic{fastmathFlags: #pop<fmf none>, hasSideEffects: false, intrin: "llvm.floor" : !kgen.string}(#kgen.pack<"1.8618819175149959"> : !kgen.pack<[[typevalue<#kgen.typeref<@"stdlib::builtin::simd::SIMD,type=f64,size=1">>, scalar<f64>]]>)
open-source/mojo/stdlib/stdlib/builtin/simd.mojo:1902:74: note: call expansion failed
open-source/mojo/stdlib/stdlib/sys/intrinsics.mojo:90:14: note: LLVM intrinsic operand has unknown value: #pop<simd "1.8618819175149959"> : !pop.scalar<f64>
System information
- What OS did you do install Mojo on ? MacOs 14.6.1
- Provide version information for Mojo by pasting the output of `mojo -v` mojo 24.6.0 (4487cd6e)
- Provide Magic CLI version by pasting the output of `magic -V` or `magic --version` magic 0.5.1
- Optionally, provide more information with `magic info`.
The text was updated successfully, but these errors were encountered:
Bug description
Unable to use floats for an exponent operation at compile time.
Steps to reproduce
Reproduction example:
System information
The text was updated successfully, but these errors were encountered: