aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/i386-pc8.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/i386-pc8.s')
-rw-r--r--test/ELF/i386-pc8.s15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/ELF/i386-pc8.s b/test/ELF/i386-pc8.s
new file mode 100644
index 000000000000..65cbd21ccb62
--- /dev/null
+++ b/test/ELF/i386-pc8.s
@@ -0,0 +1,15 @@
+# REQUIRES: x86
+# RUN: llvm-mc -filetype=obj -triple=i386-pc-linux-gnu %s -o %t1.o
+# RUN: ld.lld -Ttext 0x0 %t1.o -o %t.out
+# RUN: llvm-objdump -s -section=.text %t.out | FileCheck %s
+
+# CHECK: Contents of section .text:
+# CHECK-NEXT: 0000 15253748
+
+.byte und-.+0x11
+.byte und-.+0x22
+.byte und+0x33
+.byte und+0x44
+
+.section .und, "ax"
+und: