1# Blackfin testcase for parallel VIT_MAX (taken from PRM)
2# mach: bfin
3
4	.include "testutils.inc"
5
6	start
7
8	loadsym P0, scratch
9
10	# Do parallel VIT_MAX's with stores to same reg; don't really
11	# care what the result is of VIT_MAX as long as it doesn't
12	# clobber the memory store.
13
14	imm32 R1, 0xFFFF0000
15	imm32 R2, 0x0000FFFF
16	imm32 R0, 0xFACE
17	R0 = VIT_MAX (R1, R2) (ASL) || W[P0] = R0.L;
18	imm32 R0, 0xFACE
19	R4 = W[P0];
20	CC = R4 == R0;
21	IF !CC JUMP 1f;
22
23	imm32 R5, 0xFEEDBEEF
24	imm32 R4, 0xDEAF0000
25	imm32 R6, 0xFACE
26	R6 = VIT_MAX (R5, R4) (ASR) || W[P0] = R6.L;
27	imm32 R6, 0xFACE
28	R4 = W[P0];
29	CC = R4 == R6;
30	IF !CC JUMP 1f;
31
32	imm32 R3, 0xFFFF0000
33	imm32 R1, 0xFACE
34	R1.L = VIT_MAX (R3) (ASL) || W[P0] = R1.L;
35	imm32 R1, 0xFACE
36	R4 = W[P0];
37	CC = R4 == R1;
38	IF !CC JUMP 1f;
39
40	imm32 R2, 0x1234FADE
41	imm32 R5, 0xFACE
42	R5.L = VIT_MAX (R2) (ASR) || W[P0] = R5.L;
43	imm32 R5, 0xFACE
44	R4 = W[P0];
45	CC = R4 == R5;
46	IF !CC JUMP 1f;
47
48	pass
491:	fail
50
51	.data
52scratch:
53	.dw 0xffff
54