1# Blackfin testcase for VIT_MAX (taken from PRM) 2# mach: bfin 3 4 .include "testutils.inc" 5 6 start 7 8 imm32 R3, 0xFFFF0000 9 imm32 R2, 0x0000FFFF 10 A0 = 0; 11 R5 = VIT_MAX (R3, R2) (ASL); 12 R4 = 0 (x); 13 CC = R5 == R4; 14 IF !CC JUMP 1f; 15 imm32 R6, 0x00000002 16 R4 = A0; 17 CC = R4 == R6; 18 IF !CC JUMP 1f; 19 20 imm32 R1, 0xFEEDBEEF 21 imm32 R0, 0xDEAF0000 22 A0 = 0; 23 R7 = VIT_MAX (R1, R0) (ASR); 24 imm32 R4, 0xFEED0000 25 CC = R4 == R7; 26 IF !CC JUMP 1f; 27 imm32 R6, 0x80000000 28 R2 = A0.W; 29 CC = R2 == R6; 30 IF !CC JUMP 1f; 31 32 imm32 R1, 0xFFFF0000 33 A0 = 0; 34 R3.L = VIT_MAX (R1) (ASL); 35 R3 = R3.L; 36 R4 = 0 (x); 37 CC = R3 == R4; 38 IF !CC JUMP 1f; 39 R6 = A0.W; 40 CC = R6 == R4; 41 IF !CC JUMP 1f; 42 43 imm32 R1, 0x1234FADE 44 imm32 R2, 0xFFFFFFFF 45 A0.W = R2; 46 R3.L = VIT_MAX (R1) (ASR); 47 R3 = R3.L; 48 imm32 R4 0x00001234 49 CC = R4 == R3; 50 IF !CC JUMP 1f; 51 imm32 R7, 0xFFFFFFFF 52 R0 = A0.W; 53 CC = R7 == R0; 54 IF !CC JUMP 1f; 55 56 pass 571: fail 58