| 1 |
; RUN: llc -verify-machineinstrs -mtriple powerpc64-ibm-aix-xcoff < %s | FileCheck %s |
| 2 |
|
| 3 |
; For the .machine directive emitted on AIX, the "target-cpu" attribute that is |
| 4 |
; the newest will be used as the CPU for the module (in this case, PWR10). |
| 5 |
|
| 6 |
; CHECK: .file "file.c" |
| 7 |
; CHECK-NEXT: .csect ..text..[PR],5 |
| 8 |
; CHECK-NEXT: .rename ..text..[PR],"" |
| 9 |
; CHECK-NEXT: .machine "PWR10" |
| 10 |
; CHECK-NOT: .machine "PWR8" |
| 11 |
|
| 12 |
source_filename = "file.c" |
| 13 |
|
| 14 |
define dso_local signext i32 @testFunc1() #0 { |
| 15 |
entry: |
| 16 |
%retval = alloca i32, align 4 |
| 17 |
store i32 0, ptr %retval, align 4 |
| 18 |
ret i32 0 |
| 19 |
} |
| 20 |
|
| 21 |
define dso_local signext i32 @testFunc2() #1 { |
| 22 |
entry: |
| 23 |
%retval = alloca i32, align 4 |
| 24 |
store i32 0, ptr %retval, align 4 |
| 25 |
ret i32 0 |
| 26 |
} |
| 27 |
|
| 28 |
attributes #0 = { "target-cpu" = "pwr8" } |
| 29 |
attributes #1 = { "target-cpu" = "pwr10" } |
| 30 |
|