[InstCombine] Signed saturation patterns
[llvm-complete.git] / lib / Target / AVR / AVRDevices.td
blob62def457443727ed675951487e5754345d3e1ced
1 //===---------------------------------------------------------------------===//
2 // AVR Device Definitions
3 //===---------------------------------------------------------------------===//
5 // :TODO: Implement the skip errata, see `gcc/config/avr/avr-arch.h` for details
6 // :TODO: We define all devices with SRAM to have all variants of LD/ST/LDD/STD.
7 //        In reality, avr1 (no SRAM) has one variant each of `LD` and `ST`.
8 //        avr2 (with SRAM) adds the rest of the variants.
11 // A feature set aggregates features, grouping them. We don't want to create a
12 // new member in AVRSubtarget (to store a value) for each set because we do not
13 // care if the set is supported, only the subfeatures inside the set. We fix
14 // this by simply setting the same dummy member for all feature sets, which is
15 // then ignored.
16 class FeatureSet<string name, string desc, list<SubtargetFeature> i>
17   : SubtargetFeature<name, "m_FeatureSetDummy", "true", desc, i>;
19 // A family of microcontrollers, defining a set of supported features.
20 class Family<string name, list<SubtargetFeature> i>
21   : FeatureSet<name, !strconcat("The device is a part of the ",
22                name, " family"), i>;
24 // The device has SRAM, and supports the bare minimum of
25 // SRAM-relevant instructions.
27 // These are:
28 // LD - all 9 variants
29 // ST - all 9 variants
30 // LDD - two variants for Y and Z
31 // STD - two variants for Y and Z
32 // `LDS Rd, K`
33 // `STS k, Rr`
34 // `PUSH`/`POP`
35 def FeatureSRAM           : SubtargetFeature<"sram", "m_hasSRAM", "true",
36                                   "The device has random access memory">;
38 // The device supports the `JMP k` and `CALL k` instructions.
39 def FeatureJMPCALL        : SubtargetFeature<"jmpcall", "m_hasJMPCALL", "true",
40                                   "The device supports the `JMP` and "
41                                   "`CALL` instructions">;
44 // The device supports the indirect branches `IJMP` and `ICALL`.
45 def FeatureIJMPCALL       : SubtargetFeature<"ijmpcall", "m_hasIJMPCALL",
46                                   "true",
47                                   "The device supports `IJMP`/`ICALL`"
48                                   "instructions">;
50 // The device supports the extended indirect branches `EIJMP` and `EICALL`.
51 def FeatureEIJMPCALL      : SubtargetFeature<"eijmpcall", "m_hasEIJMPCALL",
52                                   "true", "The device supports the "
53                                   "`EIJMP`/`EICALL` instructions">;
55 // The device supports `ADDI Rd, K`, `SUBI Rd, K`.
56 def FeatureADDSUBIW       : SubtargetFeature<"addsubiw", "m_hasADDSUBIW",
57                                   "true", "Enable 16-bit register-immediate "
58                                   "addition and subtraction instructions">;
60 // The device has an 8-bit stack pointer (SP) register.
61 def FeatureSmallStack     : SubtargetFeature<"smallstack", "m_hasSmallStack",
62                                   "true", "The device has an 8-bit "
63                                   "stack pointer">;
65 // The device supports the 16-bit GPR pair MOVW instruction.
66 def FeatureMOVW           : SubtargetFeature<"movw", "m_hasMOVW", "true",
67                                   "The device supports the 16-bit MOVW "
68                                   "instruction">;
70 // The device supports the `LPM` instruction, with implied destination being r0.
71 def FeatureLPM            : SubtargetFeature<"lpm", "m_hasLPM", "true",
72                                   "The device supports the `LPM` instruction">;
74 // The device supports the `LPM Rd, Z[+] instruction.
75 def FeatureLPMX           : SubtargetFeature<"lpmx", "m_hasLPMX", "true",
76                                   "The device supports the `LPM Rd, Z[+]` "
77                                   "instruction">;
79 // The device supports the `ELPM` instruction.
80 def FeatureELPM           : SubtargetFeature<"elpm", "m_hasELPM", "true",
81                                   "The device supports the ELPM instruction">;
83 // The device supports the `ELPM Rd, Z[+]` instructions.
84 def FeatureELPMX          : SubtargetFeature<"elpmx", "m_hasELPMX", "true",
85                                   "The device supports the `ELPM Rd, Z[+]` "
86                                   "instructions">;
88 // The device supports the `SPM` instruction.
89 def FeatureSPM            : SubtargetFeature<"spm", "m_hasSPM", "true",
90                                   "The device supports the `SPM` instruction">;
92 // The device supports the `SPM Z+` instruction.
93 def FeatureSPMX           : SubtargetFeature<"spmx", "m_hasSPMX", "true",
94                                   "The device supports the `SPM Z+` "
95                                   "instruction">;
97 // The device supports the `DES k` instruction.
98 def FeatureDES            : SubtargetFeature<"des", "m_hasDES", "true",
99                                   "The device supports the `DES k` encryption "
100                                   "instruction">;
102 // The device supports the Read-Write-Modify instructions
103 // XCH, LAS, LAC, and LAT.
104 def FeatureRMW            : SubtargetFeature<"rmw", "m_supportsRMW", "true",
105                                   "The device supports the read-write-modify "
106                                   "instructions: XCH, LAS, LAC, LAT">;
108 // The device supports the `[F]MUL[S][U]` family of instructions.
109 def FeatureMultiplication : SubtargetFeature<"mul", "m_supportsMultiplication",
110                                   "true", "The device supports the "
111                                   "multiplication instructions">;
113 // The device supports the `BREAK` instruction.
114 def FeatureBREAK          : SubtargetFeature<"break", "m_hasBREAK", "true",
115                                   "The device supports the `BREAK` debugging "
116                                   "instruction">;
118 // The device has instruction encodings specific to the Tiny core.
119 def FeatureTinyEncoding   : SubtargetFeature<"tinyencoding",
120                                   "m_hasTinyEncoding", "true",
121                                   "The device has Tiny core specific "
122                                   "instruction encodings">;
124 class ELFArch<string name>  : SubtargetFeature<"", "ELFArch",
125                                     !strconcat("ELF::",name), "">;
127 // ELF e_flags architecture values
128 def ELFArchAVR1    : ELFArch<"EF_AVR_ARCH_AVR1">;
129 def ELFArchAVR2    : ELFArch<"EF_AVR_ARCH_AVR2">;
130 def ELFArchAVR25   : ELFArch<"EF_AVR_ARCH_AVR25">;
131 def ELFArchAVR3    : ELFArch<"EF_AVR_ARCH_AVR3">;
132 def ELFArchAVR31   : ELFArch<"EF_AVR_ARCH_AVR31">;
133 def ELFArchAVR35   : ELFArch<"EF_AVR_ARCH_AVR35">;
134 def ELFArchAVR4    : ELFArch<"EF_AVR_ARCH_AVR4">;
135 def ELFArchAVR5    : ELFArch<"EF_AVR_ARCH_AVR5">;
136 def ELFArchAVR51   : ELFArch<"EF_AVR_ARCH_AVR51">;
137 def ELFArchAVR6    : ELFArch<"EF_AVR_ARCH_AVR6">;
138 def ELFArchTiny    : ELFArch<"EF_AVR_ARCH_AVRTINY">;
139 def ELFArchXMEGA1  : ELFArch<"EF_AVR_ARCH_XMEGA1">;
140 def ELFArchXMEGA2  : ELFArch<"EF_AVR_ARCH_XMEGA2">;
141 def ELFArchXMEGA3  : ELFArch<"EF_AVR_ARCH_XMEGA3">;
142 def ELFArchXMEGA4  : ELFArch<"EF_AVR_ARCH_XMEGA4">;
143 def ELFArchXMEGA5  : ELFArch<"EF_AVR_ARCH_XMEGA5">;
144 def ELFArchXMEGA6  : ELFArch<"EF_AVR_ARCH_XMEGA6">;
145 def ELFArchXMEGA7  : ELFArch<"EF_AVR_ARCH_XMEGA7">;
147 //===---------------------------------------------------------------------===//
148 // AVR Families
149 //===---------------------------------------------------------------------===//
151 // The device has at least the bare minimum that **every** single AVR
152 // device should have.
153 def FamilyAVR0           : Family<"avr0", []>;
155 def FamilyAVR1           : Family<"avr1", [FamilyAVR0, FeatureLPM]>;
157 def FamilyAVR2           : Family<"avr2",
158                                  [FamilyAVR1, FeatureIJMPCALL, FeatureADDSUBIW,
159                                   FeatureSRAM]>;
161 def FamilyAVR25          : Family<"avr25",
162                                  [FamilyAVR2, FeatureMOVW, FeatureLPMX,
163                                   FeatureSPM, FeatureBREAK]>;
165 def FamilyAVR3           : Family<"avr3",
166                                  [FamilyAVR2, FeatureJMPCALL]>;
168 def FamilyAVR31          : Family<"avr31",
169                                  [FamilyAVR3, FeatureELPM]>;
171 def FamilyAVR35          : Family<"avr35",
172                                  [FamilyAVR3, FeatureMOVW, FeatureLPMX,
173                                   FeatureSPM, FeatureBREAK]>;
175 def FamilyAVR4           : Family<"avr4",
176                                  [FamilyAVR2, FeatureMultiplication,
177                                   FeatureMOVW, FeatureLPMX, FeatureSPM,
178                                   FeatureBREAK]>;
180 def FamilyAVR5           : Family<"avr5",
181                                  [FamilyAVR3, FeatureMultiplication,
182                                   FeatureMOVW, FeatureLPMX, FeatureSPM,
183                                   FeatureBREAK]>;
185 def FamilyAVR51          : Family<"avr51",
186                                  [FamilyAVR5, FeatureELPM, FeatureELPMX]>;
188 def FamilyAVR6           : Family<"avr6",
189                                  [FamilyAVR51]>;
191 def FamilyTiny           : Family<"avrtiny",
192                                  [FamilyAVR0, FeatureBREAK, FeatureSRAM,
193                                   FeatureTinyEncoding]>;
195 def FamilyXMEGA          : Family<"xmega",
196                                  [FamilyAVR51, FeatureEIJMPCALL, FeatureSPMX,
197                                   FeatureDES]>;
199 def FamilyXMEGAU         : Family<"xmegau",
200                                   [FamilyXMEGA, FeatureRMW]>;
202 def FeatureSetSpecial    : FeatureSet<"special",
203                                       "Enable use of the entire instruction "
204                                       "set - used for debugging",
205                                       [FeatureSRAM, FeatureJMPCALL,
206                                        FeatureIJMPCALL, FeatureEIJMPCALL,
207                                        FeatureADDSUBIW, FeatureMOVW,
208                                        FeatureLPM, FeatureLPMX, FeatureELPM,
209                                        FeatureELPMX, FeatureSPM, FeatureSPMX,
210                                        FeatureDES, FeatureRMW,
211                                        FeatureMultiplication, FeatureBREAK]>;
213 //===---------------------------------------------------------------------===//
214 // AVR microcontrollers supported.
215 //===---------------------------------------------------------------------===//
217 class Device<string Name, Family Fam, ELFArch Arch,
218              list<SubtargetFeature> ExtraFeatures = []>
219   : Processor<Name, NoItineraries, !listconcat([Fam,Arch],ExtraFeatures)>;
221 // Generic MCUs
222 // Note that several versions of GCC has strange ELF architecture
223 // settings for backwards compatibility - see `gas/config/tc-avr.c`
224 // in AVR binutils. We do not replicate this.
225 def : Device<"avr1",      FamilyAVR1,    ELFArchAVR1>;
226 def : Device<"avr2",      FamilyAVR2,    ELFArchAVR2>;
227 def : Device<"avr25",     FamilyAVR25,   ELFArchAVR25>;
228 def : Device<"avr3",      FamilyAVR3,    ELFArchAVR3>;
229 def : Device<"avr31",     FamilyAVR31,   ELFArchAVR31>;
230 def : Device<"avr35",     FamilyAVR35,   ELFArchAVR35>;
231 def : Device<"avr4",      FamilyAVR4,    ELFArchAVR4>;
232 def : Device<"avr5",      FamilyAVR5,    ELFArchAVR5>;
233 def : Device<"avr51",     FamilyAVR51,   ELFArchAVR51>;
234 def : Device<"avr6",      FamilyAVR6,    ELFArchAVR6>;
235 def : Device<"avrxmega1", FamilyXMEGA,   ELFArchXMEGA1>;
236 def : Device<"avrxmega2", FamilyXMEGA,   ELFArchXMEGA2>;
237 def : Device<"avrxmega3", FamilyXMEGA,   ELFArchXMEGA3>;
238 def : Device<"avrxmega4", FamilyXMEGA,   ELFArchXMEGA4>;
239 def : Device<"avrxmega5", FamilyXMEGA,   ELFArchXMEGA5>;
240 def : Device<"avrxmega6", FamilyXMEGA,   ELFArchXMEGA6>;
241 def : Device<"avrxmega7", FamilyXMEGA,   ELFArchXMEGA7>;
242 def : Device<"avrtiny",   FamilyTiny,    ELFArchTiny>;
244 // Specific MCUs
245 def : Device<"at90s1200",          FamilyAVR0, ELFArchAVR1>;
246 def : Device<"attiny11",           FamilyAVR1, ELFArchAVR1>;
247 def : Device<"attiny12",           FamilyAVR1, ELFArchAVR1>;
248 def : Device<"attiny15",           FamilyAVR1, ELFArchAVR1>;
249 def : Device<"attiny28",           FamilyAVR1, ELFArchAVR1>;
250 def : Device<"at90s2313",          FamilyAVR2, ELFArchAVR2>;
251 def : Device<"at90s2323",          FamilyAVR2, ELFArchAVR2>;
252 def : Device<"at90s2333",          FamilyAVR2, ELFArchAVR2>;
253 def : Device<"at90s2343",          FamilyAVR2, ELFArchAVR2>;
254 def : Device<"attiny22",           FamilyAVR2, ELFArchAVR2>;
255 def : Device<"attiny26",           FamilyAVR2, ELFArchAVR2, [FeatureLPMX]>;
256 def : Device<"at86rf401",          FamilyAVR2, ELFArchAVR25,
257              [FeatureMOVW, FeatureLPMX]>;
258 def : Device<"at90s4414",          FamilyAVR2, ELFArchAVR2>;
259 def : Device<"at90s4433",          FamilyAVR2, ELFArchAVR2>;
260 def : Device<"at90s4434",          FamilyAVR2, ELFArchAVR2>;
261 def : Device<"at90s8515",          FamilyAVR2, ELFArchAVR2>;
262 def : Device<"at90c8534",          FamilyAVR2, ELFArchAVR2>;
263 def : Device<"at90s8535",          FamilyAVR2, ELFArchAVR2>;
264 def : Device<"ata5272",            FamilyAVR25, ELFArchAVR25>;
265 def : Device<"attiny13",           FamilyAVR25, ELFArchAVR25>;
266 def : Device<"attiny13a",          FamilyAVR25, ELFArchAVR25>;
267 def : Device<"attiny2313",         FamilyAVR25, ELFArchAVR25>;
268 def : Device<"attiny2313a",        FamilyAVR25, ELFArchAVR25>;
269 def : Device<"attiny24",           FamilyAVR25, ELFArchAVR25>;
270 def : Device<"attiny24a",          FamilyAVR25, ELFArchAVR25>;
271 def : Device<"attiny4313",         FamilyAVR25, ELFArchAVR25>;
272 def : Device<"attiny44",           FamilyAVR25, ELFArchAVR25>;
273 def : Device<"attiny44a",          FamilyAVR25, ELFArchAVR25>;
274 def : Device<"attiny84",           FamilyAVR25, ELFArchAVR25>;
275 def : Device<"attiny84a",          FamilyAVR25, ELFArchAVR25>;
276 def : Device<"attiny25",           FamilyAVR25, ELFArchAVR25>;
277 def : Device<"attiny45",           FamilyAVR25, ELFArchAVR25>;
278 def : Device<"attiny85",           FamilyAVR25, ELFArchAVR25>;
279 def : Device<"attiny261",          FamilyAVR25, ELFArchAVR25>;
280 def : Device<"attiny261a",         FamilyAVR25, ELFArchAVR25>;
281 def : Device<"attiny461",          FamilyAVR25, ELFArchAVR25>;
282 def : Device<"attiny461a",         FamilyAVR25, ELFArchAVR25>;
283 def : Device<"attiny861",          FamilyAVR25, ELFArchAVR25>;
284 def : Device<"attiny861a",         FamilyAVR25, ELFArchAVR25>;
285 def : Device<"attiny87",           FamilyAVR25, ELFArchAVR25>;
286 def : Device<"attiny43u",          FamilyAVR25, ELFArchAVR25>;
287 def : Device<"attiny48",           FamilyAVR25, ELFArchAVR25>;
288 def : Device<"attiny88",           FamilyAVR25, ELFArchAVR25>;
289 def : Device<"attiny828",          FamilyAVR25, ELFArchAVR25>;
290 def : Device<"at43usb355",         FamilyAVR3,  ELFArchAVR3>;
291 def : Device<"at76c711",           FamilyAVR3,  ELFArchAVR3>;
292 def : Device<"atmega103",          FamilyAVR31, ELFArchAVR31>;
293 def : Device<"at43usb320",         FamilyAVR31, ELFArchAVR31>;
294 def : Device<"attiny167",          FamilyAVR35, ELFArchAVR35>;
295 def : Device<"at90usb82",          FamilyAVR35, ELFArchAVR35>;
296 def : Device<"at90usb162",         FamilyAVR35, ELFArchAVR35>;
297 def : Device<"ata5505",            FamilyAVR35, ELFArchAVR35>;
298 def : Device<"atmega8u2",          FamilyAVR35, ELFArchAVR35>;
299 def : Device<"atmega16u2",         FamilyAVR35, ELFArchAVR35>;
300 def : Device<"atmega32u2",         FamilyAVR35, ELFArchAVR35>;
301 def : Device<"attiny1634",         FamilyAVR35, ELFArchAVR35>;
302 def : Device<"atmega8",            FamilyAVR4,  ELFArchAVR4>; // FIXME: family may be wrong
303 def : Device<"ata6289",            FamilyAVR4,  ELFArchAVR4>;
304 def : Device<"atmega8a",           FamilyAVR4,  ELFArchAVR4>;
305 def : Device<"ata6285",            FamilyAVR4,  ELFArchAVR4>;
306 def : Device<"ata6286",            FamilyAVR4,  ELFArchAVR4>;
307 def : Device<"atmega48",           FamilyAVR4,  ELFArchAVR4>;
308 def : Device<"atmega48a",          FamilyAVR4,  ELFArchAVR4>;
309 def : Device<"atmega48pa",         FamilyAVR4,  ELFArchAVR4>;
310 def : Device<"atmega48p",          FamilyAVR4,  ELFArchAVR4>;
311 def : Device<"atmega88",           FamilyAVR4,  ELFArchAVR4>;
312 def : Device<"atmega88a",          FamilyAVR4,  ELFArchAVR4>;
313 def : Device<"atmega88p",          FamilyAVR4,  ELFArchAVR4>;
314 def : Device<"atmega88pa",         FamilyAVR4,  ELFArchAVR4>;
315 def : Device<"atmega8515",         FamilyAVR2,  ELFArchAVR4,
316              [FeatureMultiplication, FeatureMOVW, FeatureLPMX, FeatureSPM]>;
317 def : Device<"atmega8535",         FamilyAVR2,  ELFArchAVR4,
318              [FeatureMultiplication, FeatureMOVW, FeatureLPMX, FeatureSPM]>;
319 def : Device<"atmega8hva",         FamilyAVR4,  ELFArchAVR4>;
320 def : Device<"at90pwm1",           FamilyAVR4,  ELFArchAVR4>;
321 def : Device<"at90pwm2",           FamilyAVR4,  ELFArchAVR4>;
322 def : Device<"at90pwm2b",          FamilyAVR4,  ELFArchAVR4>;
323 def : Device<"at90pwm3",           FamilyAVR4,  ELFArchAVR4>;
324 def : Device<"at90pwm3b",          FamilyAVR4,  ELFArchAVR4>;
325 def : Device<"at90pwm81",          FamilyAVR4,  ELFArchAVR4>;
326 def : Device<"ata5790",            FamilyAVR5,  ELFArchAVR5>;
327 def : Device<"ata5795",            FamilyAVR5,  ELFArchAVR5>;
328 def : Device<"atmega16",           FamilyAVR5,  ELFArchAVR5>;
329 def : Device<"atmega16a",          FamilyAVR5,  ELFArchAVR5>;
330 def : Device<"atmega161",          FamilyAVR3,  ELFArchAVR5,
331              [FeatureMultiplication, FeatureMOVW, FeatureLPMX, FeatureSPM]>;
332 def : Device<"atmega162",          FamilyAVR5,  ELFArchAVR5>;
333 def : Device<"atmega163",          FamilyAVR3,  ELFArchAVR5,
334              [FeatureMultiplication, FeatureMOVW, FeatureLPMX, FeatureSPM]>;
335 def : Device<"atmega164a",         FamilyAVR5,  ELFArchAVR5>;
336 def : Device<"atmega164p",         FamilyAVR5,  ELFArchAVR5>;
337 def : Device<"atmega164pa",        FamilyAVR5,  ELFArchAVR5>;
338 def : Device<"atmega165",          FamilyAVR5,  ELFArchAVR5>;
339 def : Device<"atmega165a",         FamilyAVR5,  ELFArchAVR5>;
340 def : Device<"atmega165p",         FamilyAVR5,  ELFArchAVR5>;
341 def : Device<"atmega165pa",        FamilyAVR5,  ELFArchAVR5>;
342 def : Device<"atmega168",          FamilyAVR5,  ELFArchAVR5>;
343 def : Device<"atmega168a",         FamilyAVR5,  ELFArchAVR5>;
344 def : Device<"atmega168p",         FamilyAVR5,  ELFArchAVR5>;
345 def : Device<"atmega168pa",        FamilyAVR5,  ELFArchAVR5>;
346 def : Device<"atmega169",          FamilyAVR5,  ELFArchAVR5>;
347 def : Device<"atmega169a",         FamilyAVR5,  ELFArchAVR5>;
348 def : Device<"atmega169p",         FamilyAVR5,  ELFArchAVR5>;
349 def : Device<"atmega169pa",        FamilyAVR5,  ELFArchAVR5>;
350 def : Device<"atmega32",           FamilyAVR5,  ELFArchAVR5>;
351 def : Device<"atmega32a",          FamilyAVR5,  ELFArchAVR5>;
352 def : Device<"atmega323",          FamilyAVR5,  ELFArchAVR5>;
353 def : Device<"atmega324a",         FamilyAVR5,  ELFArchAVR5>;
354 def : Device<"atmega324p",         FamilyAVR5,  ELFArchAVR5>;
355 def : Device<"atmega324pa",        FamilyAVR5,  ELFArchAVR5>;
356 def : Device<"atmega325",          FamilyAVR5,  ELFArchAVR5>;
357 def : Device<"atmega325a",         FamilyAVR5,  ELFArchAVR5>;
358 def : Device<"atmega325p",         FamilyAVR5,  ELFArchAVR5>;
359 def : Device<"atmega325pa",        FamilyAVR5,  ELFArchAVR5>;
360 def : Device<"atmega3250",         FamilyAVR5,  ELFArchAVR5>;
361 def : Device<"atmega3250a",        FamilyAVR5,  ELFArchAVR5>;
362 def : Device<"atmega3250p",        FamilyAVR5,  ELFArchAVR5>;
363 def : Device<"atmega3250pa",       FamilyAVR5,  ELFArchAVR5>;
364 def : Device<"atmega328",          FamilyAVR5,  ELFArchAVR5>;
365 def : Device<"atmega328p",         FamilyAVR5,  ELFArchAVR5>;
366 def : Device<"atmega329",          FamilyAVR5,  ELFArchAVR5>;
367 def : Device<"atmega329a",         FamilyAVR5,  ELFArchAVR5>;
368 def : Device<"atmega329p",         FamilyAVR5,  ELFArchAVR5>;
369 def : Device<"atmega329pa",        FamilyAVR5,  ELFArchAVR5>;
370 def : Device<"atmega3290",         FamilyAVR5,  ELFArchAVR5>;
371 def : Device<"atmega3290a",        FamilyAVR5,  ELFArchAVR5>;
372 def : Device<"atmega3290p",        FamilyAVR5,  ELFArchAVR5>;
373 def : Device<"atmega3290pa",       FamilyAVR5,  ELFArchAVR5>;
374 def : Device<"atmega406",          FamilyAVR5,  ELFArchAVR5>;
375 def : Device<"atmega64",           FamilyAVR5,  ELFArchAVR5>;
376 def : Device<"atmega64a",          FamilyAVR5,  ELFArchAVR5>;
377 def : Device<"atmega640",          FamilyAVR5,  ELFArchAVR5>;
378 def : Device<"atmega644",          FamilyAVR5,  ELFArchAVR5>;
379 def : Device<"atmega644a",         FamilyAVR5,  ELFArchAVR5>;
380 def : Device<"atmega644p",         FamilyAVR5,  ELFArchAVR5>;
381 def : Device<"atmega644pa",        FamilyAVR5,  ELFArchAVR5>;
382 def : Device<"atmega645",          FamilyAVR5,  ELFArchAVR5>;
383 def : Device<"atmega645a",         FamilyAVR5,  ELFArchAVR5>;
384 def : Device<"atmega645p",         FamilyAVR5,  ELFArchAVR5>;
385 def : Device<"atmega649",          FamilyAVR5,  ELFArchAVR5>;
386 def : Device<"atmega649a",         FamilyAVR5,  ELFArchAVR5>;
387 def : Device<"atmega649p",         FamilyAVR5,  ELFArchAVR5>;
388 def : Device<"atmega6450",         FamilyAVR5,  ELFArchAVR5>;
389 def : Device<"atmega6450a",        FamilyAVR5,  ELFArchAVR5>;
390 def : Device<"atmega6450p",        FamilyAVR5,  ELFArchAVR5>;
391 def : Device<"atmega6490",         FamilyAVR5,  ELFArchAVR5>;
392 def : Device<"atmega6490a",        FamilyAVR5,  ELFArchAVR5>;
393 def : Device<"atmega6490p",        FamilyAVR5,  ELFArchAVR5>;
394 def : Device<"atmega64rfr2",       FamilyAVR5,  ELFArchAVR5>;
395 def : Device<"atmega644rfr2",      FamilyAVR5,  ELFArchAVR5>;
396 def : Device<"atmega16hva",        FamilyAVR5,  ELFArchAVR5>;
397 def : Device<"atmega16hva2",       FamilyAVR5,  ELFArchAVR5>;
398 def : Device<"atmega16hvb",        FamilyAVR5,  ELFArchAVR5>;
399 def : Device<"atmega16hvbrevb",    FamilyAVR5,  ELFArchAVR5>;
400 def : Device<"atmega32hvb",        FamilyAVR5,  ELFArchAVR5>;
401 def : Device<"atmega32hvbrevb",    FamilyAVR5,  ELFArchAVR5>;
402 def : Device<"atmega64hve",        FamilyAVR5,  ELFArchAVR5>;
403 def : Device<"at90can32",          FamilyAVR5,  ELFArchAVR5>;
404 def : Device<"at90can64",          FamilyAVR5,  ELFArchAVR5>;
405 def : Device<"at90pwm161",         FamilyAVR5,  ELFArchAVR5>;
406 def : Device<"at90pwm216",         FamilyAVR5,  ELFArchAVR5>;
407 def : Device<"at90pwm316",         FamilyAVR5,  ELFArchAVR5>;
408 def : Device<"atmega32c1",         FamilyAVR5,  ELFArchAVR5>;
409 def : Device<"atmega64c1",         FamilyAVR5,  ELFArchAVR5>;
410 def : Device<"atmega16m1",         FamilyAVR5,  ELFArchAVR5>;
411 def : Device<"atmega32m1",         FamilyAVR5,  ELFArchAVR5>;
412 def : Device<"atmega64m1",         FamilyAVR5,  ELFArchAVR5>;
413 def : Device<"atmega16u4",         FamilyAVR5,  ELFArchAVR5>;
414 def : Device<"atmega32u4",         FamilyAVR5,  ELFArchAVR5>;
415 def : Device<"atmega32u6",         FamilyAVR5,  ELFArchAVR5>;
416 def : Device<"at90usb646",         FamilyAVR5,  ELFArchAVR5>;
417 def : Device<"at90usb647",         FamilyAVR5,  ELFArchAVR5>;
418 def : Device<"at90scr100",         FamilyAVR5,  ELFArchAVR5>;
419 def : Device<"at94k",              FamilyAVR3,  ELFArchAVR5,
420              [FeatureMultiplication, FeatureMOVW, FeatureLPMX]>;
421 def : Device<"m3000",              FamilyAVR5,  ELFArchAVR5>;
422 def : Device<"atmega128",          FamilyAVR51, ELFArchAVR51>;
423 def : Device<"atmega128a",         FamilyAVR51, ELFArchAVR51>;
424 def : Device<"atmega1280",         FamilyAVR51, ELFArchAVR51>;
425 def : Device<"atmega1281",         FamilyAVR51, ELFArchAVR51>;
426 def : Device<"atmega1284",         FamilyAVR51, ELFArchAVR51>;
427 def : Device<"atmega1284p",        FamilyAVR51, ELFArchAVR51>;
428 def : Device<"atmega128rfa1",      FamilyAVR51, ELFArchAVR51>;
429 def : Device<"atmega128rfr2",      FamilyAVR51, ELFArchAVR51>;
430 def : Device<"atmega1284rfr2",     FamilyAVR51, ELFArchAVR51>;
431 def : Device<"at90can128",         FamilyAVR51, ELFArchAVR51>;
432 def : Device<"at90usb1286",        FamilyAVR51, ELFArchAVR51>;
433 def : Device<"at90usb1287",        FamilyAVR51, ELFArchAVR51>;
434 def : Device<"atmega2560",         FamilyAVR6,  ELFArchAVR6>;
435 def : Device<"atmega2561",         FamilyAVR6,  ELFArchAVR6>;
436 def : Device<"atmega256rfr2",      FamilyAVR6,  ELFArchAVR6>;
437 def : Device<"atmega2564rfr2",     FamilyAVR6,  ELFArchAVR6>;
438 def : Device<"atxmega16a4",        FamilyXMEGA, ELFArchXMEGA2>;
439 def : Device<"atxmega16a4u",       FamilyXMEGAU, ELFArchXMEGA2>;
440 def : Device<"atxmega16c4",        FamilyXMEGAU, ELFArchXMEGA2>;
441 def : Device<"atxmega16d4",        FamilyXMEGA, ELFArchXMEGA2>;
442 def : Device<"atxmega32a4",        FamilyXMEGA, ELFArchXMEGA2>;
443 def : Device<"atxmega32a4u",       FamilyXMEGAU, ELFArchXMEGA2>;
444 def : Device<"atxmega32c4",        FamilyXMEGAU, ELFArchXMEGA2>;
445 def : Device<"atxmega32d4",        FamilyXMEGA, ELFArchXMEGA2>;
446 def : Device<"atxmega32e5",        FamilyXMEGA, ELFArchXMEGA2>;
447 def : Device<"atxmega16e5",        FamilyXMEGA, ELFArchXMEGA2>;
448 def : Device<"atxmega8e5",         FamilyXMEGA, ELFArchXMEGA2>;
449 def : Device<"atxmega32x1",        FamilyXMEGA, ELFArchXMEGA2>;
450 def : Device<"atxmega64a3",        FamilyXMEGA, ELFArchXMEGA4>;
451 def : Device<"atxmega64a3u",       FamilyXMEGAU, ELFArchXMEGA4>;
452 def : Device<"atxmega64a4u",       FamilyXMEGAU, ELFArchXMEGA4>;
453 def : Device<"atxmega64b1",        FamilyXMEGAU, ELFArchXMEGA4>;
454 def : Device<"atxmega64b3",        FamilyXMEGAU, ELFArchXMEGA4>;
455 def : Device<"atxmega64c3",        FamilyXMEGAU, ELFArchXMEGA4>;
456 def : Device<"atxmega64d3",        FamilyXMEGA, ELFArchXMEGA4>;
457 def : Device<"atxmega64d4",        FamilyXMEGA, ELFArchXMEGA4>;
458 def : Device<"atxmega64a1",        FamilyXMEGA, ELFArchXMEGA5>;
459 def : Device<"atxmega64a1u",       FamilyXMEGAU, ELFArchXMEGA5>;
460 def : Device<"atxmega128a3",       FamilyXMEGA, ELFArchXMEGA6>;
461 def : Device<"atxmega128a3u",      FamilyXMEGAU, ELFArchXMEGA6>;
462 def : Device<"atxmega128b1",       FamilyXMEGAU, ELFArchXMEGA6>;
463 def : Device<"atxmega128b3",       FamilyXMEGAU, ELFArchXMEGA6>;
464 def : Device<"atxmega128c3",       FamilyXMEGAU, ELFArchXMEGA6>;
465 def : Device<"atxmega128d3",       FamilyXMEGA, ELFArchXMEGA6>;
466 def : Device<"atxmega128d4",       FamilyXMEGA, ELFArchXMEGA6>;
467 def : Device<"atxmega192a3",       FamilyXMEGA, ELFArchXMEGA6>;
468 def : Device<"atxmega192a3u",      FamilyXMEGAU, ELFArchXMEGA6>;
469 def : Device<"atxmega192c3",       FamilyXMEGAU, ELFArchXMEGA6>;
470 def : Device<"atxmega192d3",       FamilyXMEGA, ELFArchXMEGA6>;
471 def : Device<"atxmega256a3",       FamilyXMEGA, ELFArchXMEGA6>;
472 def : Device<"atxmega256a3u",      FamilyXMEGAU, ELFArchXMEGA6>;
473 def : Device<"atxmega256a3b",      FamilyXMEGA, ELFArchXMEGA6>;
474 def : Device<"atxmega256a3bu",     FamilyXMEGAU, ELFArchXMEGA6>;
475 def : Device<"atxmega256c3",       FamilyXMEGAU, ELFArchXMEGA6>;
476 def : Device<"atxmega256d3",       FamilyXMEGA, ELFArchXMEGA6>;
477 def : Device<"atxmega384c3",       FamilyXMEGAU, ELFArchXMEGA6>;
478 def : Device<"atxmega384d3",       FamilyXMEGA, ELFArchXMEGA6>;
479 def : Device<"atxmega128a1",       FamilyXMEGA, ELFArchXMEGA7>;
480 def : Device<"atxmega128a1u",      FamilyXMEGAU, ELFArchXMEGA7>;
481 def : Device<"atxmega128a4u",      FamilyXMEGAU, ELFArchXMEGA7>;
482 def : Device<"attiny4",            FamilyTiny, ELFArchTiny>;
483 def : Device<"attiny5",            FamilyTiny, ELFArchTiny>;
484 def : Device<"attiny9",            FamilyTiny, ELFArchTiny>;
485 def : Device<"attiny10",           FamilyTiny, ELFArchTiny>;
486 def : Device<"attiny20",           FamilyTiny, ELFArchTiny>;
487 def : Device<"attiny40",           FamilyTiny, ELFArchTiny>;
488 def : Device<"attiny102",          FamilyTiny, ELFArchTiny>;
489 def : Device<"attiny104",          FamilyTiny, ELFArchTiny>;