Hal Finkel | ad4d9f5 | 2012-02-22 21:11:47 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=g5 | FileCheck %s |
| 2 | |
Roman Divacky | ded7f01 | 2012-02-27 20:42:19 +0000 | [diff] [blame] | 3 | ; CHECK: .section .opd,"aw",@progbits |
| 4 | ; CHECK-NEXT: test1: |
Roman Divacky | 8fe40cd | 2012-02-27 20:20:47 +0000 | [diff] [blame] | 5 | ; CHECK-NEXT: .align 3 |
| 6 | ; CHECK-NEXT: .quad .L.test1 |
| 7 | ; CHECK-NEXT: .quad .TOC.@tocbase |
Roman Divacky | d4f6f42 | 2012-09-18 16:55:29 +0000 | [diff] [blame^] | 8 | ; CHECK-NEXT: .quad 0 |
Roman Divacky | 8fe40cd | 2012-02-27 20:20:47 +0000 | [diff] [blame] | 9 | ; CHECK-NEXT: .text |
Hal Finkel | ad4d9f5 | 2012-02-22 21:11:47 +0000 | [diff] [blame] | 10 | ; CHECK-NEXT: .L.test1: |
| 11 | |
| 12 | define i32 @test1(i32 %a) nounwind { |
| 13 | entry: |
| 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 |