aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/lto/inline-asm.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/lto/inline-asm.ll')
-rw-r--r--test/ELF/lto/inline-asm.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/ELF/lto/inline-asm.ll b/test/ELF/lto/inline-asm.ll
new file mode 100644
index 000000000000..b6af6a5a5cbb
--- /dev/null
+++ b/test/ELF/lto/inline-asm.ll
@@ -0,0 +1,11 @@
+; REQUIRES: x86
+; RUN: llvm-as %s -o %t.o
+; RUN: ld.lld -m elf_x86_64 %t.o -o %t.so -shared
+
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-unknown-linux-gnu"
+
+define void @foo() {
+ call void asm "nop", ""()
+ ret void
+}