mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-04 05:17:07 +00:00 
			
		
		
		
	lit needs a linter ... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130126 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			36 lines
		
	
	
		
			806 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			806 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
; RUN: llc < %s -march=x86 -mattr=+sse2,-avx | FileCheck %s
 | 
						|
 | 
						|
define <1 x float> @test1(<1 x double> %x) nounwind {
 | 
						|
; CHECK: cvtsd2ss
 | 
						|
; CHECK: ret
 | 
						|
  %y = fptrunc <1 x double> %x to <1 x float>
 | 
						|
  ret <1 x float> %y
 | 
						|
}
 | 
						|
 | 
						|
 | 
						|
define <2 x float> @test2(<2 x double> %x) nounwind {
 | 
						|
; FIXME: It would be nice if this compiled down to a cvtpd2ps
 | 
						|
; CHECK: cvtsd2ss
 | 
						|
; CHECK: cvtsd2ss
 | 
						|
; CHECK: ret
 | 
						|
  %y = fptrunc <2 x double> %x to <2 x float>
 | 
						|
  ret <2 x float> %y
 | 
						|
}
 | 
						|
 | 
						|
define <8 x float> @test3(<8 x double> %x) nounwind {
 | 
						|
; FIXME: It would be nice if this compiled down to a series of cvtpd2ps
 | 
						|
; CHECK: cvtsd2ss
 | 
						|
; CHECK: cvtsd2ss
 | 
						|
; CHECK: cvtsd2ss
 | 
						|
; CHECK: cvtsd2ss
 | 
						|
; CHECK: cvtsd2ss
 | 
						|
; CHECK: cvtsd2ss
 | 
						|
; CHECK: cvtsd2ss
 | 
						|
; CHECK: cvtsd2ss
 | 
						|
; CHECK: ret
 | 
						|
  %y = fptrunc <8 x double> %x to <8 x float>
 | 
						|
  ret <8 x float> %y
 | 
						|
}
 | 
						|
 | 
						|
 |