Skip to content

AArch inline asm: "unknown register name" clobber list #4382

@TishSerg

Description

@TishSerg

Type: LanguageService

The bug

  • OS and Version:
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.3 LTS
Release:	18.04
Codename:	bionic

$ uname -a
Linux serg-VM 4.15.0-64-generic #73-Ubuntu SMP Thu Sep 12 13:16:13 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
  • VS Code Version:
Version: 1.38.1
Commit: b37e54c98e1a74ba89e03073e5a3761284e3ffb0
Date: 2019-09-11T13:30:08.229Z
Electron: 4.2.10
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Linux x64 4.15.0-64-generic
  • C/C++ Extension Version: 0.25.1 (problem exist in v0.23.1 too)
  • No other extensions are installed
  • AArch-specific (ARM) register names aren't recognized in the clobber list of inline asm statement. Nevertheless the code successfully compiles and works.

To Reproduce

  1. Go to any C function body.
  2. Paste asm("mov w0, #0":::"r0");
  3. See error

Expected behavior
AArch-specific register names must be recognized just like x86's eax, rax and so.

Screenshots
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Language ServiceVisual StudioInherited from Visual StudiobugfixedCheck the Milestone for the release in which the fix is or will be available.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions