1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
2 ; RUN: llc -mtriple=m68k < %s | FileCheck %s
4 define dso_local m68k_rtdcc i32 @ret(i32 noundef %a, i32 noundef %b, i32 noundef %c) nounwind {
6 ; CHECK: ; %bb.0: ; %entry
7 ; CHECK-NEXT: move.l (8,%sp), %d0
8 ; CHECK-NEXT: add.l (4,%sp), %d0
9 ; CHECK-NEXT: add.l (12,%sp), %d0
10 ; CHECK-NEXT: move.l (%sp), %a1
11 ; CHECK-NEXT: adda.l #12, %sp
12 ; CHECK-NEXT: move.l %a1, (%sp)
15 %add = add nsw i32 %b, %a
16 %add1 = add nsw i32 %add, %c
20 define dso_local m68k_rtdcc i32 @va_ret(i32 noundef %a, i32 noundef %b, i32 noundef %c, ...) nounwind {
21 ; CHECK-LABEL: va_ret:
22 ; CHECK: ; %bb.0: ; %entry
23 ; CHECK-NEXT: move.l (8,%sp), %d0
24 ; CHECK-NEXT: add.l (4,%sp), %d0
25 ; CHECK-NEXT: add.l (12,%sp), %d0
28 %add = add nsw i32 %b, %a
29 %add1 = add nsw i32 %add, %c