about summary refs log tree commit diff homepage
path: root/test/Feature/ConstExprWithDivZero.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Feature/ConstExprWithDivZero.ll')
-rw-r--r--test/Feature/ConstExprWithDivZero.ll18
1 files changed, 0 insertions, 18 deletions
diff --git a/test/Feature/ConstExprWithDivZero.ll b/test/Feature/ConstExprWithDivZero.ll
deleted file mode 100644
index d50268a6..00000000
--- a/test/Feature/ConstExprWithDivZero.ll
+++ /dev/null
@@ -1,18 +0,0 @@
-; LLVM versions starting from 3.5 replace test code with "ret undef"
-; see https://github.com/klee/klee/issues/268
-; REQUIRES: llvm-3.4
-; RUN: llvm-as %s -f -o %t.bc
-; RUN: rm -rf %t.klee-out
-; RUN: not %klee --output-dir=%t.klee-out %t.bc 2> %t.log
-; RUN: FileCheck --input-file %t.log %s
-
-target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
-target triple = "x86_64-pc-linux-gnu"
-
-@a = internal global i32 0, align 4
-@b = internal global [1 x i32] [i32 1], align 4
-
-define i32 @main() {
-; CHECK: Division/modulo by zero during constant folding
-  ret i32 trunc (i64 sdiv (i64 2036854775807, i64 sext (i32 select (i1 icmp eq (i32* getelementptr inbounds ([1 x i32]* @b, i64 0, i64 0), i32* @a), i32 1, i32 0) to i64)) to i32)
-}