llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
29.09k stars 12k forks source link

clang-cl: error: expected identifier 'short' with inline asm jne short foo #34463

Open llvmbot opened 7 years ago

llvmbot commented 7 years ago
Bugzilla Link 35115
Version trunk
OS Windows NT
Blocks llvm/llvm-project#7187 llvm/llvm-project#11360
Reporter LLVM Bugzilla Contributor

Extended Description

int main() { __asm { jne short foo foo: push ebx } }

cl compiles it, but clang-cl emits:

test.c(3,13) : error: expected identifier jne short foo ^ test.c(3,13) : error: use of undeclared label 'short foo foo: push ebx' 2 errors generated.

llvmbot commented 2 years ago

mentioned in issue llvm/llvm-project#7187