Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LDDWRdYQ - Bad machine code: Using an undefined physical register #32

Closed
dylanmckay opened this issue Apr 26, 2017 · 2 comments
Closed
Labels
A-libcore Affects compiling the core library A-llvm Affects the LLVM AVR backend has-llvm-commit This issue should be fixed in upstream LLVM

Comments

@dylanmckay
Copy link
Member

Found while compiling libcore with the patch from #27 applied

libcore.ll

Reproduction

./bin/llc ~/libcore.ll -O0 -o /dev/null
*** Bad machine code: Using an undefined physical register ***
- function:    _ZN76_$LT$core..char..EscapeDefault$u20$as$u20$core..iter..iterator..Iterator$GT$4next17hd387834b920a4d78E
- basic block: BB#3 bb2 (0x7fb1b59aea38)
- instruction: %R29R28<earlyclobber,def> = LDDWRdYQ
- operand 1:   %R29R28

*** Bad machine code: Using an undefined physical register ***
- function:    _ZN76_$LT$core..char..EscapeDefault$u20$as$u20$core..iter..iterator..Iterator$GT$4next17hd387834b920a4d78E
- basic block: BB#3 bb2 (0x7fb1b59aea38)
- instruction: %R31R30<earlyclobber,def> = LDDWRdYQ
- operand 1:   %R29R28

*** Bad machine code: Using an undefined physical register ***
- function:    _ZN76_$LT$core..char..EscapeDefault$u20$as$u20$core..iter..iterator..Iterator$GT$4next17hd387834b920a4d78E
- basic block: BB#3 bb2 (0x7fb1b59aea38)
- instruction: %R21R20<earlyclobber,def> = LDDWRdYQ
- operand 1:   %R29R28
LLVM ERROR: Found 3 machine code errors.
@dylanmckay
Copy link
Member Author

I've got an upstreamed fix here

@shepmaster
Copy link
Member

Cherry-picked llvm-mirror/llvm@f23578f into avr-rust/llvm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-libcore Affects compiling the core library A-llvm Affects the LLVM AVR backend has-llvm-commit This issue should be fixed in upstream LLVM
Projects
None yet
Development

No branches or pull requests

2 participants