From 26b0000166ca3d00f2a1990b43a1f45cdac4e9b6 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 17 Jun 2011 03:14:27 +0000 Subject: manually upgrade a bunch of tests to modern syntax, and remove some that are either unreduced or only test old syntax. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133228 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Integer/BitMem.ll | 29 ---------------------------- test/Integer/alignment_bt.ll | 21 -------------------- test/Integer/paramattrs_bt.ll | 8 ++++---- test/Integer/testmemory_bt.ll | 45 ------------------------------------------- 4 files changed, 4 insertions(+), 99 deletions(-) delete mode 100644 test/Integer/BitMem.ll delete mode 100644 test/Integer/alignment_bt.ll delete mode 100644 test/Integer/testmemory_bt.ll (limited to 'test/Integer') diff --git a/test/Integer/BitMem.ll b/test/Integer/BitMem.ll deleted file mode 100644 index 2c093bc990..0000000000 --- a/test/Integer/BitMem.ll +++ /dev/null @@ -1,29 +0,0 @@ -; RUN: llvm-as %s -o - | llvm-dis > %t1.ll -; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll -; RUN: diff %t1.ll %t2.ll - -declare void @"foo"() - - -; foo test basic arith operations -define void @"foo"() { - %t1 = malloc i31, i32 4 - %t2 = malloc i31, i32 7, align 1024 - %t3 = malloc [4 x i15] - - %idx = getelementptr [4 x i15]* %t3, i64 0, i64 2 - store i15 -123, i15* %idx - - free [4 x i15]* %t3 - free i31* %t2 - free i31* %t1 - - %t4 = alloca i12, i32 100 - free i12* %t4 - - %t5 = alloca i31 - store i31 -123, i31* %t5 - - free i31* %t5 - ret void -} diff --git a/test/Integer/alignment_bt.ll b/test/Integer/alignment_bt.ll deleted file mode 100644 index 3a9d0511d7..0000000000 --- a/test/Integer/alignment_bt.ll +++ /dev/null @@ -1,21 +0,0 @@ -; RUN: llvm-as %s -o - | llvm-dis > %t1.ll -; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll -; RUN: diff %t1.ll %t2.ll - -@X = global i19 4, align 16 - -define i19 *@test() align 32 { - %X = alloca i19, align 4 - %Y = alloca i51, i32 42, align 16 - %Z = alloca i32, align 1 - ret i19 *%X -} - -define i19 *@test2() { - %X = malloc i19, align 4 - %Y = malloc i51, i32 42, align 16 - %Z = malloc i32, align 1 - ret i19 *%X -} - - diff --git a/test/Integer/paramattrs_bt.ll b/test/Integer/paramattrs_bt.ll index 47ef7539b3..6db9a53042 100644 --- a/test/Integer/paramattrs_bt.ll +++ b/test/Integer/paramattrs_bt.ll @@ -5,15 +5,15 @@ %ZFunTy = type i33(i8 zeroext) %SFunTy = type i33(i8 signext) -declare i16 @"test"(i16 signext %arg) signext -declare i8 @"test2" (i16 zeroext %a2) zeroext +declare signext i16 @"test"(i16 signext %arg) +declare zeroext i8 @"test2" (i16 zeroext %a2) define i33 @main(i33 %argc, i8 **%argv) { %val = trunc i33 %argc to i16 - %res = call i16 (i16 signext) signext *@test(i16 signext %val) signext + %res = call signext i16 (i16 signext) *@test(i16 signext %val) %two = add i16 %res, %res - %res2 = call i8 @test2(i16 %two zeroext) zeroext + %res2 = call zeroext i8 @test2(i16 zeroext %two ) %retVal = sext i16 %two to i33 ret i33 %retVal } diff --git a/test/Integer/testmemory_bt.ll b/test/Integer/testmemory_bt.ll deleted file mode 100644 index e503c56a33..0000000000 --- a/test/Integer/testmemory_bt.ll +++ /dev/null @@ -1,45 +0,0 @@ -; RUN: llvm-as %s -o - | llvm-dis > %t1.ll -; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll -; RUN: diff %t1.ll %t2.ll - - -%struct = type { i31 , {float, {i9 } } , i64 } -%complexty = type {i31, {[4 x i9 *], float}, double} - - -define i31 @"main"() -begin - call i31 @testfunction(i64 0, i64 1) - ret i31 0 -end - -define i31 @"testfunction"(i64 %i0, i64 %j0) -begin - %array0 = malloc [4 x i9] ; yields {[4 x i9]*}:array0 - %size = add i32 2, 2 ; yields {i31}:size = i31 %4 - %array1 = malloc i9, i32 4 ; yields {i9*}:array1 - %array2 = malloc i9, i32 %size ; yields {i9*}:array2 - - %idx = getelementptr [4 x i9]* %array0, i64 0, i64 2 - store i9 123, i9* %idx - free [4x i9]* %array0 - free i9* %array1 - free i9* %array2 - - - %aa = alloca %complexty, i32 5 - %idx2 = getelementptr %complexty* %aa, i64 %i0, i32 1, i32 0, i64 %j0 - store i9 *null, i9** %idx2 - - %ptr = alloca i31 ; yields {i31*}:ptr - store i31 3, i31* %ptr ; yields {void} - %val = load i31* %ptr ; yields {i31}:val = i31 %3 - - %sptr = alloca %struct ; yields {%struct*}:sptr - %ubsptr = getelementptr %struct * %sptr, i64 0, i32 1, i32 1 ; yields {{i9}*}:ubsptr - %idx3 = getelementptr {i9} * %ubsptr, i64 0, i32 0 - store i9 4, i9* %idx3 - - ret i31 3 -end - -- cgit v1.2.3