From: Akira Hatanaka Date: Tue, 13 Dec 2011 03:50:34 +0000 (+0000) Subject: Move direct object emitter test to directory test/MC/Mips. Rename it to X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=692be5491adf977e5bbb14e17c2afb88c1c2e0dc;p=oota-llvm.git Move direct object emitter test to directory test/MC/Mips. Rename it to elf-relsym.ll. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146470 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/Mips/DO-relsym.ll b/test/CodeGen/Mips/DO-relsym.ll deleted file mode 100644 index 0f74437ec5d..00000000000 --- a/test/CodeGen/Mips/DO-relsym.ll +++ /dev/null @@ -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' - -@.str = private unnamed_addr constant [6 x i8] c"abcde\00", align 1 -@gc1 = external global i8* -@.str1 = private unnamed_addr constant [5 x i8] c"fghi\00", align 1 -@gc2 = external global i8* -@gd1 = external global double -@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 -} - diff --git a/test/MC/Mips/elf-relsym.ll b/test/MC/Mips/elf-relsym.ll new file mode 100644 index 00000000000..0f74437ec5d --- /dev/null +++ b/test/MC/Mips/elf-relsym.ll @@ -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' + +@.str = private unnamed_addr constant [6 x i8] c"abcde\00", align 1 +@gc1 = external global i8* +@.str1 = private unnamed_addr constant [5 x i8] c"fghi\00", align 1 +@gc2 = external global i8* +@gd1 = external global double +@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 +} +