Merging r259740:
[oota-llvm.git] / test / CodeGen / PowerPC / ppc64-linux-func-size.ll
1 ; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=g5 | FileCheck %s
2
3 ; CHECK:      .section  .opd,"aw",@progbits
4 ; CHECK-NEXT: test1:
5 ; CHECK-NEXT:   .align 3
6 ; CHECK-NEXT:   .quad .L[[BEGIN:.*]]
7 ; CHECK-NEXT:   .quad .TOC.@tocbase
8 ; CHECK-NEXT:   .quad 0
9 ; CHECK-NEXT:   .text
10 ; CHECK-NEXT: .L[[BEGIN]]:
11
12 define i32 @test1(i32 %a) nounwind {
13 entry:
14   ret i32 %a
15 }
16
17 ; Until recently, binutils accepted the .size directive as:
18 ;  .size        test1, .Ltmp0-test1
19 ; however, using this directive with recent binutils will result in the error:
20 ;  .size expression for XXX does not evaluate to a constant
21 ; so we must use the label which actually tags the start of the function.
22 ; CHECK: .size  test1, .Lfunc_end0-.L[[BEGIN]]