llvm/test/CodeGen/SPARC/missing-sret.ll
Joerg Sonnenberger f1ad08798b Drop assert that a call with struct return goes to a function with sret
attribute. Clang incorrectly misses it on __muldc3 and friends and the
type system doesn't include it properly either.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250938 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-21 20:05:01 +00:00

10 lines
383 B
LLVM

; RUN: llc -march=sparc -filetype=obj < %s > /dev/null 2> %t2
define void @mul_double_cc({ double, double }* noalias sret %agg.result, double %a, double %b, double %c, double %d) {
entry:
call void @__muldc3({ double, double }* sret %agg.result, double %a, double %b, double %c, double %d)
ret void
}
declare void @__muldc3({ double, double }*, double, double, double, double)