From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id 5DD286ECE6; Wed, 30 Mar 2022 02:49:02 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 5DD286ECE6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1648597742; bh=bHckKnGi71pf5KOTcTOz7yGYdPhB9XlwER9gexS4DPw=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=hCA9UehDETFGUCFiZJvdrpha0DCvN1cQZcjfi/wL4k3GKJCJJnyfr7h56IQiwEU9N Qm+UcMyn1WaovdrPqoxd2rfHNEkJ/qevGzPMlqsc/BjV3oK3tV99m+qjfYOAR7ky0u xtDIwlyKJHBC4O+9boapmE9SbsFsmlCAEEJTRHH4= Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 9BC486ECE6 for ; Wed, 30 Mar 2022 02:49:00 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 9BC486ECE6 Received: by mail-lj1-f171.google.com with SMTP id bn33so25532969ljb.6 for ; Tue, 29 Mar 2022 16:49:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gWV3gclogNrxJdzv3/bCWYXK2k8i5ibZLqaJBvORE48=; b=ryq/gyFncmUZNlXLjcwYanT86MkudzTKjyMBWoU47MgYzGAvwtUG8teuX0VLMid1uD 5jOQjdVWxpxqQmr2USkBxt4qpwXzg7n4mXtgXcLlV4CDq80ilw5Ts8huljWWyUOAqrLR rXG7DvTt6BxRCjRsYijaZEf5Jp7Gboiuw97hLKmh8ADGik6UOOU+JGZtwPsgYOfeA1Uo uUKLVryb6QwAOaZ2xPKkyHFpHVlSqgixT32AgdngIuf7YwIs8ogZwP6O7bJ0BKHalHC+ OOGBY+u2V1pwamJsYdtbQJlfmID5C0phuulAqieZHNVr27KMHUbisg7q0g6dkEW9mawN wVGA== X-Gm-Message-State: AOAM533PaVSB49Y4Em4lT3J3QVzkTzC09eEZmIeQpxg0oUqySZQX/pqn BEEtLVpQocHUiLt7X+dExK5SKFnniTNnvg== X-Google-Smtp-Source: ABdhPJwvFZpAbc/QkIjrItsdtanLmvPbWJEVKyvCnZUZldjEiqCc6w0XVDJwILfoC/h/KwUjvChRtA== X-Received: by 2002:a2e:9d88:0:b0:247:fd40:a321 with SMTP id c8-20020a2e9d88000000b00247fd40a321mr4543336ljj.62.1648597739668; Tue, 29 Mar 2022 16:48:59 -0700 (PDT) Received: from localhost.localdomain ([93.175.11.199]) by smtp.gmail.com with ESMTPSA id k10-20020a2eb74a000000b0024965dbf2d8sm2236021ljo.82.2022.03.29.16.48.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Mar 2022 16:48:59 -0700 (PDT) X-Google-Original-From: Maxim Kokryashkin To: tarantool-patches@dev.tarantool.org, imun@tarantool.org, skaplun@tarantool.org Date: Wed, 30 Mar 2022 02:48:53 +0300 Message-Id: X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH luajit v4 0/3] fix math.min/max inconsistencies X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Maxim Kokryashkin via Tarantool-patches Reply-To: Maxim Kokryashkin Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" Changes in v4: - Added tests for all patches. - Added more informative description for the last patch. GitHub branch: https://github.com/tarantool/luajit/tree/fckxorg/gh-6163-min-max Issue: https://github.com/tarantool/tarantool/issues/6163 Maxim Kokryashkin (1): Cleanup math function compilation and fix inconsistencies. Mike Pall (2): Fix math.min()/math.max() inconsistencies. Don't compile math.modf() anymore. src/lib_math.c | 24 ++--- src/lj_asm.c | 6 -- src/lj_asm_arm.h | 7 +- src/lj_asm_arm64.h | 7 +- src/lj_asm_x86.h | 2 - src/lj_ffrecord.c | 35 +------ src/lj_ir.h | 4 +- src/lj_ircall.h | 14 ++- src/lj_opt_fold.c | 78 ++++++++------- src/lj_opt_split.c | 3 - src/lj_target_x86.h | 6 -- src/lj_vmmath.c | 10 +- src/vm_arm.dasc | 4 +- src/vm_arm64.dasc | 4 +- src/vm_x64.dasc | 2 +- src/vm_x86.dasc | 2 +- .../gh-6163-jit-min-max.test.lua | 96 +++++++++++++++++++ 17 files changed, 177 insertions(+), 127 deletions(-) create mode 100644 test/tarantool-tests/gh-6163-jit-min-max.test.lua -- 2.35.1