2016-08-04 02:17:35 +08:00
|
|
|
; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-linux-gnu | FileCheck %s -check-prefix=ELF
|
|
|
|
; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin9 | FileCheck %s -check-prefix=DARWIN
|
|
|
|
; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-apple-darwin8 | FileCheck %s -check-prefix=DARWIN8
|
2006-06-16 03:35:07 +08:00
|
|
|
|
2010-02-06 11:32:21 +08:00
|
|
|
@a = global i1 true
|
|
|
|
; no alignment
|
2006-06-16 03:35:07 +08:00
|
|
|
|
2010-02-06 11:32:21 +08:00
|
|
|
@b = global i8 1
|
|
|
|
; no alignment
|
|
|
|
|
|
|
|
@c = global i16 2
|
2016-01-26 08:03:25 +08:00
|
|
|
;ELF: .p2align 1
|
2010-02-06 11:32:21 +08:00
|
|
|
;ELF: c:
|
2016-01-26 08:03:25 +08:00
|
|
|
;DARWIN: .p2align 1
|
2010-02-06 11:32:21 +08:00
|
|
|
;DARWIN: _c:
|
|
|
|
|
|
|
|
@d = global i32 3
|
2016-01-26 08:03:25 +08:00
|
|
|
;ELF: .p2align 2
|
2010-02-06 11:32:21 +08:00
|
|
|
;ELF: d:
|
2016-01-26 08:03:25 +08:00
|
|
|
;DARWIN: .p2align 2
|
2010-02-06 11:32:21 +08:00
|
|
|
;DARWIN: _d:
|
|
|
|
|
|
|
|
@e = global i64 4
|
2016-01-26 08:03:25 +08:00
|
|
|
;ELF: .p2align 3
|
2010-02-06 11:32:21 +08:00
|
|
|
;ELF: e
|
2016-01-26 08:03:25 +08:00
|
|
|
;DARWIN: .p2align 3
|
2010-02-06 11:32:21 +08:00
|
|
|
;DARWIN: _e:
|
|
|
|
|
|
|
|
@f = global float 5.0
|
2016-01-26 08:03:25 +08:00
|
|
|
;ELF: .p2align 2
|
2010-02-06 11:32:21 +08:00
|
|
|
;ELF: f:
|
2016-01-26 08:03:25 +08:00
|
|
|
;DARWIN: .p2align 2
|
2010-02-06 11:32:21 +08:00
|
|
|
;DARWIN: _f:
|
|
|
|
|
|
|
|
@g = global double 6.0
|
2016-01-26 08:03:25 +08:00
|
|
|
;ELF: .p2align 3
|
2010-02-06 11:32:21 +08:00
|
|
|
;ELF: g:
|
2016-01-26 08:03:25 +08:00
|
|
|
;DARWIN: .p2align 3
|
2010-02-06 11:32:21 +08:00
|
|
|
;DARWIN: _g:
|
|
|
|
|
|
|
|
@bar = common global [75 x i8] zeroinitializer, align 128
|
|
|
|
;ELF: .comm bar,75,128
|
|
|
|
;DARWIN: .comm _bar,75,7
|
2010-09-27 14:44:54 +08:00
|
|
|
|
|
|
|
;; Darwin8 doesn't support aligned comm. Just miscompile this.
|
|
|
|
; DARWIN8: .comm _bar,75 ;
|