summaryrefslogtreecommitdiffstats
path: root/llvm/test/Regression/CodeGen/Generic/call2-ret0.ll
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2004-08-11 14:16:34 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2004-08-11 14:16:34 +0000
commit81f6ee80709651708d806d1d9c0691c04f41a28c (patch)
treea537756c0d3058282c058e35819035164ac9f220 /llvm/test/Regression/CodeGen/Generic/call2-ret0.ll
parent7224ee1e4c584c1336bce49119aba4c7591e5f96 (diff)
downloadbcm5719-llvm-81f6ee80709651708d806d1d9c0691c04f41a28c.tar.gz
bcm5719-llvm-81f6ee80709651708d806d1d9c0691c04f41a28c.zip
Simple hand-coded tests to aid in early development of backends, along with a
Makefile to run ad-hoc tests easily. llvm-svn: 15664
Diffstat (limited to 'llvm/test/Regression/CodeGen/Generic/call2-ret0.ll')
-rw-r--r--llvm/test/Regression/CodeGen/Generic/call2-ret0.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/Regression/CodeGen/Generic/call2-ret0.ll b/llvm/test/Regression/CodeGen/Generic/call2-ret0.ll
new file mode 100644
index 00000000000..6159e40c097
--- /dev/null
+++ b/llvm/test/Regression/CodeGen/Generic/call2-ret0.ll
@@ -0,0 +1,13 @@
+int %bar(int %x) {
+ ret int 0
+}
+
+int %foo(int %x) {
+ %q = call int %bar(int 1)
+ ret int %q
+}
+
+int %main() {
+ %r = call int %foo(int 2)
+ ret int %r
+}
OpenPOWER on IntegriCloud