2012-02-23 05:11:47 +08:00
|
|
|
; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=g5 | FileCheck %s
|
|
|
|
|
2012-02-28 04:42:19 +08:00
|
|
|
; CHECK: .section .opd,"aw",@progbits
|
|
|
|
; CHECK-NEXT: test1:
|
2016-01-26 08:03:25 +08:00
|
|
|
; CHECK-NEXT: .p2align 3
|
2015-03-06 03:47:50 +08:00
|
|
|
; CHECK-NEXT: .quad .L[[BEGIN:.*]]
|
2012-02-28 04:20:47 +08:00
|
|
|
; CHECK-NEXT: .quad .TOC.@tocbase
|
2012-09-19 00:55:29 +08:00
|
|
|
; CHECK-NEXT: .quad 0
|
2012-02-28 04:20:47 +08:00
|
|
|
; CHECK-NEXT: .text
|
2015-03-06 03:47:50 +08:00
|
|
|
; CHECK-NEXT: .L[[BEGIN]]:
|
2012-02-23 05:11:47 +08:00
|
|
|
|
|
|
|
define i32 @test1(i32 %a) nounwind {
|
|
|
|
entry:
|
|
|
|
ret i32 %a
|
|
|
|
}
|
|
|
|
|
|
|
|
; Until recently, binutils accepted the .size directive as:
|
|
|
|
; .size test1, .Ltmp0-test1
|
|
|
|
; however, using this directive with recent binutils will result in the error:
|
|
|
|
; .size expression for XXX does not evaluate to a constant
|
|
|
|
; so we must use the label which actually tags the start of the function.
|
2015-03-06 02:55:50 +08:00
|
|
|
; CHECK: .size test1, .Lfunc_end0-.L[[BEGIN]]
|