xref: /aosp_15_r20/external/llvm/test/CodeGen/SPARC/sret-secondary.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: not llc -march=sparc < %s -o /dev/null 2>&1 | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker; CHECK: sparc only supports sret on the first parameter
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Workerdefine void @foo(i32 %a, i32* sret %out) {
6*9880d681SAndroid Build Coastguard Worker  store i32 %a, i32* %out
7*9880d681SAndroid Build Coastguard Worker  ret void
8*9880d681SAndroid Build Coastguard Worker}
9