From 6cc8ee707c1b4337120aa2972e2ad13a4861bbc3 Mon Sep 17 00:00:00 2001 From: Frank Busse Date: Mon, 13 Jun 2022 10:42:51 +0100 Subject: remove LLVM < 9 --- test/Feature/FNeg.ll | 1 - test/Intrinsics/IsConstant.ll | 1 - test/Intrinsics/Saturating.ll | 1 - test/Intrinsics/fshlr.ll | 1 - test/Intrinsics/objectsize.leq80.ll | 40 ------------------------------------- test/Intrinsics/objectsize.ll | 1 - test/lit.cfg | 2 +- 7 files changed, 1 insertion(+), 46 deletions(-) delete mode 100644 test/Intrinsics/objectsize.leq80.ll (limited to 'test') diff --git a/test/Feature/FNeg.ll b/test/Feature/FNeg.ll index cdea6aaa..a6213fc2 100644 --- a/test/Feature/FNeg.ll +++ b/test/Feature/FNeg.ll @@ -1,4 +1,3 @@ -; REQUIRES: geq-llvm-8.0 ; RUN: %llvmas %s -o %t.bc ; RUN: rm -rf %t.klee-out ; RUN: %klee -exit-on-error -output-dir=%t.klee-out -optimize=false %t.bc diff --git a/test/Intrinsics/IsConstant.ll b/test/Intrinsics/IsConstant.ll index b196d933..72ab5e72 100644 --- a/test/Intrinsics/IsConstant.ll +++ b/test/Intrinsics/IsConstant.ll @@ -1,4 +1,3 @@ -; REQUIRES: geq-llvm-8.0 ; RUN: %llvmas %s -o=%t.bc ; RUN: rm -rf %t.klee-out ; RUN: %klee -exit-on-error --output-dir=%t.klee-out --optimize=false %t.bc diff --git a/test/Intrinsics/Saturating.ll b/test/Intrinsics/Saturating.ll index 15aad409..306ec93b 100644 --- a/test/Intrinsics/Saturating.ll +++ b/test/Intrinsics/Saturating.ll @@ -1,4 +1,3 @@ -; REQUIRES: geq-llvm-8.0 ; RUN: %llvmas %s -f -o %t1.bc ; RUN: rm -rf %t.klee-out ; RUN: %klee --output-dir=%t.klee-out --optimize=false %t1.bc | FileCheck %s diff --git a/test/Intrinsics/fshlr.ll b/test/Intrinsics/fshlr.ll index fcdf32ff..a47951f3 100644 --- a/test/Intrinsics/fshlr.ll +++ b/test/Intrinsics/fshlr.ll @@ -14,7 +14,6 @@ ; where the constants a, b, c and r are copied from the constants ; used in the LLVM testfile llvm/test/Analysis/ConstantFolding/funnel-shift.ll -; REQUIRES: geq-llvm-7.0 ; RUN: %llvmas %s -o=%t.bc ; RUN: rm -rf %t.klee-out ; RUN: %klee -exit-on-error --output-dir=%t.klee-out --optimize=false %t.bc diff --git a/test/Intrinsics/objectsize.leq80.ll b/test/Intrinsics/objectsize.leq80.ll deleted file mode 100644 index ce2a2429..00000000 --- a/test/Intrinsics/objectsize.leq80.ll +++ /dev/null @@ -1,40 +0,0 @@ -; REQUIRES: lt-llvm-9.0 -; RUN: %llvmas %s -o=%t.bc -; RUN: rm -rf %t.klee-out -; RUN: %klee -exit-on-error --output-dir=%t.klee-out --optimize=false %t.bc -; ModuleID = 'objectsize.c' -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-unknown-linux-gnu" - -define i32 @main() nounwind uwtable { -entry: - %a = alloca i8*, align 8 - %0 = load i8*, i8** %a, align 8 - %1 = call i64 @llvm.objectsize.i64.p0i8(i8* %0, i1 true, i1 false) - %cmp = icmp ne i64 %1, 0 - br i1 %cmp, label %abort.block, label %continue.block - -continue.block: - %2 = load i8*, i8** %a, align 8 - %3 = call i64 @llvm.objectsize.i64.p0i8(i8* %2, i1 false, i1 false) - %cmp1 = icmp ne i64 %3, -1 - br i1 %cmp1, label %abort.block, label %continue.block2 - -continue.block2: -; allocate one byte - %b = alloca i8, align 8 - %4 = call i64 @llvm.objectsize.i64.p0i8(i8* %b, i1 false, i1 false) - %cmp2 = icmp ne i64 %4, 1 - br i1 %cmp2, label %abort.block, label %exit.block - -exit.block: - ret i32 0 - -abort.block: - call void @abort() - unreachable -} - -declare i64 @llvm.objectsize.i64.p0i8(i8*, i1, i1) nounwind readnone - -declare void @abort() noreturn nounwind diff --git a/test/Intrinsics/objectsize.ll b/test/Intrinsics/objectsize.ll index 9fa84de5..f5d6a51a 100644 --- a/test/Intrinsics/objectsize.ll +++ b/test/Intrinsics/objectsize.ll @@ -1,5 +1,4 @@ ; LLVM 9 added parameter "dynamic" to @llvm.objectsize -; REQUIRES: geq-llvm-9.0 ; RUN: %llvmas %s -o=%t.bc ; RUN: rm -rf %t.klee-out ; RUN: %klee -exit-on-error --output-dir=%t.klee-out --optimize=false %t.bc diff --git a/test/lit.cfg b/test/lit.cfg index 84ad0c79..4d7382cf 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -161,7 +161,7 @@ config.substitutions.append( # Add feature for the LLVM version in use, so it can be tested in REQUIRES and # XFAIL checks. We also add "not-XXX" variants, for the same reason. -known_llvm_versions = { "6.0", "7.0", "7.1", "8.0", "9.0", "10.0", "11.0", "11.1", "12.0", "13.0" } +known_llvm_versions = { "9.0", "10.0", "11.0", "11.1", "12.0", "13.0" } current_llvm_version_tuple = (int(config.llvm_version_major), int(config.llvm_version_minor)) current_llvm_version = "%s.%s" % current_llvm_version_tuple -- cgit 1.4.1