diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2010-09-03 17:38:38 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2010-09-03 17:38:38 +0000 |
commit | 13f864aed86358efd5504098e61184b06054d43c (patch) | |
tree | af424dd9f13d93e20994c44fe1b28d8f0edd4a20 /gas/testsuite | |
parent | 18464d4d31ffc294347280430c1302e576d98b47 (diff) | |
download | gdb-13f864aed86358efd5504098e61184b06054d43c.zip gdb-13f864aed86358efd5504098e61184b06054d43c.tar.gz gdb-13f864aed86358efd5504098e61184b06054d43c.tar.bz2 |
Check flag_code instead of use_rela_relocations for 64bit.
gas/
2010-09-03 H.J. Lu <hongjiu.lu@intel.com>
PR gas/11974
* config/tc-i386.c (i386_finalize_immediate): Check flag_code
instead of use_rela_relocations for 64bit.
gas/testsuite/
2010-09-03 H.J. Lu <hongjiu.lu@intel.com>
PR gas/11974
* gas/i386/immed64.s: Add more movabs tests.
* gas/i386/immed64.d: Updated.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/immed64.d | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/immed64.s | 3 |
3 files changed, 11 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 93c1b1d..73eee88 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2010-09-03 H.J. Lu <hongjiu.lu@intel.com> + + PR gas/11974 + * gas/i386/immed64.s: Add more movabs tests. + * gas/i386/immed64.d: Updated. + 2010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com> * gas/elf/dwarf2-1.d: Update DW_OP_reg5 expected output. diff --git a/gas/testsuite/gas/i386/immed64.d b/gas/testsuite/gas/i386/immed64.d index e195ffd..35492a5 100644 --- a/gas/testsuite/gas/i386/immed64.d +++ b/gas/testsuite/gas/i386/immed64.d @@ -57,4 +57,6 @@ Disassembly of section \.text: [ ]*[0-9a-fA-F]+:[ ]+e5 04[ ]+inl? +\$0x4,%eax [ ]*[0-9a-fA-F]+:[ ]+e5 08[ ]+inl? +\$0x8,%eax [ ]*[0-9a-fA-F]+:[ ]+e5 00[ ]+inl? +\$0x0,%eax +[ ]*[a-f0-9]+: 48 b8 01 00 00 80 00 00 00 00 movabs \$0x80000001,%rax +[ ]*[a-f0-9]+: 48 b8 01 00 00 80 00 00 00 00 movabs \$0x80000001,%rax #pass diff --git a/gas/testsuite/gas/i386/immed64.s b/gas/testsuite/gas/i386/immed64.s index 4e68701..265b419 100644 --- a/gas/testsuite/gas/i386/immed64.s +++ b/gas/testsuite/gas/i386/immed64.s @@ -54,3 +54,6 @@ _start: inl $xtrn, %eax .equiv late, 8 + + movabs $0x80000001, %rax + movabsq $0x80000001, %rax |