Open nikic opened 8 months ago
target triple = "aarch64-unknown-linux-gnu" define i16 @test(i16 %x) { %ret = call i16 asm "", "=&{h0},0"(i16 %x) ret i16 %ret }
Running this through llc -O0 results in:
llc -O0
H0 = COPY W8 unimplemented reg-to-reg copy UNREACHABLE executed at /home/npopov/repos/llvm-project/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp:4739!
It works fine if -O0 is not used.
-O0
@llvm/issue-subscribers-backend-aarch64
Author: Nikita Popov (nikic)
Running this through
llc -O0
results in:It works fine if
-O0
is not used.