From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3DE683889E36; Thu, 17 Nov 2022 06:45:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3DE683889E36 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668667509; bh=eIzReScz5pvSR1RXPgGFAPPWHUPga4ur5AJmKPGglE8=; h=From:To:Subject:Date:From; b=QVEwLpNuxCGwsl0H5jdZuieohL4ADa/KymraTl0f3/5uhTP50iGFHC2V/RfkNkwiB dxfwPVwLkdMtbXTCkoKwjZFaasS6L/WvOWuzN42gAXmhtDySEZyELEP88tdsmIwlH9 tfE71iXkV/GhF9Y75i4YXsO2VhAPuSPQBEdkxcgQ= From: "chenglulu at loongson dot cn" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/107731] New: error: invalid 'asm': invalid use of '%c' Date: Thu, 17 Nov 2022 06:45:09 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: chenglulu at loongson dot cn X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107731 Bug ID: 107731 Summary: error: invalid 'asm': invalid use of '%c' Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: chenglulu at loongson dot cn CC: paulhua at gcc dot gnu.org, xry111 at gcc dot gnu.org Target Milestone: --- Target: loongarch64-linux-gnu void test(void) { asm (".long %c0" ::"i"(10)); } Compiling this test case under loongarch64 failed with the following information: test1.c: In function 'test': test1.c:3:3: error: invalid 'asm': invalid use of '%c' 3 | asm (".long %c0" | ^~~=