From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpout30.security-mail.net (smtpout30.security-mail.net [85.31.212.35]) by sourceware.org (Postfix) with ESMTPS id 1B1773856261 for ; Wed, 23 Aug 2023 14:39:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1B1773856261 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=kalrayinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=kalrayinc.com Received: from localhost (fx305.security-mail.net [127.0.0.1]) by fx305.security-mail.net (Postfix) with ESMTP id 415AA30F3CC for ; Wed, 23 Aug 2023 16:39:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kalrayinc.com; s=sec-sig-email; t=1692801583; bh=P5jMega4D05bhpTsLuOt5SEUSZwYrGKXuwJCbxK7o6Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=E/PFM4fHGKOIiXEge5Z0MNXmjr95C5UwBh2ik8vvHVk7uoxEGnC/PYArb0MU6Rblg ZxLDMg6u2nI89KtLldf0g1a+7nUAbkhZnn84SRzxH+ZXFYgr0dY8fjVLkG6jtyOikv zjVSo0hL7WWZoRP3flMf+bXeSI9s3l7FInCv4Cq8= Received: from fx305 (fx305.security-mail.net [127.0.0.1]) by fx305.security-mail.net (Postfix) with ESMTP id 18AD630F3B4 for ; Wed, 23 Aug 2023 16:39:43 +0200 (CEST) Received: from FRA01-MR2-obe.outbound.protection.outlook.com (mail-mr2fra01lp0105.outbound.protection.outlook.com [104.47.25.105]) by fx305.security-mail.net (Postfix) with ESMTPS id 7028630F36B for ; Wed, 23 Aug 2023 16:39:42 +0200 (CEST) Received: from MR1P264MB2482.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:33::22) by PR0P264MB2949.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:1d4::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.24; Wed, 23 Aug 2023 14:39:41 +0000 Received: from MR1P264MB2482.FRAP264.PROD.OUTLOOK.COM ([fe80::aeb6:2f26:45ff:5461]) by MR1P264MB2482.FRAP264.PROD.OUTLOOK.COM ([fe80::aeb6:2f26:45ff:5461%6]) with mapi id 15.20.6699.026; Wed, 23 Aug 2023 14:39:41 +0000 X-Virus-Scanned: E-securemail Secumail-id: <179d0.64e61a2e.6f462.0> ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a0bHJZh2YJMCBYqPLVV93rPUZeWQsy05OZqVLVe49iuxmxSGOsCKt035ev38PEpC16bGLoGQMbCrJAUpWdl/9Ldj3LAxIPYUFJ2UbcYjVV+kmKH87H5Jxj92HFVYD4K1htjhEFa9+tkOKtOuvucMhpgG60pkO/GAtJS70L1AadP6MVw3wrJU4qYW/z6gdtlN+IYry5jLLKYFlwZBAPNLJcqIqE3qxdhKU+T526u4Xj4RD8Ql4RDOM2MYk7gmSmnC7UQBvPwaE/4fcGlJh2DOLWGzOeMnszdZTiVzY1ZMWXPHTzkHR3Z/IKz5u9nrjZct/bnSeTeWcTa2hZp6NNQ57A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0fWck64/8hSR03s3F9Hgr5vCgeCgXXKmDZyMWc+eQho=; b=JZxHQNS1yhyaTbw2x+eqZo1IAPkOcEcZHXLNp3Ggmj1SrY5PFkd0w0d0pKHqlj0EJFrvP3qLn71uGZ5akDK9VpgJqqbyv1eCDnPv9Cl98c74m0ONmzEgcqR58goukgW5HBQ6iXwyB59y0nT86IXWYqqm3L5AMT7+WehzMBmaGk6flxFxx+gyHOXyJV8pfV5CSlWzFRzQmS1nFEEdEX2p3Vcbaq17+uh/8G6MbCrhMdPhiDOIdxEI5vxRVbIFdwBZ5l9cV258nNBgpMGuiIO7MMt2OwKMFTcIRX04W++2cA5isRXQ9Rq6gGFe/M2Ux+o+pbBI19am+h5+uEFlT2hSog== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=kalrayinc.com; dmarc=pass action=none header.from=kalrayinc.com; dkim=pass header.d=kalrayinc.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kalrayinc.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0fWck64/8hSR03s3F9Hgr5vCgeCgXXKmDZyMWc+eQho=; b=bUQOU+cO273hIGv6UfWa0WoewirZ3uF2sqMuJ+kdvvUjHgA7I3Xde9efqEomyKlwVT2lkOm1svIR3SbNQieIuUWAaGnH/Uki7LCF962BAK6b8nDkZ1ogUUea1Owq5mj9Jnl/P0h1lfgJ+uCnIUB7CsMLDsFkap3beKgPG0wdl0OUeRJAWcynx4ZuBoVpWnnfBs6uhqWjs+yQH7TWWvtdSfuuSLXyIM8/X/1JFg9DDRlugHNdJ6YAnewZ7cjHk0UjcycN3QIlqUvTWWEmu1FTM+uavv69rlafmE0SowJ4a2lApnPXeUTIHkwDN2C9J9RMiGi9eSN/nQT1kejETPKcbA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=kalrayinc.com; From: Paul Iannetta To: binutils@sourceware.org Cc: Paul Iannetta Subject: [PATCH 3/4] kvx: use {u,}int32_t and {u,}int64_t Date: Wed, 23 Aug 2023 16:39:22 +0200 Message-ID: <20230823143923.10105-4-piannetta@kalrayinc.com> X-Mailer: git-send-email 2.35.1.500.gb896f729e2 In-Reply-To: <20230823143923.10105-1-piannetta@kalrayinc.com> References: <20230823143923.10105-1-piannetta@kalrayinc.com> Content-Transfer-Encoding: 8bit X-ClientProxiedBy: AM0PR08CA0007.eurprd08.prod.outlook.com (2603:10a6:208:d2::20) To MR1P264MB2482.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:33::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MR1P264MB2482:EE_|PR0P264MB2949:EE_ X-MS-Office365-Filtering-Correlation-Id: ba773e7f-516f-4f04-4d9e-08dba3e6c909 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nRSIojgIvzJqVyb5XnQyigtQIunJVbdroW2Qp3up25V3WOPXEQoXiNtLh7Ce63SVDQ0myV4NrpnRnAty8wdVJnJ2616EWYXbApqRmFMFRT46kj0j4WzQtCzAEyDtalDzjdSyXjgFrdMAMPtW/JZHwSzuwAnpte7Hbxj+NqwayYtPvKxQ+1ZgCaBSmNxnYH9l/SS6fEqVQSlonhXAetL5n4U30fxHasmFK5uM0y9s+L5GgNUrhYIf890jSQBHELoCIgVAKhTviPbT2WggDuIunChZ0VEDWYqidqI6vuhe1uj4z6NijEWQii69qEFpn2dHsQg1ADshU/6WOoswCcBT1VmCL9NOiwh8dtGLaIca1FPZYbNuNRZrz6uAi/vt6xqnjkTX8OYAQXqyWsUkfIHKEStlH0KfgsWokC4HKpUWfP/ARx6CROZRKtXikQ4mb5EcfcLLONuZM3pmrS0MbuldI9yPHX5k6eqpCse4vrwny+WPpFES4GNZ5NWnYntD1pCJJ1GxFgcCkF2wYpGVffsLf3N5hDyK5gOF24FRjBR5ntu97HmBZ9tyrOzjxorSaoUq X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MR1P264MB2482.FRAP264.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230031)(39860400002)(366004)(346002)(136003)(396003)(376002)(451199024)(186009)(1800799009)(2906002)(6506007)(38100700002)(6486002)(83380400001)(5660300002)(26005)(86362001)(8676002)(2616005)(107886003)(8936002)(4326008)(316002)(66556008)(66946007)(6512007)(6916009)(66476007)(478600001)(6666004)(36756003)(41300700001)(1076003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: R4ehGre1TAy8ZSI0ZbKcrazvykTlqXqWPS8zdxEvivc+WdMw3puihtaRctl5qpGStlRO9oLCdlXuoVnCmkkG8cxd+xeRfyPmmvD048E3lFrPZxSNsocYYLm4q/39OOXtm6Z8kF+i+fzaZczgGWccXj/NiYdVfUbhnw6k8tB8u8X40/rsdZuUjKePbll2nMjB1LiGSbbBvhZ3XUDU9RNZ+4MHyktmnFeJjUOoUxmavEwadczRwKZf2uXZXc0aTDRKey0v42GLT2hceo+xFGWasv7lwkPNj0S1/S3bHiQFWexMWVXo7TsxoITkuaXNcgw22LdqphZoa3E7GFt6Xpzh5RwWLx/zuCakgXcrtbXPhgKQZ26WjGV8+U59P1zD8op8TUbq3X4lzc+8PzVsHefxTYDINQs7oTpKF+v1c3SDKboOEqckgnGHuaJswCLkyfJBIxE5G3h8XwXgqM6x7V7TDDZFKL64H2Zjth1T+DZUswnVqveQf8SqG3425eWMRyHr2vC7VAYYG2diVE7ll4jHXcQIr7pSLVy9SlcOU1hZNpagxH/bjH9GpNhKMKyRIcNlFqSe7QOHlOBoXgNMoIv6wOuwKt80FoV8SwAGqOII4cgNqYlkbJ9t/VicZw6g3jwgbTlQ2lgNBnzXRhCKchn7u1BLumJSPF3sPQxXyub7HUrkyuM/qRYYoDq+EbBq8lSGDoxZ6LQ1z2qQdR5iBHpgpMPztLD3cyjA5BL4cpPzUgQHf6E1oXj20yya8sUv8WQJfIQWP81h5liuYre/A4VRgtnTx84LEBW/8VGlZIUFpDp4KLP7lErN4dE5Ln6RcF9OF+MrfyKqiIj36RilV6BgOv0S0nuJrhgqssQ4J1jVADKjiptYa7uCWdRbvUjWDQDTOTzdT+i+MTS3Zx7cDVWGyOAflg1TfnSwwyCevK9wH7KZX7EXEMP2RQaY+yN2Jztm BH+dO9X6STVVovdnbYL7gK8/Bnbp5D5fJSI+CfpDcJ+ByfsSMdvIeVXM/cYgwYY4AHBby1Chctr1DlTgIZ7TVm0cF+tA91vUD3T4PY8npy1eDJXInqOaGaxjZv6BAMydSRDWFRHCIQVmbddAvxi0Fnmu5gh5LhGBeHRUsWBjUAbFRuNaGTh09yDU2z21bs5zln3Uwlot3+O9/4HIY+8oFNl5ObwFDLAB9HgAoJaCvc861yGp5ied1GWRPHE/MH4avQCPmNFn0nNKTGAmCTL2oObVBi8JRUsn9Wg8eTII2sMl1f2BMHe5oRLVkOjxQZQ1RCr/43U2L2GCOkafJq0rfCycavYC01qXpO69D7jh2Av5yFM6BFr078fYh9wkzu6hs0vPSDeEGuou6+OGvWIbG+GMKpANklZDRBtHntlhrq7lo8A3LBB8/wl/Ps2KxL1yGAiN6CWuAcT72zYSd31dOJ1MTa72TYu0RHRm1HUanYOfrm4ZmxpHxRHTVt0v47ZkvOLgQxqnnEXEZNNC0MvHluLWI1fIx+T7xrH8njNM2BePY+tFxAfP7NBZBlelK9SvISOUCa/v6uczlkQ+dVe3r+yEK67rnv7W1ySziZsrTFkhSiFglUcJfMpRm3G+bZh8X7Db6RSVox9cqzFOwTsnpQ== X-OriginatorOrg: kalrayinc.com X-MS-Exchange-CrossTenant-Network-Message-Id: ba773e7f-516f-4f04-4d9e-08dba3e6c909 X-MS-Exchange-CrossTenant-AuthSource: MR1P264MB2482.FRAP264.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Aug 2023 14:39:41.4497 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8931925d-7620-4a64-b7fe-20afd86363d3 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 1QpIkk2OEz33o85xkp7gcSMpQHzzDrNcPm08UrUBEkMXtvmi2wJz8rurP2EmW6GifqoOFF7F1osga9kU7GsiIw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR0P264MB2949 Content-Type: text/plain; charset=utf-8 X-ALTERMIMEV2_out: done X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: gas/ChangeLog: 2023-08-23 Paul Iannetta * config/kvx-parse.c (promote_token): use {u,}int32_t and {u,}int64_t. (get_token_class): Likewise. * config/tc-kvx.c (insert_operand): Likewise. * config/tc-kvx.h (struct token_s): Likewise. (struct token_list): Likewise. opcodes/ChangeLog: 2023-08-23 Paul Iannetta * kvx-dis.c (struct decoded_insn): use {u,}int32_t and {u,}int64_t. (decode_insn): Likewise. (print_insn_kvx): Likewise. (decode_prologue_epilogue_bundle): Likewise. * kvx-dis.h (struct kvx_prologue_epilogue_insn): Likewise. --- gas/config/kvx-parse.c | 20 ++++++++++---------- gas/config/tc-kvx.c | 8 ++++---- gas/config/tc-kvx.h | 10 +++++----- opcodes/kvx-dis.c | 32 ++++++++++++++++---------------- opcodes/kvx-dis.h | 2 +- 5 files changed, 36 insertions(+), 36 deletions(-) diff --git a/gas/config/kvx-parse.c b/gas/config/kvx-parse.c index af207be285b..bb51c861625 100644 --- a/gas/config/kvx-parse.c +++ b/gas/config/kvx-parse.c @@ -396,10 +396,10 @@ print_token (struct token_s token, char *buf, int bufsz) buf[i] = 0; } -static long long +static int64_t promote_token (struct token_s tok) { - long long cur_class = tok.class_id & -tok.class_id; + int64_t cur_class = tok.class_id & -tok.class_id; switch (tok.category) { case CAT_REGISTER: @@ -414,8 +414,8 @@ promote_token (struct token_s tok) input_line_pointer = tok.insn + tok.begin; expression (&exp); input_line_pointer = ilp_save; - long long new_class_id = tok.class_id; - long long old_class_id = tok.class_id; + int64_t new_class_id = tok.class_id; + int64_t old_class_id = tok.class_id; while (((new_class_id = env.promote_immediate (old_class_id)) != old_class_id) && ((exp.X_op == O_symbol @@ -451,7 +451,7 @@ is_insn (const struct token_s *token, struct token_class *classes) return res; } -static long long +static int64_t get_token_class (struct token_s *token, struct token_classes *classes, int insn_p, int modifier_p) { int cur = 0; @@ -519,12 +519,12 @@ get_token_class (struct token_s *token, struct token_classes *classes, int insn_ if (class == classes->imm_classes) { - unsigned long long uval + uint64_t uval = (token_val_p ? token->val : strtoull (tok + (tok[0] == '-') + (tok[0] == '+'), NULL, 0)); - long long val = uval; - long long pval = val < 0 ? -uval : uval; + int64_t val = uval; + int64_t pval = val < 0 ? -uval : uval; int neg_power2_p = val < 0 && !(uval & (uval - 1)); unsigned len = pval ? 8 * sizeof (pval) - __builtin_clzll (pval) : 0; while (class[cur].class_id != -1 @@ -821,7 +821,7 @@ retry:; parse_with_restarts (tok, cur_rule[i].jump_target, rules, errs); /* While parsing fails but there is hope since the current token can be promoted. */ - while (!fst_part && tok.class_id != (long long) promote_token (tok)) + while (!fst_part && tok.class_id != (int64_t) promote_token (tok)) { free_token_list (fst_part); tok.class_id = promote_token (tok); @@ -871,7 +871,7 @@ retry:; printf_debug (1, "snd_part: Trying to match: %s\n", TOKEN_NAME (CLASS_ID (tok))); struct token_list *snd_part = parse_with_restarts (tok, cur_rule[i].stack_it, rules, errs); - while (!snd_part && tok.class_id != (long long) promote_token (tok)) + while (!snd_part && tok.class_id != (int64_t) promote_token (tok)) { tok.class_id = promote_token (tok); printf_debug (1, ">> Restart with %s?\n", TOKEN_NAME (CLASS_ID (tok))); diff --git a/gas/config/tc-kvx.c b/gas/config/tc-kvx.c index be8bc7da923..c9cb8adbb3d 100644 --- a/gas/config/tc-kvx.c +++ b/gas/config/tc-kvx.c @@ -458,7 +458,7 @@ static int insert_operand (struct kvxinsn *insn, struct kvx_operand *opdef, struct token_list *tok) { - unsigned long long op = 0; + uint64_t op = 0; struct kvx_bitfield *bfields = opdef->bfield; int bf_nb = opdef->bitfields; int immx_ready = 0; @@ -570,7 +570,7 @@ insert_operand (struct kvxinsn *insn, struct kvx_operand *opdef, { /* This is a immediate: either a regular immediate, or an immediate that was saved in a variable through `.equ'. */ - unsigned long long sval = (long long) tok->val; + uint64_t sval = (int64_t) tok->val; op = opdef->flags & kvxSIGNED ? sval : tok->val; op >>= opdef->shift; } @@ -661,8 +661,8 @@ insert_operand (struct kvxinsn *insn, struct kvx_operand *opdef, for (int bf_idx = 0; bf_idx < bf_nb; bf_idx++) { - unsigned long long value = - ((unsigned long long) op >> bfields[bf_idx].from_offset); + uint64_t value = + ((uint64_t) op >> bfields[bf_idx].from_offset); int j = 0; int to_offset = bfields[bf_idx].to_offset; value &= (1LL << bfields[bf_idx].size) - 1; diff --git a/gas/config/tc-kvx.h b/gas/config/tc-kvx.h index efb57251541..4d29f015c09 100644 --- a/gas/config/tc-kvx.h +++ b/gas/config/tc-kvx.h @@ -46,15 +46,15 @@ struct token_s { char *insn; int begin, end; int category; - long long class_id; - unsigned long long val; + int64_t class_id; + uint64_t val; }; struct token_list { char *tok; - unsigned long long val; - long long class_id; + uint64_t val; + int64_t class_id; int category; int loc; struct token_list *next; @@ -64,7 +64,7 @@ struct token_list struct token_class { const char ** class_values; - long long class_id; + int64_t class_id; int sz; }; diff --git a/opcodes/kvx-dis.c b/opcodes/kvx-dis.c index d7b86791c30..e63430a9e57 100644 --- a/opcodes/kvx-dis.c +++ b/opcodes/kvx-dis.c @@ -539,7 +539,7 @@ struct decoded_insn CAT_IMMEDIATE, } type; /* The value of the operands. */ - unsigned long long val; + uint64_t val; /* If it is an immediate, its sign. */ int sign; /* If it is an immediate, is it pc relative. */ @@ -593,20 +593,20 @@ decode_insn (bfd_vma memaddr, insn_t * insn, struct decoded_insn *res) int flags = op->format[i]->flags; int shift = op->format[i]->shift; int bias = op->format[i]->bias; - unsigned long long value = 0; + uint64_t value = 0; for (int bf_idx = 0; bf_idx < bf_nb; bf_idx++) { int insn_idx = (int) bf[bf_idx].to_offset / 32; int to_offset = bf[bf_idx].to_offset % 32; - unsigned long long encoded_value = + uint64_t encoded_value = insn->syllables[insn_idx] >> to_offset; encoded_value &= (1LL << bf[bf_idx].size) - 1; value |= encoded_value << bf[bf_idx].from_offset; } if (flags & kvxSIGNED) { - unsigned long long signbit = 1LL << (width - 1); + uint64_t signbit = 1LL << (width - 1); value = (value ^ signbit) - signbit; } value = (value << shift) + bias; @@ -1126,13 +1126,13 @@ print_insn_kvx (bfd_vma memaddr, struct disassemble_info *info) { if (dec.operands[i].width <= 32) { - (*info->fprintf_func) (info->stream, "%d (0x%x)", - (int) dec.operands[i].val, - (int) dec.operands[i].val); + (*info->fprintf_func) (info->stream, "%" PRId32 " (0x%" PRIx32 ")", + (int32_t) dec.operands[i].val, + (int32_t) dec.operands[i].val); } else { - (*info->fprintf_func) (info->stream, "%lld (0x%llx)", + (*info->fprintf_func) (info->stream, "%" PRId64 " (0x%" PRIx64 ")", dec.operands[i].val, dec.operands[i].val); } @@ -1141,18 +1141,18 @@ print_insn_kvx (bfd_vma memaddr, struct disassemble_info *info) { if (dec.operands[i].width <= 32) { - (*info->fprintf_func) (info->stream, "%u (0x%x)", - (unsigned int) dec.operands[i]. + (*info->fprintf_func) (info->stream, "%" PRIu32 " (0x%" PRIx32 ")", + (uint32_t) dec.operands[i]. val, - (unsigned int) dec.operands[i]. + (uint32_t) dec.operands[i]. val); } else { - (*info->fprintf_func) (info->stream, "%llu (0x%llx)", - (unsigned long long) dec. + (*info->fprintf_func) (info->stream, "%" PRIu64 " (0x%" PRIx64 ")", + (uint64_t) dec. operands[i].val, - (unsigned long long) dec. + (uint64_t) dec. operands[i].val); } } @@ -1317,7 +1317,7 @@ decode_prologue_epilogue_bundle (bfd_vma memaddr, int flags = fmt->flags; int shift = fmt->shift; int bias = fmt->bias; - unsigned long long encoded_value, value = 0; + uint64_t encoded_value, value = 0; for (int bf_idx = 0; bf_idx < bf_nb; bf_idx++) { @@ -1329,7 +1329,7 @@ decode_prologue_epilogue_bundle (bfd_vma memaddr, } if (flags & kvxSIGNED) { - unsigned long long signbit = 1LL << (width - 1); + uint64_t signbit = 1LL << (width - 1); value = (value ^ signbit) - signbit; } value = (value << shift) + bias; diff --git a/opcodes/kvx-dis.h b/opcodes/kvx-dis.h index e82538b623a..435fe7d9fe9 100644 --- a/opcodes/kvx-dis.h +++ b/opcodes/kvx-dis.h @@ -45,7 +45,7 @@ enum kvx_prologue_epilogue_insn_type struct kvx_prologue_epilogue_insn { enum kvx_prologue_epilogue_insn_type insn_type; - unsigned long long immediate; + uint64_t immediate; int gpr_reg[3]; int nb_gprs; }; -- 2.35.1.500.gb896f729e2