File: c_dsp32alu_search.s

package info (click to toggle)
gdb 16.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 237,056 kB
  • sloc: ansic: 2,134,949; asm: 375,582; exp: 206,875; cpp: 73,639; makefile: 70,467; sh: 26,103; python: 13,697; yacc: 11,341; ada: 7,358; xml: 6,098; perl: 5,077; pascal: 3,389; tcl: 2,986; f90: 2,764; lisp: 1,984; cs: 879; lex: 738; sed: 228; awk: 181; objc: 137; fortran: 57
file content (74 lines) | stat: -rw-r--r-- 1,669 bytes parent folder | download | duplicates (33)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
//Original:/testcases/core/c_dsp32alu_search/c_dsp32alu_search.dsp
// Spec Reference: dsp32alu search
# mach: bfin

.include "testutils.inc"
	start

imm32 p0, 0x11234556;

imm32 r0, 0x15678911;
imm32 r1, 0x2789ab1d;
imm32 r2, 0x34445515;
imm32 r3, 0x46667717;
imm32 r4, 0x5567891b;
imm32 r5, 0x6789ab1d;
imm32 r6, 0x74445515;
imm32 r7, 0x86667777;
( R0 , R1 ) = SEARCH R2 (GE);
( R2 , R3 ) = SEARCH R4 (GT);
( R4 , R5 ) = SEARCH R0 (LE);
( R7 , R6 ) = SEARCH R1 (LT);
CHECKREG r0, 0x11234556;
CHECKREG r1, 0x11234556;
CHECKREG r2, 0x11234556;
CHECKREG r3, 0x46667717;
CHECKREG r4, 0x11234556;
CHECKREG r5, 0x11234556;
CHECKREG r6, 0x74445515;
CHECKREG r7, 0x86667777;

imm32 r0, 0x416789ab;
imm32 r1, 0x6289abcd;
imm32 r2, 0x43445555;
imm32 r3, 0x64667777;
imm32 r0, 0x456789ab;
imm32 r1, 0x6689abcd;
imm32 r2, 0x47445555;
imm32 r3, 0x68667777;
( R2 , R1 ) = SEARCH R3 (LE);
( R6 , R3 ) = SEARCH R5 (GT);
( R4 , R7 ) = SEARCH R2 (GE);
( R0 , R5 ) = SEARCH R4 (LT);
CHECKREG r0, 0x11234556;
CHECKREG r1, 0x6689ABCD;
CHECKREG r2, 0x47445555;
CHECKREG r3, 0x68667777;
CHECKREG r4, 0x11234556;
CHECKREG r5, 0x11234556;
CHECKREG r6, 0x74445515;
CHECKREG r7, 0x11234556;

imm32 r0, 0x516789ab;
imm32 r1, 0x6289abcd;
imm32 r2, 0x73445555;
imm32 r3, 0x84667777;
imm32 r0, 0x956789ab;
imm32 r1, 0xa689abcd;
imm32 r2, 0xb7445555;
imm32 r3, 0xc86def77;
( R3 , R4 ) = SEARCH R5 (GT);
( R0 , R7 ) = SEARCH R6 (GE);
( R6 , R1 ) = SEARCH R2 (LT);
( R2 , R5 ) = SEARCH R4 (LE);
CHECKREG r0, 0x11234556;
CHECKREG r1, 0xA689ABCD;
CHECKREG r2, 0xB7445555;
CHECKREG r3, 0xC86DEF77;
CHECKREG r4, 0x11234556;
CHECKREG r5, 0x11234556;
CHECKREG r6, 0x11234556;
CHECKREG r7, 0x11234556;


pass