Skip to content

Any compile fails #3

Closed
Closed
@b-s-a

Description

@b-s-a

I try to compile small function:
$ ~/projects/llvm-project/build/bin/clang -target z180 -v -xc -S -o- - <<<'int main(void) { return 0; }'
fatal error: error in backend: unable to legalize instruction: G_STORE %1:(s16), %0:(p0) :: (store 2 into %ir.retval, align 1) (in function: main)
clang-10: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 10.0.0 (https://github.com/b-s-a/llvm-project.git 040b525c8d7f148c892431cc12a85b4e9bdbf6f0)

More complex functions (for example { return x * y; } or CRC computation) cause same errors (instructions G_LOAD, G_PHI...).

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcrashSomething crashed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions