Add main functions to benchmarks

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4915 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-12-04 17:15:07 +00:00
parent a361c8417b
commit 9f1bd80102
6 changed files with 15 additions and 7 deletions

View File

@ -1,5 +1,5 @@
void %test() {
void %main() {
%A = add sbyte 0, 12
%B = sub sbyte %A, %A
%C = mul sbyte %B, %B

View File

@ -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

View File

@ -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
}

View File

@ -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
}

View File

@ -1,5 +1,5 @@
void %test() {
void %main() {
%A = and sbyte 4, 8
%B = or sbyte %A, 7
%C = xor sbyte %B, %A

View File

@ -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 }