From d027a5f1a470233a0307bcf3c7c4fe0b6494cd87 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 3 May 2021 18:48:48 +0100 Subject: Add min_f16 and max_f16 dependencies --- src/llvm_backend.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/llvm_backend.cpp') diff --git a/src/llvm_backend.cpp b/src/llvm_backend.cpp index a7c149f06..9649af6c9 100644 --- a/src/llvm_backend.cpp +++ b/src/llvm_backend.cpp @@ -5458,6 +5458,7 @@ lbValue lb_emit_min(lbProcedure *p, Type *t, lbValue x, lbValue y) { args[0] = x; args[1] = y; switch (sz) { + case 16: return lb_emit_runtime_call(p, "min_f16", args); case 32: return lb_emit_runtime_call(p, "min_f32", args); case 64: return lb_emit_runtime_call(p, "min_f64", args); } @@ -5475,6 +5476,7 @@ lbValue lb_emit_max(lbProcedure *p, Type *t, lbValue x, lbValue y) { args[0] = x; args[1] = y; switch (sz) { + case 16: return lb_emit_runtime_call(p, "max_f16", args); case 32: return lb_emit_runtime_call(p, "max_f32", args); case 64: return lb_emit_runtime_call(p, "max_f64", args); } -- cgit v1.2.3