1; RUN: llc < %s -march=avr | FileCheck %s
2
3define i8 @neg8(i8 %x) {
4; CHECK-LABEL: neg8:
5; CHECK: neg r24
6  %sub = sub i8 0, %x
7  ret i8 %sub
8}
9
10define i16 @neg16(i16 %x) {
11; CHECK-LABEL: neg16:
12; CHECK:       neg r25
13; CHECK-next:  neg r24
14; CHECK-next:  sbci r25, 0
15; CHECK-next:  ret
16  %sub = sub i16 0, %x
17  ret i16 %sub
18}
19