projects
/
deliverable
/
binutils-gdb.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
sim: clean up stale AC_PREREQ refs
[deliverable/binutils-gdb.git]
/
sim
/
testsuite
/
sim
/
sh64
/
compact
/
andi.cgs
1
# sh testcase for and #$imm8, r0 -*- Asm -*-
2
# mach: all
3
# as: -isa=shcompact
4
# ld: -m shelf32
5
6
.include "compact/testutils.inc"
7
8
start
9
10
.global andi
11
andi:
12
mov #0, r0
13
or #255, r0
14
and #0, r0
15
assert r0, #0
16
17
large:
18
mov #0, r0
19
or #255, r0
20
shll8 r0
21
or #255, r0
22
shll8 r0
23
or #255, r0
24
shll8 r0
25
or #255, r0
26
27
mask:
28
and #255, r0
29
mov r0, r1
30
mov #0, r0
31
or #255, r0
32
cmp/eq r0, r1
33
bf wrong
34
35
mask0:
36
and #0, r0
37
assert r0, #0
38
39
okay:
40
pass
41
42
wrong:
43
fail
This page took
0.030867 seconds
and
4
git commands to generate.