[llvm-bugs] [Bug 27250] New: aarch64 inline assembly adds number as "#24" instead of plain "24" in the context of .set
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Apr 6 14:33:06 PDT 2016
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: unassignedclangbugs at nondot.org
Reporter: bero at linaro.org
CC: llvm-bugs at lists.llvm.org
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160406/b7ed1b15/attachment.html>
More information about the llvm-bugs
mailing list