aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/Generic/inline-asm-special-strings.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-10 05:37:13 +0000
committerChris Lattner <sabre@nondot.org>2009-03-10 05:37:13 +0000
commit3e0cc2634e861b789850b5103efcc8898bf14c4c (patch)
tree5d4dcd2ddb50be27f0f0391c58808c9213921dd6 /test/CodeGen/Generic/inline-asm-special-strings.ll
parent3328adda6b9386c4442b5ec71eeaaf41e8df58b5 (diff)
wire up support for emitting "special" values from inline asm
format strings with the standard ${:foo} syntax. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66527 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Generic/inline-asm-special-strings.ll')
-rw-r--r--test/CodeGen/Generic/inline-asm-special-strings.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/inline-asm-special-strings.ll b/test/CodeGen/Generic/inline-asm-special-strings.ll
new file mode 100644
index 0000000000..e52e0be74b
--- /dev/null
+++ b/test/CodeGen/Generic/inline-asm-special-strings.ll
@@ -0,0 +1,6 @@
+; RUN: llvm-as < %s | llc | grep "foo 0 0"
+
+define void @bar() nounwind {
+ tail call void asm sideeffect "foo ${:uid} ${:uid}", ""() nounwind
+ ret void
+}