1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=m68k-pc-linux -relocation-model=pic -verify-machineinstrs | FileCheck %s
5 ; C Call passes all arguments on stack ...
7 define void @test1(i32* nocapture %out, i32 %in) nounwind {
9 ; CHECK: ; %bb.0: ; %entry
10 ; CHECK-NEXT: move.l (4,%sp), %a0
11 ; CHECK-NEXT: move.l (8,%sp), (%a0)
14 store i32 %in, i32* %out, align 4
18 define void @test2(i32* nocapture %pOut, i32* nocapture %pIn) nounwind {
20 ; CHECK: ; %bb.0: ; %entry
21 ; CHECK-NEXT: move.l (8,%sp), %a0
22 ; CHECK-NEXT: move.l (4,%sp), %a1
23 ; CHECK-NEXT: move.l (%a0), (%a1)
26 %0 = load i32, i32* %pIn, align 4
27 store i32 %0, i32* %pOut, align 4
31 define void @test3(i8* nocapture %out, i8 %in) nounwind {
33 ; CHECK: ; %bb.0: ; %entry
34 ; CHECK-NEXT: move.l (4,%sp), %a0
35 ; CHECK-NEXT: move.b (11,%sp), (%a0)
38 store i8 %in, i8* %out, align 1
42 define void @test4(i16* nocapture %out, i16 %in) nounwind {
44 ; CHECK: ; %bb.0: ; %entry
45 ; CHECK-NEXT: move.l (4,%sp), %a0
46 ; CHECK-NEXT: move.w (10,%sp), (%a0)
49 store i16 %in, i16* %out, align 2
53 define i8 @test5(i8 %a, i8 %b) nounwind {
55 ; CHECK: ; %bb.0: ; %entry
56 ; CHECK-NEXT: move.b (7,%sp), %d0
57 ; CHECK-NEXT: add.b (11,%sp), %d0
64 define i16 @test6(i16 %a, i16 %b) nounwind {
66 ; CHECK: ; %bb.0: ; %entry
67 ; CHECK-NEXT: move.w (6,%sp), %d0
68 ; CHECK-NEXT: add.w (10,%sp), %d0