1 ; RUN: llc < %s -march=avr | FileCheck %s
5 define void @cmp8(i8 %a, i8 %b) {
9 %cmp = icmp eq i8 %a, %b
10 br i1 %cmp, label %if.then, label %if.else
12 tail call void @f1(i8 %a)
15 tail call void @f2(i8 %b)
23 define void @cmp16(i16 %a, i16 %b) {
27 %cmp = icmp eq i16 %a, %b
28 br i1 %cmp, label %if.then, label %if.else
30 tail call void @f3(i16 %a)
33 tail call void @f4(i16 %b)
41 define void @cmp32(i32 %a, i32 %b) {
47 %cmp = icmp eq i32 %a, %b
48 br i1 %cmp, label %if.then, label %if.else
50 tail call void @f5(i32 %a)
53 tail call void @f6(i32 %b)
61 define void @cmp64(i64 %a, i64 %b) {
71 %cmp = icmp eq i64 %a, %b
72 br i1 %cmp, label %if.then, label %if.else
74 tail call void @f7(i64 %a)
77 tail call void @f8(i64 %b)
86 define void @tst8(i8 %a) {
90 %cmp = icmp sgt i8 %a, -1
91 br i1 %cmp, label %if.then, label %if.else
102 define void @tst16(i16 %a) {
103 ; CHECK-LABEL: tst16:
106 %cmp = icmp sgt i16 %a, -1
107 br i1 %cmp, label %if.then, label %if.else
112 tail call void @f10()
118 define void @tst32(i32 %a) {
119 ; CHECK-LABEL: tst32:
122 %cmp = icmp sgt i32 %a, -1
123 br i1 %cmp, label %if.then, label %if.else
128 tail call void @f10()
134 define void @tst64(i64 %a) {
135 ; CHECK-LABEL: tst64:
138 %cmp = icmp sgt i64 %a, -1
139 br i1 %cmp, label %if.then, label %if.else
144 tail call void @f10()