https://bugs.llvm.org/show_bug.cgi?id=51654
Bug ID: 51654
Summary: error: invalid type 'const _ExtInt(32)' in asm input
cmp eax, magic
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: unassignedclangb...@nondot.org
Reporter: pedro.lama...@gmail.com
CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org,
neeil...@live.com, richard-l...@metafoo.co.uk
Expected:
Clang assembler accepts constexpr _ExtInt(32) as immediate input operand in an
asm block.
Current:
Clang rejects _ExtInt input operands in asm blocks.
Consider:
constexpr _ExtInt(32) magic = 0x36d76289;
extern
void kernel ();
extern "C"
[[gnu::naked]]
void start ()
{
__asm__
{
cmp eax, magic
jne halt
call kernel
halt:
hlt
jmp halt
}
}
https://godbolt.org/z/3588MW9s3
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs