1 ; RUN: llc -verify-machineinstrs -mtriple powerpc64-ibm-aix-xcoff < %s | FileCheck %s
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).
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"
12 source_filename = "file.c"
14 define dso_local signext i32 @testFunc1() #0 {
16 %retval = alloca i32, align 4
17 store i32 0, ptr %retval, align 4
21 define dso_local signext i32 @testFunc2() #1 {
23 %retval = alloca i32, align 4
24 store i32 0, ptr %retval, align 4
28 attributes #0 = { "target-cpu" = "pwr8" }
29 attributes #1 = { "target-cpu" = "pwr10" }