Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
binutils-gdb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sebastien Michelland
binutils-gdb
Commits
b4f8c801
Commit
b4f8c801
authored
16 years ago
by
Hans-Peter Nilsson
Browse files
Options
Downloads
Patches
Plain Diff
* sim/cris/asm/pid1.ms: New test.
parent
08af5ba8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sim/testsuite/ChangeLog
+4
-0
4 additions, 0 deletions
sim/testsuite/ChangeLog
sim/testsuite/sim/cris/asm/pid1.ms
+45
-0
45 additions, 0 deletions
sim/testsuite/sim/cris/asm/pid1.ms
with
49 additions
and
0 deletions
sim/testsuite/ChangeLog
+
4
−
0
View file @
b4f8c801
2009-01-03 Hans-Peter Nilsson <hp@axis.com>
* sim/cris/asm/pid1.ms: New test.
2008-12-30 Hans-Peter Nilsson <hp@axis.com>
2008-12-30 Hans-Peter Nilsson <hp@axis.com>
* sim/cris/asm/badarch1.ms: Tweak error message match.
* sim/cris/asm/badarch1.ms: Tweak error message match.
...
...
This diff is collapsed.
Click to expand it.
sim/testsuite/sim/cris/asm/pid1.ms
0 → 100644
+
45
−
0
View file @
b4f8c801
# mach: crisv32
# output: 0\ncafebabe\nbaddbeef\necc0d00d\nc0ceface\npass\n
; Check that the PID register has the right size, 32 bits: check
; immediate, to/from register and memory. (This has to be done in
; supervisor mode, so don't set u.)
.include "testutils.inc"
.macro dumpid
move $pid,$r3
dumpr3
.endm
start
moveq -1,$r3
move 0,$pid
dumpid ; 0
move 0xcafebabe,$pid
dumpid ; cafebabe
move.d 0xbaddbeef,$r2
move $r2,$pid
dumpid ; baddbeef
move.d 0f,$r0
move [$r0+],$pid
cmp.d 0f+4,$r0
beq 1f
nop
dofail:
fail
0:
.dword 0xecc0d00d
0:
.dword 0xc0ceface
1:
dumpid ; ecc0d00d
move.d 0b,$r1
move 0xc0ceface,$pid
move $pid,[$r1+]
cmp.d 0b+4,$r1
bne dofail
subq 4,$r1
nop
move.d [$r1],$r3
dumpr3 ; c0ceface
pass
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment