From 9f1bd8010282253935a4ca41877651240a2be6ab Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 4 Dec 2002 17:15:07 +0000 Subject: [PATCH] Add main functions to benchmarks git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4915 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/ExecutionEngine/test-arith.ll | 2 +- test/ExecutionEngine/test-branch.ll | 2 +- test/ExecutionEngine/test-call.ll | 6 +++--- test/ExecutionEngine/test-loadstore.ll | 8 ++++++++ test/ExecutionEngine/test-logical.ll | 2 +- test/ExecutionEngine/test-ret.ll | 2 +- 6 files changed, 15 insertions(+), 7 deletions(-) diff --git a/test/ExecutionEngine/test-arith.ll b/test/ExecutionEngine/test-arith.ll index ffe85a8525a..0527277e9d6 100644 --- a/test/ExecutionEngine/test-arith.ll +++ b/test/ExecutionEngine/test-arith.ll @@ -1,5 +1,5 @@ -void %test() { +void %main() { %A = add sbyte 0, 12 %B = sub sbyte %A, %A %C = mul sbyte %B, %B diff --git a/test/ExecutionEngine/test-branch.ll b/test/ExecutionEngine/test-branch.ll index d209e0b2f98..3de281b02b9 100644 --- a/test/ExecutionEngine/test-branch.ll +++ b/test/ExecutionEngine/test-branch.ll @@ -2,7 +2,7 @@ void %main() { br label %Test Test: - %X = seteq int 0, 4 + %X = setne int 0, 4 br bool %X, label %Test, label %Label Label: ret void diff --git a/test/ExecutionEngine/test-call.ll b/test/ExecutionEngine/test-call.ll index 6699bb65bae..0b5d2817b81 100644 --- a/test/ExecutionEngine/test-call.ll +++ b/test/ExecutionEngine/test-call.ll @@ -1,7 +1,7 @@ -declare void %foo() +declare void %exit(int) -void %test1() { - call void %foo() +void %main() { + call void %exit(int 1) ret void } diff --git a/test/ExecutionEngine/test-loadstore.ll b/test/ExecutionEngine/test-loadstore.ll index f8fadab85e4..936aa5f7443 100644 --- a/test/ExecutionEngine/test-loadstore.ll +++ b/test/ExecutionEngine/test-loadstore.ll @@ -10,3 +10,11 @@ void %test(sbyte* %P, short* %P, int* %P) { store int %V, int* %P ret void } + +void %main() { + %A = alloca sbyte + %B = alloca short + %C = alloca int + call void %test(sbyte* %A, short* %B, int* %C) + ret void +} diff --git a/test/ExecutionEngine/test-logical.ll b/test/ExecutionEngine/test-logical.ll index 732054d6f88..0edf0d4df89 100644 --- a/test/ExecutionEngine/test-logical.ll +++ b/test/ExecutionEngine/test-logical.ll @@ -1,5 +1,5 @@ -void %test() { +void %main() { %A = and sbyte 4, 8 %B = or sbyte %A, 7 %C = xor sbyte %B, %A diff --git a/test/ExecutionEngine/test-ret.ll b/test/ExecutionEngine/test-ret.ll index ce76fb6edbd..7387b1b14e0 100644 --- a/test/ExecutionEngine/test-ret.ll +++ b/test/ExecutionEngine/test-ret.ll @@ -5,7 +5,7 @@ sbyte %test() { ret sbyte 1 } ubyte %test() { ret ubyte 1 } short %test() { ret short -1 } ushort %test() { ret ushort 65535 } -int %test() { ret int -1 } +int %main() { ret int -1 } uint %test() { ret uint 4 } ;long %test() { ret void } ;ulong %test() { ret void }