[PATCH] D116886: [M68k] Instruction selection to choose neg x when mul x -1 (Fix issue 48588)

Sheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 13 06:18:10 PST 2022


0x59616e added a comment.

In D116886#3229948 <https://reviews.llvm.org/D116886#3229948>, @dougpuob wrote:

> Hi @myhsu
> Even though the instruction selection is focused on `sub 0 x` only, I still want to build a simple function with clang and run it with QEMU user emulator (qemu-m68k). But I have no idea how to cross-compile it with GCC runtime, do you have any document for it or could you show me a brief instruction.

FYI, You can build it with 
`clang --target=m68k $(SOURCE_FILE) -c -o` 
and then
`m68k-linux-gnu-gcc $(SOURCE_OBJECT) -o $(FILE_NAME)`

or
`clang --target=m68k $(SOURCE_FILE) -o $(FILE_NAME) -ccc-gcc-name linux-gnu-gcc`


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D116886/new/

https://reviews.llvm.org/D116886



More information about the llvm-commits mailing list