mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-26 07:29:55 +00:00
The assertion in getCopyFromPartsVector assumed that the vector 'part' must match the type of argument (arguments are potentially split into multiple parts). However, in some cases the targets return a 'part' of the right size but with a different type. We already handle this case correctly later on and generate a bitcast. This commit just makes sure that we are actually checking the property that we care about. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241312 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
484 B
LLVM
19 lines
484 B
LLVM
; RUN: llc < %s -o - | FileCheck %s
|
|
|
|
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
|
|
target triple = "arm64-apple-os"
|
|
|
|
declare <4 x double> @user_func(<4 x double>) #1
|
|
|
|
; Make sure we are not crashing on this code.
|
|
; CHECK-LABEL: caller_function
|
|
; CHECK: ret
|
|
define void @caller_function(<4 x double>, <4 x double>, <4 x double>, <4 x double>, <4 x double>) #1 {
|
|
entry:
|
|
%r = call <4 x double> @user_func(<4 x double> %4)
|
|
ret void
|
|
}
|
|
|
|
attributes #1 = { nounwind readnone }
|
|
|