1// RUN: llvm-mc -filetype=obj -triple 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 .text 21 .abicalls 22 .section .mdebug.abi32,"",@progbits 23 .file "/home/espindola/llvm/llvm/test/MC/Mips/elf-relsym.ll" 24 .section .rodata.cst8,"aM",@progbits,8 25 .align 3 26$CPI0_0: 27 .8byte 4612811918334230528 # double 2.5 28$CPI0_1: 29 .8byte 4616752568008179712 # double 4.5 30 .text 31 .globl foo1 32 .align 2 33 .type foo1,@function 34 .set nomips16 35 .ent foo1 36foo1: # @foo1 37 .frame $sp,0,$ra 38 .mask 0x00000000,0 39 .fmask 0x00000000,0 40 .set noreorder 41 .set nomacro 42 .set noat 43# BB#0: # %entry 44 lui $2, %hi(_gp_disp) 45 addiu $2, $2, %lo(_gp_disp) 46 addu $1, $2, $25 47 lw $2, %got($.str)($1) 48 addiu $2, $2, %lo($.str) 49 lw $3, %got(gc1)($1) 50 sw $2, 0($3) 51 lw $2, %got($.str1)($1) 52 addiu $2, $2, %lo($.str1) 53 lw $3, %got(gc2)($1) 54 sw $2, 0($3) 55 lw $2, %got($CPI0_0)($1) 56 ldc1 $f0, %lo($CPI0_0)($2) 57 lw $2, %got(gd1)($1) 58 ldc1 $f2, 0($2) 59 lw $3, %got($CPI0_1)($1) 60 ldc1 $f4, %lo($CPI0_1)($3) 61 lw $1, %got(gd2)($1) 62 add.d $f0, $f2, $f0 63 sdc1 $f0, 0($2) 64 ldc1 $f0, 0($1) 65 add.d $f0, $f0, $f4 66 jr $ra 67 sdc1 $f0, 0($1) 68 .set at 69 .set macro 70 .set reorder 71 .end foo1 72$tmp0: 73 .size foo1, ($tmp0)-foo1 74 75 .type $.str,@object # @.str 76 .section .rodata.str1.1,"aMS",@progbits,1 77$.str: 78 .asciz "abcde" 79 .size $.str, 6 80 81 .type $.str1,@object # @.str1 82$.str1: 83 .asciz "fghi" 84 .size $.str1, 5 85 86 87 .text 88