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