1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --no-generate-body-for-unused-prefixes
2 ; RUN: llc -fast-isel -fast-isel-abort=3 < %s | FileCheck %s
3 target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128"
4 target triple = "aarch64-linux-gnu"
6 declare { i64, i64 } @ret_s2i64()
8 define i64 @call_ret_s2i64() {
9 ; CHECK-LABEL: call_ret_s2i64:
11 ; CHECK-NEXT: str x30, [sp, #-16]! // 8-byte Folded Spill
12 ; CHECK-NEXT: .cfi_def_cfa_offset 16
13 ; CHECK-NEXT: .cfi_offset w30, -16
14 ; CHECK-NEXT: bl ret_s2i64
15 ; CHECK-NEXT: add x0, x0, x1
16 ; CHECK-NEXT: ldr x30, [sp], #16 // 8-byte Folded Reload
18 %ret = call { i64, i64 } @ret_s2i64()
19 %ext0 = extractvalue { i64, i64 } %ret, 0
20 %ext1 = extractvalue { i64, i64 } %ret, 1
21 %sum = add i64 %ext0, %ext1
25 declare { i64, i64, i64, i64, i64, i64, i64, i64 } @ret_s8i64()
27 define i64 @call_ret_s8i64() {
28 ; CHECK-LABEL: call_ret_s8i64:
30 ; CHECK-NEXT: str x30, [sp, #-16]! // 8-byte Folded Spill
31 ; CHECK-NEXT: .cfi_def_cfa_offset 16
32 ; CHECK-NEXT: .cfi_offset w30, -16
33 ; CHECK-NEXT: bl ret_s8i64
34 ; CHECK-NEXT: add x0, x0, x7
35 ; CHECK-NEXT: ldr x30, [sp], #16 // 8-byte Folded Reload
37 %ret = call { i64, i64, i64, i64, i64, i64, i64, i64 } @ret_s8i64()
38 %ext0 = extractvalue { i64, i64, i64, i64, i64, i64, i64, i64 } %ret, 0
39 %ext7 = extractvalue { i64, i64, i64, i64, i64, i64, i64, i64 } %ret, 7
40 %sum = add i64 %ext0, %ext7