[llvm-commits] [llvm] r146470 - in /llvm/trunk/test: CodeGen/Mips/DO-relsym.ll MC/Mips/ MC/Mips/elf-relsym.ll

Bruno Cardoso Lopes bruno.cardoso at gmail.com
Mon Dec 12 19:59:04 PST 2011


You've missed the "dg.exp" file inside MC/Mips :)

On Tue, Dec 13, 2011 at 1:50 AM, Akira Hatanaka <ahatanaka at mips.com> wrote:
> Author: ahatanak
> Date: Mon Dec 12 21:50:34 2011
> New Revision: 146470
>
> URL: http://llvm.org/viewvc/llvm-project?rev=146470&view=rev
> Log:
> Move direct object emitter test to directory test/MC/Mips. Rename it to
> elf-relsym.ll.
>
> Added:
>    llvm/trunk/test/MC/Mips/
>    llvm/trunk/test/MC/Mips/elf-relsym.ll
> Removed:
>    llvm/trunk/test/CodeGen/Mips/DO-relsym.ll
>
> Removed: llvm/trunk/test/CodeGen/Mips/DO-relsym.ll
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Mips/DO-relsym.ll?rev=146469&view=auto
> ==============================================================================
> --- llvm/trunk/test/CodeGen/Mips/DO-relsym.ll (original)
> +++ llvm/trunk/test/CodeGen/Mips/DO-relsym.ll (removed)
> @@ -1,29 +0,0 @@
> -; RUN: llc -filetype=obj -mtriple mipsel-unknown-linux %s -o - | elf-dump --dump-section-data  | FileCheck %s
> -
> -; Check that the appropriate symbols were created.
> -
> -; CHECK: (('st_name', 0x{{[0-9|a-f]+}}) # '$.str'
> -; CHECK: (('st_name', 0x{{[0-9|a-f]+}}) # '$.str1'
> -; CHECK: (('st_name', 0x{{[0-9|a-f]+}}) # '$CPI0_0'
> -; CHECK: (('st_name', 0x{{[0-9|a-f]+}}) # '$CPI0_1'
> -
> - at .str = private unnamed_addr constant [6 x i8] c"abcde\00", align 1
> - at gc1 = external global i8*
> - at .str1 = private unnamed_addr constant [5 x i8] c"fghi\00", align 1
> - at gc2 = external global i8*
> - at gd1 = external global double
> - at gd2 = external global double
> -
> -define void @foo1() nounwind {
> -entry:
> -  store i8* getelementptr inbounds ([6 x i8]* @.str, i32 0, i32 0), i8** @gc1, align 4
> -  store i8* getelementptr inbounds ([5 x i8]* @.str1, i32 0, i32 0), i8** @gc2, align 4
> -  %0 = load double* @gd1, align 8
> -  %add = fadd double %0, 2.500000e+00
> -  store double %add, double* @gd1, align 8
> -  %1 = load double* @gd2, align 8
> -  %add1 = fadd double %1, 4.500000e+00
> -  store double %add1, double* @gd2, align 8
> -  ret void
> -}
> -
>
> Added: llvm/trunk/test/MC/Mips/elf-relsym.ll
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/Mips/elf-relsym.ll?rev=146470&view=auto
> ==============================================================================
> --- llvm/trunk/test/MC/Mips/elf-relsym.ll (added)
> +++ llvm/trunk/test/MC/Mips/elf-relsym.ll Mon Dec 12 21:50:34 2011
> @@ -0,0 +1,29 @@
> +; RUN: llc -filetype=obj -mtriple mipsel-unknown-linux %s -o - | elf-dump --dump-section-data  | FileCheck %s
> +
> +; Check that the appropriate symbols were created.
> +
> +; CHECK: (('st_name', 0x{{[0-9|a-f]+}}) # '$.str'
> +; CHECK: (('st_name', 0x{{[0-9|a-f]+}}) # '$.str1'
> +; CHECK: (('st_name', 0x{{[0-9|a-f]+}}) # '$CPI0_0'
> +; CHECK: (('st_name', 0x{{[0-9|a-f]+}}) # '$CPI0_1'
> +
> + at .str = private unnamed_addr constant [6 x i8] c"abcde\00", align 1
> + at gc1 = external global i8*
> + at .str1 = private unnamed_addr constant [5 x i8] c"fghi\00", align 1
> + at gc2 = external global i8*
> + at gd1 = external global double
> + at gd2 = external global double
> +
> +define void @foo1() nounwind {
> +entry:
> +  store i8* getelementptr inbounds ([6 x i8]* @.str, i32 0, i32 0), i8** @gc1, align 4
> +  store i8* getelementptr inbounds ([5 x i8]* @.str1, i32 0, i32 0), i8** @gc2, align 4
> +  %0 = load double* @gd1, align 8
> +  %add = fadd double %0, 2.500000e+00
> +  store double %add, double* @gd1, align 8
> +  %1 = load double* @gd2, align 8
> +  %add1 = fadd double %1, 4.500000e+00
> +  store double %add1, double* @gd2, align 8
> +  ret void
> +}
> +
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits



-- 
Bruno Cardoso Lopes
http://www.brunocardoso.cc




More information about the llvm-commits mailing list