We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de25392 commit 07a96e3Copy full SHA for 07a96e3
lib/Target/AVR/AVRInstrInfo.td
@@ -2033,8 +2033,10 @@ def Asr16 : ShiftPseudo<
2033
// Non-Instruction Patterns
2034
//===----------------------------------------------------------------------===//
2035
2036
-def : Pat<(load (add i16:$offset, (AVRWrapper tglobaladdr:$base))),
+def : Pat<(i8 (load (add i16:$offset, (AVRWrapper tglobaladdr:$base)))),
2037
(LPMRdZ (SUBIWRdK i16:$offset, tglobaladdr:$base))>;
2038
+def : Pat<(i16 (load (add i16:$offset, (AVRWrapper tglobaladdr:$base)))),
2039
+ (LPMWRdZ (SUBIWRdK i16:$offset, tglobaladdr:$base))>;
2040
2041
//:TODO: look in x86InstrCompiler.td for odd encoding trick related to
2042
// add x, 128 -> sub x, -128. Clang is emitting an eor for this (ldi+eor)
0 commit comments