mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-31 08:16:47 +00:00 
			
		
		
		
	- Revise previous patches of the same purpose by fixing
  *) grep <PA> | not grep <PB> semantically is not the same as
     CHECK: <PA>{{^<PB>.*$}} as the former will check all occurrences of <PA>
     while the later only check the first match. As the result, CHECK needs
     putting in all place where <PA> occurs.
  *) grep <PA> | count <N> needs a final CHECK-NOT of the same pattern.
     (As 'CHECK-<N>' is proposed for discussion, converting 'grep | count <N>'
      where N > 1 is postponed.)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180742 91177308-0d34-0410-b5e6-96231b3b80d8
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			601 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			601 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
| ; RUN: llc < %s -march=x86 -mattr=+sse2 | FileCheck %s
 | |
| ; RUN: llc < %s -march=x86 -mattr=+sse2 | grep esp | count 2
 | |
| 
 | |
| ; CHECK-NOT: movaps
 | |
| 
 | |
| ; These should both generate something like this:
 | |
| ;_test3:
 | |
| ;	movl	$1234567, %eax
 | |
| ;	andl	4(%esp), %eax
 | |
| ;	movd	%eax, %xmm0
 | |
| ;	ret
 | |
| 
 | |
| define <2 x i64> @test3(i64 %arg) nounwind {
 | |
| entry:
 | |
|         %A = and i64 %arg, 1234567
 | |
|         %B = insertelement <2 x i64> zeroinitializer, i64 %A, i32 0
 | |
|         ret <2 x i64> %B
 | |
| }
 | |
| 
 | |
| define <2 x i64> @test2(i64 %arg) nounwind {
 | |
| entry:
 | |
| 	%A = and i64 %arg, 1234567
 | |
| 	%B = insertelement <2 x i64> undef, i64 %A, i32 0
 | |
| 	ret <2 x i64> %B
 | |
| }
 | |
| 
 |