summaryrefslogtreecommitdiffstats
path: root/llvm/test/Regression/CodeGen/Generic/print-int.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/print-int.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/print-int.ll')
-rw-r--r--llvm/test/Regression/CodeGen/Generic/print-int.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/Regression/CodeGen/Generic/print-int.ll b/llvm/test/Regression/CodeGen/Generic/print-int.ll
new file mode 100644
index 00000000000..ee7d3d1d5fe
--- /dev/null
+++ b/llvm/test/Regression/CodeGen/Generic/print-int.ll
@@ -0,0 +1,11 @@
+%.str_1 = internal constant [4 x sbyte] c"%d\0A\00"
+
+declare int %printf(sbyte*, ...)
+
+int %main() {
+ %f = getelementptr [4 x sbyte]* %.str_1, long 0, long 0
+ %d = add int 0, 0
+ %tmp.0 = call int (sbyte*, ...)* %printf(sbyte* %f, int %d)
+ ret int 0
+}
+
OpenPOWER on IntegriCloud