summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/ExecutionEngine/test-arith.ll2
-rw-r--r--test/ExecutionEngine/test-branch.ll2
-rw-r--r--test/ExecutionEngine/test-call.ll6
-rw-r--r--test/ExecutionEngine/test-loadstore.ll8
-rw-r--r--test/ExecutionEngine/test-logical.ll2
-rw-r--r--test/ExecutionEngine/test-ret.ll2
6 files changed, 15 insertions, 7 deletions
diff --git a/test/ExecutionEngine/test-arith.ll b/test/ExecutionEngine/test-arith.ll
index ffe85a8525..0527277e9d 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 d209e0b2f9..3de281b02b 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 6699bb65ba..0b5d2817b8 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 f8fadab85e..936aa5f744 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 732054d6f8..0edf0d4df8 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 ce76fb6edb..7387b1b14e 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 }