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