* gas/arm/adrl.s: Test behaviour against globals too.
[binutils.git] / gas / testsuite / gas / arm / el_segundo.s
blob9f403a10d56512320b48a18fdd94f8e996487f37
1 # el_segundo.s
3 # Tests that we generate the right code for v5e instructions.
4 # This is not a functional test, although it can be linked.
5 # (The section at the rear is non-Coyanosa stuff for comparison.)
6 # To verify a compiler, do:
7 # <gcc build area>/gcc/as el_segundo.s -o _temp.o
8 # <gcc build area>/binutils/objdump -dr _temp.o >! _temp.d
9 # diff _temp.d el_segundo.d
11 .section .rdata
12 .align 0
13 .LC0:
14 .ascii "some data\000"
16 .text
17 .global main
18 # .type main,function
19 .align 0
21 main:
22 smlabbgt r0,r1,r2,r3
23 smlabb r0,r1,r2,r3
24 smlatb r0,r1,r2,r3
25 smlabt r0,r1,r2,r3
26 smlatt r0,r1,r2,r3
28 smlawbgt r0,r1,r2,r3
29 smlawb r0,r1,r2,r3
30 smlawt r0,r1,r2,r3
32 smlalbbgt r0,r1,r2,r3
33 smlalbb r0,r1,r2,r3
34 smlaltb r0,r1,r2,r3
35 smlalbt r0,r1,r2,r3
36 smlaltt r0,r1,r2,r3
38 smulbbgt r0,r1,r2
39 smulbb r0,r1,r2
40 smultb r0,r1,r2
41 smulbt r0,r1,r2
42 smultt r0,r1,r2
44 smulwbgt r0,r1,r2
45 smulwb r0,r1,r2
46 smulwt r0,r1,r2
48 qaddgt r0,r1,r2
49 qadd r0,r1,r2
51 qdadd r0,r1,r2
52 qsub r0,r1,r2
53 qdsub r0,r1,r2
54 qsub r0,r1,r2