Home | History | Annotate | Download | only in PowerPC
      1 ; RUN: llc < %s -mtriple=powerpc-linux-gnu | FileCheck %s -check-prefix=ELF
      2 ; RUN: llc < %s -mtriple=powerpc-apple-darwin9 | FileCheck %s -check-prefix=DARWIN
      3 ; RUN: llc < %s -mtriple=powerpc-apple-darwin8 | FileCheck %s -check-prefix=DARWIN8
      4 
      5 @a = global i1 true
      6 ; no alignment
      7 
      8 @b = global i8 1
      9 ; no alignment
     10 
     11 @c = global i16 2
     12 ;ELF: .align 1
     13 ;ELF: c:
     14 ;DARWIN: .align 1
     15 ;DARWIN: _c:
     16 
     17 @d = global i32 3
     18 ;ELF: .align 2
     19 ;ELF: d:
     20 ;DARWIN: .align 2
     21 ;DARWIN: _d:
     22 
     23 @e = global i64 4
     24 ;ELF: .align 3
     25 ;ELF: e
     26 ;DARWIN: .align 3
     27 ;DARWIN: _e:
     28 
     29 @f = global float 5.0
     30 ;ELF: .align 2
     31 ;ELF: f:
     32 ;DARWIN: .align 2
     33 ;DARWIN: _f:
     34 
     35 @g = global double 6.0
     36 ;ELF: .align 3
     37 ;ELF: g:
     38 ;DARWIN: .align 3
     39 ;DARWIN: _g:
     40 
     41 @bar = common global [75 x i8] zeroinitializer, align 128
     42 ;ELF: .comm bar,75,128
     43 ;DARWIN: .comm _bar,75,7
     44 
     45 ;; Darwin8 doesn't support aligned comm.  Just miscompile this.
     46 ; DARWIN8: .comm _bar,75 ;
     47