summaryrefslogtreecommitdiffstats
path: root/test/Assembler/2008-09-29-RetAttr.ll
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-09-29 20:49:50 +0000
committerDevang Patel <dpatel@apple.com>2008-09-29 20:49:50 +0000
commit652203f3f3b6dd5062bb450d189a80d8aaa51693 (patch)
tree4123ccebcf9d7bbda6fa3d578235245e7d5bbd38 /test/Assembler/2008-09-29-RetAttr.ll
parent66c6c65de28c3140fd4d048535fc259fc3f71479 (diff)
downloadexternal_llvm-652203f3f3b6dd5062bb450d189a80d8aaa51693.zip
external_llvm-652203f3f3b6dd5062bb450d189a80d8aaa51693.tar.gz
external_llvm-652203f3f3b6dd5062bb450d189a80d8aaa51693.tar.bz2
Support inreg, zext and sext as return value attributes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56801 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Assembler/2008-09-29-RetAttr.ll')
-rw-r--r--test/Assembler/2008-09-29-RetAttr.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Assembler/2008-09-29-RetAttr.ll b/test/Assembler/2008-09-29-RetAttr.ll
new file mode 100644
index 0000000..f7db96d
--- /dev/null
+++ b/test/Assembler/2008-09-29-RetAttr.ll
@@ -0,0 +1,13 @@
+; Test return attributes
+; RUN: llvm-as < %s | llvm-dis | grep "define inreg i32"
+; RUN: llvm-as < %s | llvm-dis | grep "call inreg i32"
+
+define inreg i32 @fn1() {
+ ret i32 0
+}
+
+define void @fn2() {
+ %t = call inreg i32 @fn1()
+ ret void
+}
+