summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/cris/diffexp-ovwr.s
blob: aea7f49a35a6de09c7d60fe30d0e0484067fcfac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
;
; There are actually two regressions tested here:
; - That a .byte does not overwrite beyond the "byte", if given
;   a non-immediate-constant value (related to "False broken words").
; - That "quick-operands" (in this case, just the unsigned 6-bit
;   one is tested) can take "difference-expressions".
;
 .text
start:
 .dword 0xf0+b-a-0xc5
 .byte 0xf0+b-a-0xc7
 .byte 0xab
 move.b 0xf0+b-a-0xca,r8
 move.w 0xf0+b-a-0xcb,r8
 subq 0xf0+b-a-0xcf,r3
 .ascii "Hello, world\n\0"
 .space 260,0
a:
 .dword 0
b:
 .dword 1