summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/ELF/diff2.s
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-10-16 18:23:53 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-10-16 18:23:53 +0000
commit4262a2222506c97685b4f0f9ff51c2eb9ee59115 (patch)
tree53633d5fe813ac9891a74f95e8bb0d2d93c18946 /llvm/test/MC/ELF/diff2.s
parent556658c79e34ce1fe126e2634d47b80e8b3e78fd (diff)
downloadbcm5719-llvm-4262a2222506c97685b4f0f9ff51c2eb9ee59115.tar.gz
bcm5719-llvm-4262a2222506c97685b4f0f9ff51c2eb9ee59115.zip
Add a MCObjectFormat class so that code common to all targets that use a
single object format can be shared. This also adds support for mov zed+(bar-foo), %eax on ELF and COFF targets. llvm-svn: 116675
Diffstat (limited to 'llvm/test/MC/ELF/diff2.s')
-rw-r--r--llvm/test/MC/ELF/diff2.s13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/MC/ELF/diff2.s b/llvm/test/MC/ELF/diff2.s
new file mode 100644
index 00000000000..4a9fbd1d83a
--- /dev/null
+++ b/llvm/test/MC/ELF/diff2.s
@@ -0,0 +1,13 @@
+// RUN: not llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s 2> %t
+// RUN: FileCheck -input-file %t %s
+
+.global zed
+ .data
+foo:
+ .text
+ nop
+bar:
+ nop
+zed:
+// CHECK: expected relocatable expression
+ mov zed+(bar-foo), %eax
OpenPOWER on IntegriCloud