Testcases for mov, rlc, asl.

This commit is contained in:
David Edelsohn 1995-04-08 22:31:23 +00:00
parent 4f1fc8f9c2
commit 673f0762f6
3 changed files with 146 additions and 0 deletions

View file

@ -25,6 +25,8 @@ Do-first:
Things-to-keep:
arc.exp
alias.s
alias.d
branch.s
branch.d
flag.s

View file

@ -0,0 +1,68 @@
#objdump: -dr
#name: @OC@
# Test the @OC@ insn.
.*: +file format elf32-.*arc
Disassembly of section .text:
00000000 @IC+0@008200 @OC@ r0,r1
00000004 @IC+3@6e3800 @OC@ fp,sp
00000008 @IC+0@1ffe00 @OC@ r0,0
0000000c @IC+0@3fffff @OC@ r1,511
00000010 @IC+7@e10400 @OC@ 0,r2
00000014 @IC+7@e187ff @OC@ 511,r3
00000018 @IC+0@9ffeff @OC@ r4,255
0000001c @IC+7@e28aff @OC@ 255,r5
00000020 @IC+0@dfff00 @OC@ r6,256
00000024 @IC+7@e38f00 @OC@ 256,r7
00000028 @IC+1@1f7c00 @OC@ r8,256
00000030 @IC+1@3f7c00 @OC@ r9,-257
00000038 @IC+7@c51400 @OC@ 511,r10
00000040 @IC+1@7f7c00 @OC@ r11,1111638594
00000048 @IC+7@c61800 @OC@ 305419896,r12
00000050 @IC+7@ff7cff @OC@ 255,256
00000058 @IC+7@dffeff @OC@ 256,255
00000060 @IC+0@1f7c00 @OC@ r0,0
RELOC: 00000064 R_ARC_32 foo
00000068 @IC+0@008200 @OC@ r0,r1
0000006c @IC+0@620800 @OC@ r3,r4
00000070 @IC+0@c38e01 @OC@.eq r6,r7
00000074 @IC+1@251401 @OC@.eq r9,r10
00000078 @IC+1@869a02 @OC@.ne r12,r13
0000007c @IC+1@e82002 @OC@.ne r15,r16
00000080 @IC+2@49a603 @OC@.p r18,r19
00000084 @IC+2@ab2c03 @OC@.p r21,r22
00000088 @IC+3@0cb204 @OC@.n r24,r25
0000008c @IC+3@6e3804 @OC@.n fp,sp
00000090 @IC+3@cfbe05 @OC@.c ilink2,blink
00000094 @IC+4@314405 @OC@.c r33,r34
00000098 @IC+4@92ca05 @OC@.c r36,r37
0000009c @IC+4@f45006 @OC@.nc r39,r40
000000a0 @IC+5@55d606 @OC@.nc r42,r43
000000a4 @IC+5@b75c06 @OC@.nc r45,r46
000000a8 @IC+6@18e207 @OC@.v r48,r49
000000ac @IC+6@7a6807 @OC@.v r51,r52
000000b0 @IC+6@dbee08 @OC@.nv r54,r55
000000b4 @IC+7@3d7408 @OC@.nv r57,r58
000000b8 @IC+7@9e7809 @OC@.gt lp_count,lp_count
000000bc @IC+0@1f7c0a @OC@.ge r0,0
000000c4 @IC+7@c0820b @OC@.lt 1,r1
000000cc @IC+7@df7c0c @OC@.le 2,2
000000d4 @IC+0@61860d @OC@.hi r3,r3
000000d8 @IC+0@82080e @OC@.ls r4,r4
000000dc @IC+0@a28a0f @OC@.pnz r5,r5
000000e0 @IC+0@008300 @OC@.f r0,r1
000000e4 @IC+0@5efa01 @OC@.f r2,1
000000e8 @IC+7@a18601 @OC@.f 1,r3
000000ec @IC+7@a20800 @OC@.f 0,r4
000000f0 @IC+0@bf7d00 @OC@.f r5,512
000000f8 @IC+7@c30d00 @OC@.f 512,r6
00000100 @IC+7@df7d00 @OC@.f 512,512
00000108 @IC+0@008301 @OC@.eq.f r0,r1
0000010c @IC+0@3f7d02 @OC@.ne.f r1,0
00000114 @IC+7@c1050b @OC@.lt.f 0,r2
0000011c @IC+7@c10509 @OC@.gt.f 1,r2
00000124 @IC+0@1f7d0c @OC@.le.f r0,512
0000012c @IC+7@c1050a @OC@.ge.f 512,r2
00000134 @IC+7@df7d04 @OC@.n.f 512,512

View file

@ -0,0 +1,76 @@
# @OC@ test
# reg,reg
@OC@ r0,r1
@OC@ fp,sp
# shimm values
@OC@ r0,0
@OC@ r1,-1
@OC@ 0,r2
@OC@ -1,r3
@OC@ r4,255
@OC@ 255,r5
@OC@ r6,-256
@OC@ -256,r7
# limm values
@OC@ r8,256
@OC@ r9,-257
@OC@ 511,r10
@OC@ r11,0x42424242
@OC@ 0x12345678,r12
# shimm and limm
@OC@ 255,256
@OC@ 256,255
# symbols
@OC@ r0,foo
# conditional execution
@OC@.al r0,r1
@OC@.ra r3,r4
@OC@.eq r6,r7
@OC@.z r9,r10
@OC@.ne r12,r13
@OC@.nz r15,r16
@OC@.pl r18,r19
@OC@.p r21,r22
@OC@.mi r24,r25
@OC@.n r27,r28
@OC@.cs r30,r31
@OC@.c r33,r34
@OC@.lo r36,r37
@OC@.cc r39,r40
@OC@.nc r42,r43
@OC@.hs r45,r46
@OC@.vs r48,r49
@OC@.v r51,r52
@OC@.vc r54,r55
@OC@.nv r57,r58
@OC@.gt r60,r60
@OC@.ge r0,0
@OC@.lt 1,r1
@OC@.le 2,2
@OC@.hi r3,r3
@OC@.ls r4,r4
@OC@.pnz r5,r5
# flag setting
@OC@.f r0,r1
@OC@.f r2,1
@OC@.f 1,r3
@OC@.f 0,r4
@OC@.f r5,512
@OC@.f 512,r6
@OC@.f 512,512
# conditional execution + flag setting
@OC@.eq.f r0,r1
@OC@.ne.f r1,0
@OC@.lt.f 0,r2
@OC@.gt.f 1,r2
@OC@.le.f r0,512
@OC@.ge.f 512,r2
@OC@.n.f 512,512