~ubuntu-branches/ubuntu/quantal/llvm-3.1/quantal

« back to all changes in this revision

Viewing changes to test/MC/Mips/elf-relsym.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-03-29 19:09:51 UTC
  • Revision ID: package-import@ubuntu.com-20120329190951-aq83ivog4cg8bxun
Tags: upstream-3.1~svn153643
ImportĀ upstreamĀ versionĀ 3.1~svn153643

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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