summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/i386/x86-64-inval-gpoff.s
diff options
context:
space:
mode:
Diffstat (limited to 'gas/testsuite/gas/i386/x86-64-inval-gpoff.s')
-rw-r--r--gas/testsuite/gas/i386/x86-64-inval-gpoff.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/gas/testsuite/gas/i386/x86-64-inval-gpoff.s b/gas/testsuite/gas/i386/x86-64-inval-gpoff.s
new file mode 100644
index 00000000000..8aacbf84807
--- /dev/null
+++ b/gas/testsuite/gas/i386/x86-64-inval-gpoff.s
@@ -0,0 +1,7 @@
+ .text
+_start:
+ movl %fs:foo@GPOFF(%rip), %eax
+ movl %fs:foo@GPOFF(%rax), %eax
+ movl %ds:foo@GPOFF(%rax, %rcx, 2), %eax
+ movl foo@GPOFF(%rip), %eax
+ movl foo@GPOFF(%rax), %eax