diff options
author | Chris Lattner <sabre@nondot.org> | 2002-12-04 17:15:07 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-12-04 17:15:07 +0000 |
commit | 9f1bd8010282253935a4ca41877651240a2be6ab (patch) | |
tree | c5a922fc25b38b526a1861e4b764b20411aaf453 | |
parent | a361c8417b9c2381a097a6dfdbfb7ac0d8379a69 (diff) | |
download | external_llvm-9f1bd8010282253935a4ca41877651240a2be6ab.zip external_llvm-9f1bd8010282253935a4ca41877651240a2be6ab.tar.gz external_llvm-9f1bd8010282253935a4ca41877651240a2be6ab.tar.bz2 |
Add main functions to benchmarks
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4915 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/ExecutionEngine/test-arith.ll | 2 | ||||
-rw-r--r-- | test/ExecutionEngine/test-branch.ll | 2 | ||||
-rw-r--r-- | test/ExecutionEngine/test-call.ll | 6 | ||||
-rw-r--r-- | test/ExecutionEngine/test-loadstore.ll | 8 | ||||
-rw-r--r-- | test/ExecutionEngine/test-logical.ll | 2 | ||||
-rw-r--r-- | 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 ffe85a8..0527277 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 d209e0b..3de281b 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 6699bb6..0b5d281 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 f8fadab..936aa5f 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 732054d..0edf0d4 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 ce76fb6..7387b1b 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 } |