1; RUN: llc < %s -march=avr | FileCheck %s 2 3; sext R17:R16, R13 4; mov r16, r13 5; mov r17, r13 6; lsl r17 7; sbc r17, r17 8define i16 @sext1(i8 %x, i8 %y) { 9; CHECK-LABEL: sext1: 10; CHECK: mov r24, r22 11; CHECK: mov r25, r22 12; CHECK: lsl r25 13; CHECK: sbc r25, r25 14 %1 = sext i8 %y to i16 15 ret i16 %1 16} 17 18; sext R17:R16, R16 19; mov r17, r16 20; lsl r17 21; sbc r17, r17 22define i16 @sext2(i8 %x) { 23; CHECK-LABEL: sext2: 24; CHECK: mov r25, r24 25; CHECK: lsl r25 26; CHECK: sbc r25, r25 27 %1 = sext i8 %x to i16 28 ret i16 %1 29} 30