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