MC: support passing search paths to the IAS
This is needed to support inclusion in inline assembly via the
`.include` directive.
llvm-svn: 291085
diff --git a/llvm/test/MC/AsmParser/include.ll b/llvm/test/MC/AsmParser/include.ll
new file mode 100644
index 0000000..cc733f7
--- /dev/null
+++ b/llvm/test/MC/AsmParser/include.ll
@@ -0,0 +1,13 @@
+; RUN: llc -mtriple thumbv7--- -I %p/include -filetype asm -o - %s | FileCheck %s
+
+module asm ".include \22module.x\22"
+
+define arm_aapcscc void @f() {
+entry:
+ call void asm sideeffect ".include \22function.x\22", ""()
+ ret void
+}
+
+; CHECK: MODULE = 1
+; CHECK: FUNCTION = 1
+
diff --git a/llvm/test/MC/AsmParser/include/function.x b/llvm/test/MC/AsmParser/include/function.x
new file mode 100644
index 0000000..582bfdf
--- /dev/null
+++ b/llvm/test/MC/AsmParser/include/function.x
@@ -0,0 +1,3 @@
+
+FUNCTION = 1
+
diff --git a/llvm/test/MC/AsmParser/include/module.x b/llvm/test/MC/AsmParser/include/module.x
new file mode 100644
index 0000000..e93c615
--- /dev/null
+++ b/llvm/test/MC/AsmParser/include/module.x
@@ -0,0 +1,3 @@
+
+MODULE = 1
+