[PATCH] [RFC PATCH] BPF backend

Alexei Starovoitov alexei.starovoitov at gmail.com
Thu Dec 4 09:44:11 PST 2014


On Thu, Dec 4, 2014 at 8:04 AM, Tom Stellard <tom at stellard.net> wrote:
>> btw is there a way to write tests that check binary encoding
>> inside generated elf files?
>
> If you just want to check encoding of instructions, you can
> use llc's -show-mc-encoding flag.

excellent.
Thank you guys for the suggestions.
I will use both -show-mc-encoding and objdump.

btw, the following is a regression:

char foo[] __attribute__((section("foo"))) = "";

llc: /w/llvm/lib/MC/MCELFStreamer.cpp:62: virtual void
llvm::MCELFStreamer::EmitLabel(llvm::MCSymbol *): Assertion
`Symbol->isUndefined() && "Cannot define a symbol twice!"' failed.

which is similar, but probably not the same as Bug 19778.
was planning to file a bug report...
can I link reviews.llvm and bugzilla accounts?



More information about the llvm-commits mailing list