1 ; RUN: llc -filetype=obj -mtriple mipsel-unknown-linux %s -o - | elf-dump --dump-section-data | FileCheck %s 2 3 ; Check that the appropriate symbols were created. 4 5 ; CHECK: (('st_name', 0x{{[0-9|a-f]+}}) # '$.str' 6 ; CHECK: (('st_name', 0x{{[0-9|a-f]+}}) # '$.str1' 7 ; CHECK: (('st_name', 0x{{[0-9|a-f]+}}) # '$CPI0_0' 8 ; CHECK: (('st_name', 0x{{[0-9|a-f]+}}) # '$CPI0_1' 9 10 @.str = private unnamed_addr constant [6 x i8] c"abcde\00", align 1 11 @gc1 = external global i8* 12 @.str1 = private unnamed_addr constant [5 x i8] c"fghi\00", align 1 13 @gc2 = external global i8* 14 @gd1 = external global double 15 @gd2 = external global double 16 17 define void @foo1() nounwind { 18 entry: 19 store i8* getelementptr inbounds ([6 x i8]* @.str, i32 0, i32 0), i8** @gc1, align 4 20 store i8* getelementptr inbounds ([5 x i8]* @.str1, i32 0, i32 0), i8** @gc2, align 4 21 %0 = load double* @gd1, align 8 22 %add = fadd double %0, 2.500000e+00 23 store double %add, double* @gd1, align 8 24 %1 = load double* @gd2, align 8 25 %add1 = fadd double %1, 4.500000e+00 26 store double %add1, double* @gd2, align 8 27 ret void 28 } 29 30