Skip to content

Commit 4e1e3f0

Browse files
committed
#TEMP add temporary instrument selector pattern for creating pointers
to ProgMem
1 parent 6c38f1c commit 4e1e3f0

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
@@ -2109,6 +2109,10 @@ def : Pat<(store i8:$src, (i16 (AVRWrapper tglobaladdr:$dst))),
21092109
def : Pat<(store i16:$src, (i16 (AVRWrapper tglobaladdr:$dst))),
21102110
(STSWKRr tglobaladdr:$dst, i16:$src)>;
21112111

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

0 commit comments

Comments
 (0)