xref: /llvm-project/llvm/test/CodeGen/AArch64/fast-isel-call-struct-return-fallback.ll (revision 7751a91465799d5ff0dc1df5c7d010b16598a0ec)
1*7751a914SAlexis Engelke; RUN: llc -fast-isel -pass-remarks-missed=isel < %s 2>&1 >/dev/null | FileCheck -check-prefix=STDERR -allow-empty %s
2*7751a914SAlexis Engelketarget datalayout = "e-m:e-i64:64-i128:128-n32:64-S128"
3*7751a914SAlexis Engelketarget triple = "aarch64-linux-gnu"
4*7751a914SAlexis Engelke
5*7751a914SAlexis Engelkedeclare { i64, i64, i64, i64, i64, i64, i64, i64, i64, i64 } @ret_s10i64()
6*7751a914SAlexis Engelke
7*7751a914SAlexis Engelkedefine i64 @call_ret_s10i64() {
8*7751a914SAlexis Engelke; STDERR: FastISel missed call:   %ret = call { i64, i64, i64, i64, i64, i64, i64, i64, i64, i64 } @ret_s10i64() (in function: call_ret_s10i64)
9*7751a914SAlexis Engelke  %ret = call { i64, i64, i64, i64, i64, i64, i64, i64, i64, i64 } @ret_s10i64()
10*7751a914SAlexis Engelke  %ext0 = extractvalue { i64, i64, i64, i64, i64, i64, i64, i64, i64, i64 } %ret, 0
11*7751a914SAlexis Engelke  %ext1 = extractvalue { i64, i64, i64, i64, i64, i64, i64, i64, i64, i64 } %ret, 1
12*7751a914SAlexis Engelke  %sum = add i64 %ext0, %ext1
13*7751a914SAlexis Engelke  ret i64 %sum
14*7751a914SAlexis Engelke}
15