31 lines · plain
1; RUN: llc -verify-machineinstrs -mtriple powerpc64-ibm-aix-xcoff < %s | FileCheck %s2 3; For the .machine directive emitted on AIX, the "target-cpu" attribute that is4; 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],58; CHECK-NEXT: .rename ..text..[PR],""9; CHECK-NEXT: .machine "PWR10"10; CHECK-NOT: .machine "PWR8"11 12source_filename = "file.c"13 14define dso_local signext i32 @testFunc1() #0 {15entry:16 %retval = alloca i32, align 417 store i32 0, ptr %retval, align 418 ret i32 019}20 21define dso_local signext i32 @testFunc2() #1 {22entry:23 %retval = alloca i32, align 424 store i32 0, ptr %retval, align 425 ret i32 026}27 28attributes #0 = { "target-cpu" = "pwr8" }29attributes #1 = { "target-cpu" = "pwr10" }30 31