You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can take this LLVM IR file, and compile it into an object file in two possible ways:
Straight via llc -filetype=obj
Going via an assembly file with llc -filetype=asm, and then assembling that with llvm-mc
I would expect the two paths to yield the same object file; however, I get two object files that are different in very wild ways. In particular, there are lots of branches that are assembled differently:
Surely at least one of these two outputs must be wrong; I suspect brne .+0 (i.e. the output of llvm-mc) can't be right, but that doesn't necessarily mean the other is correct either.
I can take this LLVM IR file, and compile it into an object file in two possible ways:
llc -filetype=obj
llc -filetype=asm
, and then assembling that withllvm-mc
I would expect the two paths to yield the same object file; however, I get two object files that are different in very wild ways. In particular, there are lots of branches that are assembled differently:
Surely at least one of these two outputs must be wrong; I suspect
brne .+0
(i.e. the output ofllvm-mc
) can't be right, but that doesn't necessarily mean the other is correct either.To reproduce, check out https://github.com/gergoerdi/llvm-issue-59962/tree/c942e79b663dcab1dee9d9a8c2d0079d321cd19d and run
make
.The text was updated successfully, but these errors were encountered: