blob: e5aa1f169f6405eb253856a5ee7f96f2b45f7d59 [file] [log] [blame]
Hal Finkelad4d9f52012-02-22 21:11:47 +00001; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=g5 | FileCheck %s
2
Roman Divackyded7f012012-02-27 20:42:19 +00003; CHECK: .section .opd,"aw",@progbits
4; CHECK-NEXT: test1:
Roman Divacky8fe40cd2012-02-27 20:20:47 +00005; CHECK-NEXT: .align 3
6; CHECK-NEXT: .quad .L.test1
7; CHECK-NEXT: .quad .TOC.@tocbase
8; CHECK-NEXT: .text
Hal Finkelad4d9f52012-02-22 21:11:47 +00009; CHECK-NEXT: .L.test1:
10
11define i32 @test1(i32 %a) nounwind {
12entry:
13 ret i32 %a
14}
15
16; Until recently, binutils accepted the .size directive as:
17; .size test1, .Ltmp0-test1
18; however, using this directive with recent binutils will result in the error:
19; .size expression for XXX does not evaluate to a constant
20; so we must use the label which actually tags the start of the function.
21; CHECK: .size test1, .Ltmp0-.L.test1