blob: e1d50bac51a2ca6f4a9c8f6266f8f388609eb46c [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
Roman Divackyd4f6f422012-09-18 16:55:29 +00008; CHECK-NEXT: .quad 0
Roman Divacky8fe40cd2012-02-27 20:20:47 +00009; CHECK-NEXT: .text
Hal Finkelad4d9f52012-02-22 21:11:47 +000010; CHECK-NEXT: .L.test1:
11
12define i32 @test1(i32 %a) nounwind {
13entry:
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, .Ltmp0-.L.test1