projects
/
deliverable
/
binutils-gdb.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
sim: bfin: import testsuite
[deliverable/binutils-gdb.git]
/
sim
/
testsuite
/
sim
/
bfin
/
cycles.s
1
# Blackfin testcase for playing with CYCLES
2
# mach: bfin
3
4
.include "testutils.inc"
5
6
start
7
8
R0 = 0;
9
R1 = 1;
10
CYCLES = R0;
11
CYCLES2 = R1;
12
13
/* CYCLES should be "small" while CYCLES2 should be R1 still */
14
R2 = CYCLES;
15
CC = R2 <= 3;
16
if ! CC jump 1f;
17
18
R3 = CYCLES2;
19
CC = R3 == 1;
20
if ! CC jump 1f;
21
22
nop;
23
mnop;
24
nop;
25
mnop;
26
27
/* Test the "shadowed" CYCLES2 -- only a read of CYCLES reloads it */
28
imm32 R1, 0x12345678
29
CYCLES2 = R1;
30
R2 = CYCLES2;
31
CC = R2 == R3;
32
if ! CC jump 1f;
33
34
R2 = CYCLES;
35
R2 = CYCLES2;
36
CC = R2 == R1;
37
if ! CC jump 1f;
38
39
pass
40
1:
41
fail
This page took
0.029627 seconds
and
4
git commands to generate.