summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
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
commit1522e2498fc88671170726d5a9a27448c856548f (patch)
tree86581201c91a322b682399b82180dba1f589a759 /llvm/test/CodeGen
parentb4947e4378fee65ba0d7410da03ab9f185e56074 (diff)
downloadbcm5719-llvm-1522e2498fc88671170726d5a9a27448c856548f.tar.gz
bcm5719-llvm-1522e2498fc88671170726d5a9a27448c856548f.zip
wire up support for emitting "special" values from inline asm
format strings with the standard ${:foo} syntax. llvm-svn: 66527
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/Generic/inline-asm-special-strings.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Generic/inline-asm-special-strings.ll b/llvm/test/CodeGen/Generic/inline-asm-special-strings.ll
new file mode 100644
index 00000000000..e52e0be74bc
--- /dev/null
+++ b/llvm/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
+}
OpenPOWER on IntegriCloud