Skip to content

[AArch64] Error when assembling call to function named ror #79729

Closed
@zyedidia

Description

@zyedidia

The following AArch64 assembly file fails to compile with Clang even though it is valid:

ror:
    ret

foo:
    bl ror
$ clang -c test.s
test.s:5:11: error: expected #imm after shift specifier
    bl ror
          ^
$ gcc -c test.s
$ # no error

ror or any other aarch64 shift operation should be a valid function/label name. Tested with the latest version of LLVM.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions