aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2011-03-28 22:47:59 +0000
committerH.J. Lu <hjl.tools@gmail.com>2011-03-28 22:47:59 +0000
commit314a59d568af6b0353bb0263c42741268c8f6839 (patch)
tree08ed7881ee469e09f50eddf2792ceb9a05ac86e2 /gas/testsuite
parente462023046d892ff820fe6c141eb3ae7cdbaaa91 (diff)
downloadgdb-314a59d568af6b0353bb0263c42741268c8f6839.zip
gdb-314a59d568af6b0353bb0263c42741268c8f6839.tar.gz
gdb-314a59d568af6b0353bb0263c42741268c8f6839.tar.bz2
Support .quad for x32.
gas/ 2011-03-28 H.J. Lu <hongjiu.lu@intel.com> * config/tc-i386.c (handle_quad): New. (md_pseudo_table): Add "quad". gas/testsuite/ 2011-03-28 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/ilp32/inval.s: Remove .quad. * gas/i386/ilp32/inval.l: Updated. * gas/i386/ilp32/quad.d: New. * gas/i386/ilp32/quad.s: Likewise.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog8
-rw-r--r--gas/testsuite/gas/i386/ilp32/inval.l8
-rw-r--r--gas/testsuite/gas/i386/ilp32/inval.s4
-rw-r--r--gas/testsuite/gas/i386/ilp32/quad.d14
-rw-r--r--gas/testsuite/gas/i386/ilp32/quad.s5
5 files changed, 28 insertions, 11 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 7975fb8..4f69afa 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,11 @@
+2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
+
+ * gas/i386/ilp32/inval.s: Remove .quad.
+ * gas/i386/ilp32/inval.l: Updated.
+
+ * gas/i386/ilp32/quad.d: New.
+ * gas/i386/ilp32/quad.s: Likewise.
+
2011-03-24 Mike Frysinger <vapier@gentoo.org>
* gas/bfin/expected_errors.s: Add invalid vector add/sub insn tests.
diff --git a/gas/testsuite/gas/i386/ilp32/inval.l b/gas/testsuite/gas/i386/ilp32/inval.l
index 70f9754..d037bae 100644
--- a/gas/testsuite/gas/i386/ilp32/inval.l
+++ b/gas/testsuite/gas/i386/ilp32/inval.l
@@ -3,7 +3,6 @@
.*:4: Error: .*
.*:5: Error: .*
.*:6: Error: .*
-.*:10: Error: .*
GAS LISTING .*
@@ -19,11 +18,6 @@ GAS LISTING .*
[ ]*5[ ]+00000000
[ ]*5[ ]+0000
[ ]*6[ ]+\?\?\?\? 48A10000 movabsq foo,%rax
+\*\*\*\* Error:cannot represent relocation type BFD_RELOC_[ ]*64[ ]+in x32 mode
[ ]*6[ ]+00000000
[ ]*6[ ]+0000
-[ ]*7[ ]+
-[ ]*8[ ]+\.data
-[ ]*9[ ]+xxx:
-[ ]*10[ ]+\?\?\?\? 00000000 \.quad foo
-\*\*\*\* Error:cannot represent relocation type BFD_RELOC_[ ]*64[ ]+in x32 mode
-[ ]*10[ ]+00000000
diff --git a/gas/testsuite/gas/i386/ilp32/inval.s b/gas/testsuite/gas/i386/ilp32/inval.s
index 416c1f8..f117ca0 100644
--- a/gas/testsuite/gas/i386/ilp32/inval.s
+++ b/gas/testsuite/gas/i386/ilp32/inval.s
@@ -4,7 +4,3 @@
movabs foo,%rax
movabsq xxx,%rax
movabsq foo,%rax
-
- .data
-xxx:
- .quad foo
diff --git a/gas/testsuite/gas/i386/ilp32/quad.d b/gas/testsuite/gas/i386/ilp32/quad.d
new file mode 100644
index 0000000..d3e6ff8
--- /dev/null
+++ b/gas/testsuite/gas/i386/ilp32/quad.d
@@ -0,0 +1,14 @@
+#objdump: -sr
+#name: xquad
+
+.*: +file format .*
+
+RELOCATION RECORDS FOR \[.data\]:
+OFFSET +TYPE +VALUE
+0+ R_X86_64_32 +foo
+0+10 R_X86_64_32 +bar
+
+
+Contents of section .data:
+ 0000 00000000 00000000 efcdab90 78674512 ............xgE.
+ 0010 00000000 00000000 ffffffff ffffffff ................
diff --git a/gas/testsuite/gas/i386/ilp32/quad.s b/gas/testsuite/gas/i386/ilp32/quad.s
new file mode 100644
index 0000000..e96653a
--- /dev/null
+++ b/gas/testsuite/gas/i386/ilp32/quad.s
@@ -0,0 +1,5 @@
+ .data
+ .quad foo
+ .quad 0x1245677890abcdef
+ .quad bar
+ .quad -1