mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-04 05:17:07 +00:00 
			
		
		
		
	Teach the ISelLowering for X86 about the L,M,O target specific constraints. Although, for the moment, clang performs constraint validation and prevents passing along inline asm which may have immediate constant constraints violated, the backend should be able to cope with the invalid inline asm a bit better. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225596 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			35 lines
		
	
	
		
			776 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			776 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
; RUN: llc -mtriple i686-gnu -filetype asm -o - %s 2>&1 | FileCheck %s
 | 
						|
 | 
						|
define void @test_L_ff() {
 | 
						|
entry:
 | 
						|
  call void asm "", "L,~{dirflag},~{fpsr},~{flags}"(i32 255)
 | 
						|
  ret void
 | 
						|
}
 | 
						|
 | 
						|
; CHECK-NOT: error: invalid operand for inline asm constraint 'L'
 | 
						|
 | 
						|
define void @test_L_ffff() {
 | 
						|
entry:
 | 
						|
  call void asm "", "L,~{dirflag},~{fpsr},~{flags}"(i32 65535)
 | 
						|
  ret void
 | 
						|
}
 | 
						|
 | 
						|
; CHECK-NOT: error: invalid operand for inline asm constraint 'L'
 | 
						|
 | 
						|
define void @test_M_1() {
 | 
						|
entry:
 | 
						|
  call void asm "", "M,~{dirflag},~{fpsr},~{flags}"(i32 1)
 | 
						|
  ret void
 | 
						|
}
 | 
						|
 | 
						|
; CHECK-NOT: error: invalid operand for inline asm constraint 'M'
 | 
						|
 | 
						|
define void @test_O_64() {
 | 
						|
entry:
 | 
						|
  call void asm "", "O,~{dirflag},~{fpsr},~{flags}"(i32 64)
 | 
						|
  ret void
 | 
						|
}
 | 
						|
 | 
						|
; CHECK-NOT: error: invalid operand for inline asm constraint 'O'
 | 
						|
 |