llvm / llvm-project

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

[inline-asm] clang doesn't accept the operand %1 #97673

Open vfdff opened 2 weeks ago

vfdff commented 2 weeks ago

I except the register value sp will be saved in local variable rsp. But it is only accept by gcc

gcc -c -o testhello.o testhello.c -pg -g

svs-quic commented 2 weeks ago

This looks like a duplicate of #20571.

92040 is an effort to fix this.