Skip to content

Commit

Permalink
[llvm] Fix OP_ABSF. (mono/mono#9878)
Browse files Browse the repository at this point in the history
Fixes mono/mono#9869.




<!--
Thank you for your Pull Request!

If you are new to contributing to Mono, please try to do your best at conforming to our coding guidelines http://www.mono-project.com/community/contributing/coding-guidelines/ but don't worry if you get something wrong. One of the project members will help you to get things landed.

Does your pull request fix any of the existing issues? Please use the following format: Fixes #issue-number
-->

Commit migrated from mono/mono@119cd74
  • Loading branch information
vargaz authored and marek-safar committed Aug 6, 2018
1 parent d38b2e8 commit bbfb755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mono/mono/mini/mini-llvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -5474,7 +5474,7 @@ process_bb (EmitContext *ctx, MonoBasicBlock *bb)
/* llvm.fabs not supported on all platforms */
args [0] = convert (ctx, lhs, LLVMDoubleType ());
values [ins->dreg] = LLVMBuildCall (builder, get_intrinsic (ctx, "fabs"), args, 1, dname);
values [ins->dreg] = convert (ctx, lhs, LLVMFloatType ());
values [ins->dreg] = convert (ctx, values [ins->dreg], LLVMFloatType ());
#endif
break;
}
Expand Down

0 comments on commit bbfb755

Please sign in to comment.