~ubuntu-branches/debian/sid/gdb/sid

« back to all changes in this revision

Viewing changes to sim/testsuite/sim/bfin/abs-3.S

  • Committer: Package Import Robot
  • Author(s): Hector Oron
  • Date: 2012-01-28 00:41:20 UTC
  • mfrom: (1.4.9) (5.1.6 experimental)
  • Revision ID: package-import@ubuntu.com-20120128004120-bar1h77ark622noi
Tags: 7.4really-1
* New upstream release:
  - Many Python scripting improvements
  - Better support for ambiguous linespecs
  - Masked watchpoints
  - Tracepoint support improvements
  - Support for Texas Instruments TMS320C6x (tic6x-*-*)
  - A Renesas RL78 simulator (rl78-*-elf)
  - Some minor Remote protocol extensions and GDB/MI changes
* Temporarily disable gdb-multiarch and gdb-dbg.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Blackfin testcase for ABS instruction
 
2
# mach: bfin
 
3
 
 
4
#include "test.h"
 
5
 
 
6
        .include "testutils.inc"
 
7
 
 
8
        start
 
9
 
 
10
        .global _test
 
11
_test:
 
12
        R6 = ASTAT;
 
13
        R0.H = 0x0;
 
14
        R0.L = 0x0;
 
15
        R1 = ABS R0;
 
16
        R7 = ASTAT;
 
17
        R2.H = 0x0;
 
18
        R2.L = 0x0;
 
19
        CC = R1 == R2;
 
20
        IF !CC JUMP 1f;
 
21
        /* CLEARED: AN V V_COPY */
 
22
        R3.H = HI(_AN|_V|_V_COPY);
 
23
        R3.L = LO(_AN|_V|_V_COPY);
 
24
        R4 = R7 & R3;
 
25
        CC = R4 == 0;
 
26
        IF !CC JUMP 1f;
 
27
        /* SET: AZ */
 
28
        R3.H = HI(_AZ);
 
29
        R3.L = LO(_AZ);
 
30
        R4 = R7 & R3;
 
31
        CC = R3 == R4;
 
32
        IF !CC JUMP 1f;
 
33
        /* UNAFFECTED: CC AQ RND_MOD AV0 AV0S AV1 AV1S VS AC0 AC0_COPY AC1 */
 
34
        R3.H = HI(_CC|_AQ|_RND_MOD|_AV0|_AV0S|_AV1|_AV1S|_VS|_AC0|_AC0_COPY|_AC1);
 
35
        R3.L = LO(_CC|_AQ|_RND_MOD|_AV0|_AV0S|_AV1|_AV1S|_VS|_AC0|_AC0_COPY|_AC1);
 
36
        R4 = R6 & R3;
 
37
        R5 = R7 & R3;
 
38
        CC = R4 == R5;
 
39
        IF !CC JUMP 1f;
 
40
        pass
 
41
1:
 
42
        fail