jacobly0 / llvm-project

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.
https://github.com/jacobly0/llvm-project/wiki
123 stars 15 forks source link

Can't legalize widths between legal widths. #12

Open jacobly0 opened 4 years ago

jacobly0 commented 4 years ago

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
}

C repro -O0:

struct { int : 18, a : 15; } b; c() { return b.a; }