1 ; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu -O0 < %s | FileCheck %s
2 ; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu -O2 < %s | FileCheck %s
4 ; Verify that returning multiple return values in registers works,
5 ; both with fast-isel and regular isel.
7 define { i32, i32, i32, i32 } @foo() nounwind {
8 %A1 = insertvalue { i32, i32, i32, i32 } undef, i32 1, 0
9 %A2 = insertvalue { i32, i32, i32, i32 } %A1, i32 2, 1
10 %A3 = insertvalue { i32, i32, i32, i32 } %A2, i32 3, 2
11 %A4 = insertvalue { i32, i32, i32, i32 } %A3, i32 4, 3
12 ret { i32, i32, i32, i32 } %A4