1 ; RUN: llc < %s -mtriple=avr | FileCheck %s
3 declare void @ret_void_args_struct_i8_i32({ i8, i32 } %a)
4 declare void @ret_void_args_struct_i8_i8_i8_i8({ i8, i8, i8, i8 } %a)
5 declare void @ret_void_args_struct_i32_i16_i8({ i32, i16, i8} %a)
6 declare void @ret_void_args_struct_i8_i32_struct_i32_i8({ i8, i32 } %a, { i32, i8 } %b)
8 ; CHECK-LABEL: call_void_args_struct_i8_i32
9 define void @call_void_args_struct_i8_i32() {
15 call void @ret_void_args_struct_i8_i32({ i8, i32 } { i8 64, i32 16909060 })
19 ; CHECK-LABEL: @call_void_args_struct_i8_i8_i8_i8
20 define void @call_void_args_struct_i8_i8_i8_i8() {
22 ; CHECK-NEXT: ldi r23, 2
23 ; CHECK-NEXT: ldi r24, 3
24 ; CHECK-NEXT: ldi r25, 4
25 call void @ret_void_args_struct_i8_i8_i8_i8({ i8, i8, i8, i8 } { i8 1, i8 2, i8 3, i8 4 })
29 ; CHECK-LABEL: @call_void_args_struct_i32_i16_i8
30 define void @call_void_args_struct_i32_i16_i8() {
32 ; CHECK-NEXT: ldi r19, 3
33 ; CHECK-NEXT: ldi r20, 2
34 ; CHECK-NEXT: ldi r21, 1
35 ; CHECK-NEXT: ldi r22, 23
36 ; CHECK-NEXT: ldi r23, 22
37 ; CHECK-NEXT: ldi r24, 64
38 call void @ret_void_args_struct_i32_i16_i8({ i32, i16, i8 } { i32 16909060, i16 5655, i8 64 })
42 ; CHECK-LABEL: @call_void_args_struct_i8_i32_struct_i32_i8
43 define void @call_void_args_struct_i8_i32_struct_i32_i8() {
46 call void @ret_void_args_struct_i8_i32_struct_i32_i8({ i8, i32 } { i8 64, i32 16909060 }, { i32, i8 } { i32 287454020, i8 65 })