mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-31 20:00:09 +00:00
compiler: improve target features support
This commit is contained in:
@@ -1708,7 +1708,8 @@ gb_internal lbValue lb_emit_mul_add(lbProcedure *p, lbValue a, lbValue b, lbValu
|
||||
if (is_possible) {
|
||||
switch (build_context.metrics.arch) {
|
||||
case TargetArch_amd64:
|
||||
if (type_size_of(t) == 2) {
|
||||
// NOTE: using the intrinsic when not supported causes slow codegen (See #2928).
|
||||
if (type_size_of(t) == 2 || !check_target_feature_is_enabled(str_lit("fma"), nullptr)) {
|
||||
is_possible = false;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user