mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-04 05:17:07 +00:00 
			
		
		
		
	The ABI specifies that <1 x i128> and <1 x fp128> are supposed to be passed in vector registers. We do not yet support those types, and some infrastructure is missing before we can do so. In order to prevent accidentally generating code violating the ABI, this patch adds checks to detect those types and error out if user code attempts to use them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236526 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			13 lines
		
	
	
		
			348 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			348 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
; Verify that we detect unsupported single-element vector types.
 | 
						|
 | 
						|
; RUN: not llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 2>&1 | FileCheck %s
 | 
						|
 | 
						|
declare void @bar(<1 x fp128>)
 | 
						|
 | 
						|
define void @foo() {
 | 
						|
  call void @bar (<1 x fp128> <fp128 0xL00000000000000000000000000000000>)
 | 
						|
  ret void
 | 
						|
}
 | 
						|
 | 
						|
; CHECK: LLVM ERROR: Unsupported vector argument or return type
 |