blob: 74b3dc7dc7f06fff3f3d5563067d47e0e9a4a71a [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:
Hal Finkel6fd2b432012-02-25 03:40:11 +00004; CHECK-NEXT: .quad .L.test1,.TOC.@tocbase
5; CHECK-NEXT: .previous
Hal Finkelad4d9f52012-02-22 21:11:47 +00006; CHECK-NEXT: .L.test1:
7
8define i32 @test1(i32 %a) nounwind {
9entry:
10 ret i32 %a
11}
12
13; Until recently, binutils accepted the .size directive as:
14; .size test1, .Ltmp0-test1
15; however, using this directive with recent binutils will result in the error:
16; .size expression for XXX does not evaluate to a constant
17; so we must use the label which actually tags the start of the function.
18; CHECK: .size test1, .Ltmp0-.L.test1