-
Notifications
You must be signed in to change notification settings - Fork 15
add the fmul into the intepreter #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Plz refer to
or directly from llvm.ir: test/neura/interpreter/interpreter.mlir
|
|
@tancheng Hi, I have add the interpreter.mlir and the multi_ops.mlir, but I am confused how the multi_ops works |
Sorry, I just meant have a test including both sub and mul.
You mean you don't understand something? or it doesn't work on your side? |
| @@ -29,22 +29,14 @@ | |||
| // GOLDEN: 7.0 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May need change 7.0 to 63.0.
| %arg0 = arith.constant 9.0 : f32 | ||
| %cst = arith.constant 2.0 : f32 | ||
| %0 = arith.subf %arg0, %cst : f32 | ||
| %1 = arith.mulf %arg0, %0 : f32 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may need to provide the lowering from Arith to Neura. Currently, you only enable LLVM to Neura.
add arith to neura for fmul
Hello, I have added the fmul for interpreter, let me know if I miss something.