1 ; RUN: llc -mattr=mul,movw < %s -march=avr | FileCheck %s
3 ; Tests lowering of multiplication to hardware instructions.
5 define i8 @mult8(i8 %a, i8 %b) {
14 define i16 @mult16(i16 %a, i16 %b) {
15 ; CHECK-LABEL: mult16:
16 ; CHECK: muls r22, r25
23 ; CHECK: muls r23, r24
26 ; :TODO: finish after reworking shift instructions
27 %mul = mul nsw i16 %b, %a