llvm-project
llvm-project copied to clipboard
This fork of the canonical git mirror of the LLVM subversion repository adds (e)Z80 targets. Please refer to the wiki for important build instructions.
Hello The title says it all! Do you believe it is still possible to rebase on a more recent llvm main branch to facilitate upstreaming? Sebastien
See relevant toolchain issue here: https://github.com/CE-Programming/toolchain/issues/439
Following the ability of the other 8-bit platform supported by LLVM (AVR) to generate ELF object files, I have prepared this crude ELF code emmiter for Z80. It was not...
This code: ``` short foo(unsigned char *data, unsigned long a, unsigned char b) { short var = a / 2 + b; for (unsigned char i = 0; i <...
The compiler crashes and fails to legalize 48 bit not and comparison
main.cpp ``` class a { public: a() = default; }; class b { private: char pad[127]; short x; public: b() = default; a *f() { (void)pad; x = 55; return...
memory.c ``` struct m { char a[150]; char *b; }; char a(struct m a, unsigned p) { return a.b[p - 150]; } ``` compiler crash: ``` fatal error: error in...
Repro `-O1` ``` long a;char b;void c(void){a=0;for(;a!=4;++a){a||(b=0);}} ``` --- Since that doesn't repro anymore, here's a direct repro: ``` target triple = "ez80" define i9 @test() { ret i9 0...
`_fabsl _copysignl _truncl _floorl _ceill _roundl _nearbyintl _rintl _fmaxl _fminl _fmal` which take 64bit `long double` will link to `_fabs _copysign _trunc _floor _ceil _round _nearbyint _rint _fmax _fmin _fma`,...