Skip to content

Commit b93dfd3

Browse files
committed
#TEMP add temporary instrument selector pattern for creating pointers
to ProgMem
1 parent 3015014 commit b93dfd3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Target/AVR/AVRInstrInfo.td

+4
Original file line numberDiff line numberDiff line change
@@ -2108,6 +2108,10 @@ def : Pat<(store i8:$src, (i16 (AVRWrapper tglobaladdr:$dst))),
21082108
def : Pat<(store i16:$src, (i16 (AVRWrapper tglobaladdr:$dst))),
21092109
(STSWKRr tglobaladdr:$dst, i16:$src)>;
21102110

2111+
// Temporary workaround -- this one is BOGUS!
2112+
def : Pat<(i16 (AVRProgMemWrapper tglobaladdr:$dst)),
2113+
(LDIWRdK tglobaladdr:$dst)>;
2114+
21112115
// BlockAddress
21122116
def : Pat<(i16 (AVRWrapper tblockaddress:$dst)),
21132117
(LDIWRdK tblockaddress:$dst)>;

0 commit comments

Comments
 (0)