Browse Source
hosts. * cgen-asm.c (cgen_parse_signed_integer): Add code to handle the sign extension of negative values on a 64-bit host. * frv-asm.c: Regenerate. * gas/frv/immediates.s: New test file - checks assembly of constant values. * gas/frv/immediates.d: Expected disassmbly. * gas/frv/allinsn.exp: Run the new test.cygwin-64bit-branch
10 changed files with 78 additions and 16 deletions
@ -0,0 +1,12 @@ |
|||||
|
#as: |
||||
|
#objdump: -d |
||||
|
#name: Parsing immediate values |
||||
|
|
||||
|
.*: +file format .* |
||||
|
|
||||
|
Disassembly of section \.text: |
||||
|
|
||||
|
00000000 <foo>: |
||||
|
0:[ ]+86 fc e0 00[ ]+setlos 0xff+e000,gr3 |
||||
|
4:[ ]+08 f8 3f ff[ ]+sethi.p 0x3fff,gr4 |
||||
|
|
||||
@ -0,0 +1,9 @@ |
|||||
|
;; These instructions can be found in the FRV Linux kernel. |
||||
|
;; They used to fail to assemble on 64-bit host machines |
||||
|
;; because of sign-extension problems. |
||||
|
|
||||
|
.text |
||||
|
.global foo |
||||
|
foo: |
||||
|
setlos #0xffffe000, gr3 |
||||
|
sethi.p %hi(~(0x80000000 | 0x40000000)), gr4 |
||||
Loading…
Reference in new issue