Issue 52839
Summary [AVR] ran out of registers during register allocation
Labels backend:AVR
Assignees
Reporter benshi001
    For 
```
__flash const int arr[] ={ 123, 234, 456,67,78,4,8,};
int *p;
int foo(int a) {
    *p = arr[a];
    return arr[a];
}
```
Build with
```
clang a.c --target=avr -mmcu=atmega328 -S -O0 -Wall
```
The following error rises
```
error: ran out of registers during register allocation
error: ran out of registers during register allocation
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to