Home | History | Annotate | Line # | Download | only in iwmmxt
      1  1.1  christos # Intel(r) Wireless MMX(tm) technology testcase for WANDN
      2  1.1  christos # mach: xscale
      3  1.1  christos # as: -mcpu=xscale+iwmmxt
      4  1.1  christos 
      5  1.1  christos 	.include "testutils.inc"
      6  1.1  christos 
      7  1.1  christos 	start
      8  1.1  christos 
      9  1.1  christos 	.global wandn
     10  1.1  christos wandn:
     11  1.1  christos 	# Enable access to CoProcessors 0 & 1 before
     12  1.1  christos         # we attempt these instructions.
     13  1.1  christos 
     14  1.1  christos 	mvi_h_gr   r1, 3
     15  1.1  christos 	mcr        p15, 0, r1, cr15, cr1, 0
     16  1.1  christos 	
     17  1.1  christos 	mvi_h_gr   r0, 0x12345678
     18  1.1  christos 	mvi_h_gr   r1, 0x9abcdef0
     19  1.1  christos 	mvi_h_gr   r2, 0x11111111
     20  1.1  christos 	mvi_h_gr   r3, 0x00000000
     21  1.1  christos 	mvi_h_gr   r4, 0
     22  1.1  christos 	mvi_h_gr   r5, 0
     23  1.1  christos 
     24  1.1  christos 	tmcrr	   wr0, r0, r1
     25  1.1  christos 	tmcrr	   wr1, r2, r3
     26  1.1  christos 	tmcrr	   wr2, r4, r5
     27  1.1  christos 
     28  1.1  christos 	wandn	   wr2, wr0, wr1
     29  1.1  christos 	
     30  1.1  christos 	tmrrc	   r0, r1, wr0
     31  1.1  christos 	tmrrc	   r2, r3, wr1
     32  1.1  christos 	tmrrc	   r4, r5, wr2
     33  1.1  christos 	
     34  1.1  christos 	test_h_gr  r0, 0x12345678
     35  1.1  christos 	test_h_gr  r1, 0x9abcdef0
     36  1.1  christos 	test_h_gr  r2, 0x11111111
     37  1.1  christos 	test_h_gr  r3, 0x00000000
     38  1.1  christos 	test_h_gr  r4, 0x02244668
     39  1.1  christos 	test_h_gr  r5, 0x9abcdef0
     40  1.1  christos 	
     41  1.1  christos 	pass
     42