Stay away from duplicate arguments, will collide with aliases (eg: and->mov).
authorDavid Edelsohn <dje.gcc@gmail.com>
Sat, 8 Apr 1995 22:06:24 +0000 (22:06 +0000)
committerDavid Edelsohn <dje.gcc@gmail.com>
Sat, 8 Apr 1995 22:06:24 +0000 (22:06 +0000)
gas/testsuite/gas/arc/math.d
gas/testsuite/gas/arc/math.s

index 630debe4d01c1685c55d0b9e2e973697c19fd9c7..bc0bebb9bda314864f250b81d50555e62915ac37 100644 (file)
@@ -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
index 1cb04eb6e3af18a340714cc9bb085bde141ea81a..775169a8a50ae2a6bc4e8d3bcdba9786df996bed 100644 (file)
@@ -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
        @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