aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>1995-04-08 22:06:24 +0000
committerDavid Edelsohn <dje.gcc@gmail.com>1995-04-08 22:06:24 +0000
commit4f1fc8f9c276cb3c60bdc0096bf1d235449c6ab4 (patch)
treeb91ac436594903d0a79702a58696bca9b8aa336c /gas
parente6d7eb499e4f212a8aa3be33f11d8e0d05c3964a (diff)
downloadgdb-4f1fc8f9c276cb3c60bdc0096bf1d235449c6ab4.zip
gdb-4f1fc8f9c276cb3c60bdc0096bf1d235449c6ab4.tar.gz
gdb-4f1fc8f9c276cb3c60bdc0096bf1d235449c6ab4.tar.bz2
Stay away from duplicate arguments, will collide with aliases (eg: and->mov).
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/gas/arc/math.d12
-rw-r--r--gas/testsuite/gas/arc/math.s15
2 files changed, 15 insertions, 12 deletions
diff --git a/gas/testsuite/gas/arc/math.d b/gas/testsuite/gas/arc/math.d
index 630debe..bc0bebb 100644
--- a/gas/testsuite/gas/arc/math.d
+++ b/gas/testsuite/gas/arc/math.d
@@ -25,8 +25,8 @@ Disassembly of section .text:
00000040 @IC+0@00fc00 @OC@ r0,r1,256
00000048 @IC+0@1f0400 @OC@ r0,-257,r2
00000050 @IC+7@c08400 @OC@ 511,r1,r2
-00000058 @IC+0@1f7c00 @OC@ r0,1111638594,1111638594
-00000060 @IC+7@df7c00 @OC@ 305419896,305419896,305419896
+00000058 @IC+0@1f0400 @OC@ r0,1111638594,r2
+00000060 @IC+7@c0fc00 @OC@ 305419896,r1,305419896
00000068 @IC+0@1ffcff @OC@ r0,255,256
00000070 @IC+0@1f7eff @OC@ r0,256,255
00000078 @IC+7@e0fcff @OC@ 255,r1,256
@@ -55,13 +55,13 @@ Disassembly of section .text:
000000e4 @IC+6@7a6a07 @OC@.v r51,r52,r53
000000e8 @IC+6@dbf008 @OC@.nv r54,r55,r56
000000ec @IC+7@3d7608 @OC@.nv r57,r58,r59
-000000f0 @IC+7@9e7809 @OC@.gt lp_count,lp_count,lp_count
+000000f0 @IC+7@9e0009 @OC@.gt lp_count,lp_count,r0
000000f4 @IC+0@007c0a @OC@.ge r0,r0,0
000000fc @IC+0@3f020b @OC@.lt r1,1,r1
-00000104 @IC+7@c1040c @OC@.le 2,r2,r2
-0000010c @IC+0@7f7c0d @OC@.hi r3,3,3
+00000104 @IC+7@c0840c @OC@.le 2,r1,r2
+0000010c @IC+0@7f060d @OC@.hi r3,3,r3
00000114 @IC+7@df080e @OC@.ls 4,4,r4
-0000011c @IC+7@df7c0f @OC@.pnz 5,5,5
+0000011c @IC+7@c2fc0f @OC@.pnz 5,r5,5
00000124 @IC+0@008500 @OC@.f r0,r1,r2
00000128 @IC+0@00fa01 @OC@.f r0,r1,1
0000012c @IC+0@1e8401 @OC@.f r0,1,r2
diff --git a/gas/testsuite/gas/arc/math.s b/gas/testsuite/gas/arc/math.s
index 1cb04eb..775169a 100644
--- a/gas/testsuite/gas/arc/math.s
+++ b/gas/testsuite/gas/arc/math.s
@@ -1,5 +1,8 @@
# @OC@ test
+# Stay away from operands with duplicate arguments (eg: add r0,r1,r1).
+# They will be disassembled as they're macro counterparts (eg: asl r0,r1).
+
# reg,reg,reg
@OC@ r0,r1,r2
@OC@ r26,fp,sp
@@ -24,8 +27,8 @@
@OC@ r0,r1,256
@OC@ r0,-257,r2
@OC@ 511,r1,r2
- @OC@ r0,0x42424242,0x42424242
- @OC@ 0x12345678,0x12345678,0x12345678
+ @OC@ r0,0x42424242,r2
+ @OC@ 0x12345678,r1,0x12345678
# shimm and limm
@OC@ r0,255,256
@@ -59,13 +62,13 @@
@OC@.v r51,r52,r53
@OC@.vc r54,r55,r56
@OC@.nv r57,r58,r59
- @OC@.gt r60,r60,r60
+ @OC@.gt r60,r60,r0
@OC@.ge r0,r0,0
@OC@.lt r1,1,r1
- @OC@.le 2,r2,r2
- @OC@.hi r3,3,3
+ @OC@.le 2,r1,r2
+ @OC@.hi r3,3,r3
@OC@.ls 4,4,r4
- @OC@.pnz 5,5,5
+ @OC@.pnz 5,r5,5
# flag setting
@OC@.f r0,r1,r2