summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/i386
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2009-04-20 06:34:52 +0000
committerJan Beulich <jbeulich@novell.com>2009-04-20 06:34:52 +0000
commit76b85da6de41b5643ab47412b60971e70366cc2b (patch)
tree5c78f2523301c980c100dac6d02ef75970e39da4 /gas/testsuite/gas/i386
parent0ed176da19a42aed7671dd0af5264fc2de582c4e (diff)
downloadbinutils-redhat-76b85da6de41b5643ab47412b60971e70366cc2b.tar.gz
Add files left out with previous commit.
Diffstat (limited to 'gas/testsuite/gas/i386')
-rw-r--r--gas/testsuite/gas/i386/intel-expr.d13
-rw-r--r--gas/testsuite/gas/i386/intel-expr.s40
2 files changed, 53 insertions, 0 deletions
diff --git a/gas/testsuite/gas/i386/intel-expr.d b/gas/testsuite/gas/i386/intel-expr.d
new file mode 100644
index 0000000000..1b1f937ba2
--- /dev/null
+++ b/gas/testsuite/gas/i386/intel-expr.d
@@ -0,0 +1,13 @@
+#objdump: -sj .data
+#name: x86 Intel expressions
+
+.*: file format .*
+
+Contents of section .data:
+ 0000 00000000 01000000 feffffff fcffffff .*
+ 0010 05000000 03000000 12000000 0[17]000000 .*
+ 0020 03000000 40020000 00000000 08000000 .*
+ 0030 05000000 0f000000 ffffffff 00000000 .*
+ 0040 ffffffff 00000000 ffffffff 00000000 .*
+ 0050 01020406 080a1010 20cccccc cccccccc .*
+ 0060 02ff05ff 04ff06ff 08ff06ff cccccccc .*
diff --git a/gas/testsuite/gas/i386/intel-expr.s b/gas/testsuite/gas/i386/intel-expr.s
new file mode 100644
index 0000000000..7149f69515
--- /dev/null
+++ b/gas/testsuite/gas/i386/intel-expr.s
@@ -0,0 +1,40 @@
+ .intel_syntax
+ .data
+
+ .long 0
+ .long + 1
+ .long - 2
+ .long not 3
+ .long 4 + 1
+ .long 5 - 2
+ .long 6 * 3
+ .long 7 / 4
+ .long 8 mod 5
+ .long 9 shl 6
+ .long 10 shr 7
+ .long 11 and 8
+ .long 12 xor 9
+ .long 13 or 10
+ .long 14 eq 14
+ .long 15 ne 15
+ .long 16 le 16
+ .long 17 lt 17
+ .long 18 ge 18
+ .long 19 gt 19
+
+ .p2align 4, 0xcc
+
+ .byte byte, word, dword, fword, qword, tbyte, oword, xmmword, ymmword
+
+ .p2align 4, 0xcc
+
+ .code16
+ .word near, far
+
+ .code32
+ .word near, far
+
+ .code64
+ .word near, far
+
+ .p2align 4, 0xcc