https://llvm.org/bugs/show_bug.cgi?id=27250
Bug ID: 27250
Summary: aarch64 inline assembly adds number as "#24" instead
of plain "24" in the context of .set
Product: clang
Version: 3.8
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
This piece of inline assembly (extracted from the Linux kernel):
asm(".globl test; .set test, %0" :: "I"(24));
generates working code in gcc:
.globl test; .set test, 24
but clang generates invalid code:
.globl test; .set test, #24
Probably gcc checks for .set and friends before emitting the #.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs