From c6555deaca41515a5d9c87fec6718ffacd650bf5 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sat, 13 Sep 2014 18:38:40 -0700 Subject: [test/Concrete] Remove the Invoke*.ll tests. - LLVM changed the exception handling semantics a lot, and we can't write compatible tests across the versions. Unfortunately I am afraid this probably also means KLEE's exception handling semantics are broken for LLVM 3.4+, but our C++ support is spotty at best. These tests should probably be replaced with ones in a source language that supports exceptions if and when someone wants to make that work. --- test/Concrete/InvokeAndReturn.ll | 20 -------------------- test/Concrete/InvokeAndUnwindOnce.ll | 20 -------------------- test/Concrete/InvokeAndUnwindTwice.ll | 24 ------------------------ 3 files changed, 64 deletions(-) delete mode 100644 test/Concrete/InvokeAndReturn.ll delete mode 100644 test/Concrete/InvokeAndUnwindOnce.ll delete mode 100644 test/Concrete/InvokeAndUnwindTwice.ll diff --git a/test/Concrete/InvokeAndReturn.ll b/test/Concrete/InvokeAndReturn.ll deleted file mode 100644 index 13fd3e05..00000000 --- a/test/Concrete/InvokeAndReturn.ll +++ /dev/null @@ -1,20 +0,0 @@ -; RUN: %S/ConcreteTest.py --klee=%klee --lli=%lli %s - -declare void @print_i32(i32) - -define i8 @sum(i8 %a, i8 %b) { - %c = add i8 %a, %b - ret i8 %c -} - -define i32 @main() { - invoke i8 @sum(i8 1, i8 2) - to label %continue - unwind label %error -continue: - call void @print_i32(i32 1) - ret i32 0 -error: - call void @print_i32(i32 0) - ret i32 0 -} diff --git a/test/Concrete/InvokeAndUnwindOnce.ll b/test/Concrete/InvokeAndUnwindOnce.ll deleted file mode 100644 index dfd929db..00000000 --- a/test/Concrete/InvokeAndUnwindOnce.ll +++ /dev/null @@ -1,20 +0,0 @@ -; RUN: %S/ConcreteTest.py --klee=%klee --lli=%lli %s - -declare void @print_i32(i32) - -define i8 @sum(i8 %a, i8 %b) { - %c = add i8 %a, %b - unwind -} - -define i32 @main() { - invoke i8 @sum(i8 1, i8 2) - to label %continue - unwind label %error -continue: - call void @print_i32(i32 1) - ret i32 0 -error: - call void @print_i32(i32 0) - ret i32 0 -} diff --git a/test/Concrete/InvokeAndUnwindTwice.ll b/test/Concrete/InvokeAndUnwindTwice.ll deleted file mode 100644 index 148760d8..00000000 --- a/test/Concrete/InvokeAndUnwindTwice.ll +++ /dev/null @@ -1,24 +0,0 @@ -; RUN: %S/ConcreteTest.py --klee=%klee --lli=%lli %s - -declare void @print_i32(i32) - -define i8 @myadd(i8 %a, i8 %b) { - unwind -} - -define i8 @sum(i8 %a, i8 %b) { - %c = call i8 @myadd(i8 %a, i8 %b) - ret i8 %c -} - -define i32 @main() { - invoke i8 @sum(i8 1, i8 2) - to label %continue - unwind label %error -continue: - call void @print_i32(i32 1) - ret i32 0 -error: - call void @print_i32(i32 0) - ret i32 0 -} -- cgit 1.4.1