OSDN Git Service
(root)
/
pf3gnuchains
/
pf3gnuchains3x.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
r284@cf-ppc-macosx: monabuilder | 2008-12-07 10:57:41 +0900
[pf3gnuchains/pf3gnuchains3x.git]
/
sim
/
testsuite
/
sim
/
sh
/
pmuls.s
1
# sh testcase for pmuls
2
# mach: shdsp
3
# as(shdsp): -defsym sim_cpu=1 -dsp
4
5
.include "testutils.inc"
6
7
start
8
set_grs_a5a5
9
lds r0, a0
10
pcopy a0, a1
11
lds r0, x0
12
lds r0, x1
13
lds r0, y0
14
lds r0, y1
15
pcopy x0, m0
16
pcopy y1, m1
17
18
# 2 x 2 = 8 (?)
19
# (I don't understand why the result is x2,
20
# but that's what it says in the manual...)
21
mov #2, r0
22
shll16 r0
23
lds r0, y0
24
lds r0, y1
25
pmuls y0, y1, a0
26
27
assert_sreg 8, a0
28
29
set_greg 0xa5a5a5a5, r0
30
test_grs_a5a5
31
pass
32
exit 0
33