Skip to content

Commit a517127

Browse files
authored
[PowerPC][LLC] Utilize PPC::getNormalizedPPCTargetCPU() to set CPU (#113943)
Utilize common API in PPCTargetParser (#97541) to set default CPU with same interfaces for LLC. This will update AIX default CPU to pwr7 and LoP powerppc64 default CPU to ppc64.
1 parent 227afac commit a517127

File tree

72 files changed

+185
-118
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+185
-118
lines changed

llvm/docs/ReleaseNotes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ Changes to the MIPS Backend
164164
Changes to the PowerPC Backend
165165
------------------------------
166166

167+
* The Linux `ppc64` LLC default cpu is updated from `ppc` to `ppc64`.
168+
* The AIX LLC default cpu is updated from `generic` to `pwr7`.
169+
167170
Changes to the RISC-V Backend
168171
-----------------------------
169172

llvm/lib/Target/PowerPC/PPCSubtarget.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include "llvm/MC/TargetRegistry.h"
3030
#include "llvm/Support/CommandLine.h"
3131
#include "llvm/Target/TargetMachine.h"
32+
#include "llvm/TargetParser/PPCTargetParser.h"
3233
#include <cstdlib>
3334

3435
using namespace llvm;
@@ -79,13 +80,10 @@ void PPCSubtarget::initSubtargetFeatures(StringRef CPU, StringRef TuneCPU,
7980
// Determine default and user specified characteristics
8081
std::string CPUName = std::string(CPU);
8182
if (CPUName.empty() || CPU == "generic") {
82-
// If cross-compiling with -march=ppc64le without -mcpu
83-
if (TargetTriple.getArch() == Triple::ppc64le)
84-
CPUName = "ppc64le";
85-
else if (TargetTriple.getSubArch() == Triple::PPCSubArch_spe)
83+
if (TargetTriple.getSubArch() == Triple::PPCSubArch_spe)
8684
CPUName = "e500";
8785
else
88-
CPUName = "generic";
86+
CPUName = std::string(PPC::getNormalizedPPCTargetCPU(TargetTriple));
8987
}
9088

9189
// Determine the CPU to schedule for.

llvm/test/Analysis/LoopCacheAnalysis/PowerPC/compute-cost-m32.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ target triple = "powerpc-ibm-aix7.2.0.0"
66
; Check IndexedReference::computeRefCost can handle type differences between
77
; CacheLineSize and Numerator
88

9-
; CHECK: Loop '_loop_1_do_' has cost = 2
9+
; CHECK: Loop '_loop_1_do_' has cost = 1
1010

1111
%_elem_type_of_v = type <{ i32 }>
1212

llvm/test/CodeGen/PowerPC/2007-11-16-landingpad-split.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc -simplifycfg-require-and-preserve-domtree=1 < %s | FileCheck %s
2+
; RUN: llc -mcpu=ppc -simplifycfg-require-and-preserve-domtree=1 < %s | FileCheck %s
33
;; Formerly crashed, see PR 1508
44
target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f128:64:128"
55
target triple = "powerpc64-unknown-linux-gnu"

llvm/test/CodeGen/PowerPC/Frames-dyn-alloca.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; RUN: llc < %s -mtriple=powerpc-unknown-linux-gnu | FileCheck %s -check-prefix=PPC32-LINUX
2-
; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu | FileCheck %s -check-prefix=PPC64-LINUX
2+
; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=ppc | FileCheck %s -check-prefix=PPC64-LINUX
33
; RUN: llc < %s -mtriple=powerpc-unknown-linux-gnu -frame-pointer=all | FileCheck %s -check-prefix=PPC32-LINUX
4-
; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -frame-pointer=all | FileCheck %s -check-prefix=PPC64-LINUX
4+
; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=ppc -frame-pointer=all | FileCheck %s -check-prefix=PPC64-LINUX
55
; RUN: llc < %s -mtriple=powerpc-unknown-linux-gnu | FileCheck %s -check-prefix=PPC32-LINUX
66

77
; RUN: llc < %s -mcpu=pwr4 -mattr=-altivec -verify-machineinstrs \

llvm/test/CodeGen/PowerPC/Frames-large.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu \
55
; RUN: -frame-pointer=all | FileCheck %s -check-prefix=PPC32-LINUX-FP
66

7-
; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu | \
7+
; RUN: llc -verify-machineinstrs < %s -mcpu=ppc -mtriple=powerpc64-unknown-linux-gnu | \
88
; RUN: FileCheck %s -check-prefix=PPC64-LINUX-NOFP
99

10-
; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu \
10+
; RUN: llc -verify-machineinstrs < %s -mcpu=ppc -mtriple=powerpc64-unknown-linux-gnu \
1111
; RUN: -frame-pointer=all | FileCheck %s -check-prefix=PPC64-LINUX-FP
1212

1313
; RUN: llc -verify-machineinstrs < %s -mcpu=pwr4 -mattr=-altivec \

llvm/test/CodeGen/PowerPC/P10-stack-alignment.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \
33
; RUN: -ppc-asm-full-reg-names -ppc-vsr-nums-as-vr < %s | \
44
; RUN: FileCheck %s --check-prefix=CHECK-LE
5-
; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu \
5+
; RUN: llc -verify-machineinstrs -mcpu=ppc -mtriple=powerpc64-unknown-linux-gnu \
66
; RUN: -ppc-asm-full-reg-names -ppc-vsr-nums-as-vr < %s | \
77
; RUN: FileCheck %s --check-prefix=CHECK-BE
88
; RUN: opt --passes='sroa,loop-vectorize,loop-unroll,instcombine' -S \

llvm/test/CodeGen/PowerPC/aix-cc-abi-mir.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
; NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 4
2-
; RUN: llc -mtriple powerpc-ibm-aix-xcoff -stop-after=machine-cp -verify-machineinstrs < %s | \
2+
; RUN: llc -mtriple powerpc-ibm-aix-xcoff -mcpu=ppc -stop-after=machine-cp -verify-machineinstrs < %s | \
33
; RUN: FileCheck --check-prefix=32BIT %s
44

5-
; RUN: llc -mtriple powerpc64-ibm-aix-xcoff -stop-after=machine-cp -verify-machineinstrs < %s | \
5+
; RUN: llc -mtriple powerpc64-ibm-aix-xcoff -mcpu=ppc -stop-after=machine-cp -verify-machineinstrs < %s | \
66
; RUN: FileCheck --check-prefix=64BIT %s
77

88
define void @call_test_chars() {

llvm/test/CodeGen/PowerPC/aix-dwarf.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

2-
; RUN: llc -mtriple powerpc-ibm-aix-xcoff -filetype=obj -o %t.o < %s
2+
; RUN: llc -mtriple powerpc-ibm-aix-xcoff -mcpu=ppc -filetype=obj -o %t.o < %s
33
; RUN: llvm-readobj --section-headers %t.o | FileCheck %s --check-prefixes=SEC,SEC32
44
; RUN: llvm-objdump -r %t.o | FileCheck %s --check-prefix=RELO
55

6-
; RUN: llc -mtriple powerpc64-ibm-aix-xcoff -filetype=obj -o %t64.o < %s
6+
; RUN: llc -mtriple powerpc64-ibm-aix-xcoff -mcpu=ppc -filetype=obj -o %t64.o < %s
77
; RUN: llvm-readobj --section-headers %t64.o | FileCheck %s --check-prefixes=SEC,SEC64
88
; RUN: llvm-objdump -r %t64.o | FileCheck %s --check-prefix=RELO64
99

llvm/test/CodeGen/PowerPC/aix-static-init-non-default-priority.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
; RUN: llc -mtriple powerpc-ibm-aix-xcoff -verify-machineinstrs < %s | FileCheck %s
2-
; RUN: llc -mtriple powerpc64-ibm-aix-xcoff -verify-machineinstrs < %s | FileCheck %s
1+
; RUN: llc -mtriple powerpc-ibm-aix-xcoff -mcpu=ppc -verify-machineinstrs < %s | FileCheck %s
2+
; RUN: llc -mtriple powerpc64-ibm-aix-xcoff -mcpu=ppc -verify-machineinstrs < %s | FileCheck %s
33

44
@llvm.global_ctors = appending global [5 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 0, ptr @cf1, ptr null }, { i32, ptr, ptr } { i32 21, ptr @cf2, ptr null }, { i32, ptr, ptr } { i32 81, ptr @cf3, ptr null }, { i32, ptr, ptr } { i32 1125, ptr @cf4, ptr null }, { i32, ptr, ptr } { i32 64512, ptr @cf5, ptr null }]
55
@llvm.global_dtors = appending global [5 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 20, ptr @df1, ptr null }, { i32, ptr, ptr } { i32 80, ptr @df2, ptr null }, { i32, ptr, ptr } { i32 1124, ptr @df3, ptr null }, { i32, ptr, ptr } { i32 64511, ptr @df4, ptr null }, { i32, ptr, ptr } { i32 65535, ptr @df5, ptr null }]

llvm/test/CodeGen/PowerPC/aix-weak-reloc.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
; RUN: llc -mtriple powerpc-ibm-aix-xcoff -filetype=obj -o %t.o < %s
1+
; RUN: llc -mtriple powerpc-ibm-aix-xcoff -mcpu=ppc -filetype=obj -o %t.o < %s
22
; RUN: llvm-objdump -dr %t.o | FileCheck --check-prefix=OBJ32 %s
33

4-
; RUN: llc -mtriple powerpc64-ibm-aix-xcoff -filetype=obj -o %t.o < %s
4+
; RUN: llc -mtriple powerpc64-ibm-aix-xcoff -mcpu=ppc -filetype=obj -o %t.o < %s
55
; RUN: llvm-objdump -dr %t.o | FileCheck --check-prefix=OBJ64 %s
66

77
; Function Attrs: noinline nounwind optnone

llvm/test/CodeGen/PowerPC/aix-xcoff-exception-section-debug.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
; This file contains exception section testing for when debug information is present.
22
; The 32-bit test should not print exception auxilliary entries because they are a 64-bit only feature.
33
; Exception auxilliary entries are present in the 64-bit tests because 64-bit && debug enabled are the requirements.
4-
; RUN: llc -mtriple=powerpc-ibm-aix-xcoff -filetype=obj -o %t_32.o < %s
4+
; RUN: llc -mtriple=powerpc-ibm-aix-xcoff -mcpu=ppc -filetype=obj -o %t_32.o < %s
55
; RUN: llvm-readobj --syms %t_32.o | FileCheck %s --check-prefix=SYMS32
6-
; RUN: llc -mtriple=powerpc64-unknown-aix -filetype=obj -o %t_32.o < %s
6+
; RUN: llc -mtriple=powerpc64-unknown-aix -mcpu=ppc -filetype=obj -o %t_32.o < %s
77
; RUN: llvm-readobj --syms %t_32.o | FileCheck %s --check-prefix=SYMS64
88

99
; If any debug information is included in a module and is XCOFF64, exception auxilliary entries are emitted

llvm/test/CodeGen/PowerPC/aix-xcoff-exception-section.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
; Testing 32-bit and 64-bit exception section entries, no exception auxilliary
22
; entries should be produced as no debug information is specified.
3-
; RUN: llc -mtriple=powerpc-ibm-aix-xcoff -filetype=obj -o %t_32.o < %s
3+
; RUN: llc -mtriple=powerpc-ibm-aix-xcoff -mcpu=ppc -filetype=obj -o %t_32.o < %s
44
; RUN: llvm-readobj --exception-section %t_32.o | FileCheck %s --check-prefix=EXCEPT
55
; RUN: llvm-readobj --section-headers %t_32.o | FileCheck %s --check-prefix=READ
66
; RUN: llvm-readobj --syms %t_32.o | FileCheck %s --check-prefix=SYMS
77

8-
; RUN: llc -mtriple=powerpc64-unknown-aix -filetype=obj -o %t_64.o < %s
8+
; RUN: llc -mtriple=powerpc64-unknown-aix -mcpu=ppc -filetype=obj -o %t_64.o < %s
99
; RUN: llvm-readobj --exception-section %t_64.o | FileCheck %s --check-prefix=EXCEPT64
1010
; RUN: llvm-readobj --section-headers %t_64.o | FileCheck %s --check-prefix=READ64
1111
; RUN: llvm-readobj --syms %t_64.o | FileCheck %s --check-prefix=SYMS64

llvm/test/CodeGen/PowerPC/aix-xcoff-visibility.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
; RUN: llc -verify-machineinstrs -mtriple powerpc64-ibm-aix-xcoff -mcpu=pwr4 -mattr=-altivec -data-sections=false < %s |\
44
; RUN: FileCheck %s
55

6-
; RUN: llc -verify-machineinstrs -mtriple powerpc-ibm-aix-xcoff -filetype=obj %s -o %t.o
6+
; RUN: llc -verify-machineinstrs -mtriple powerpc-ibm-aix-xcoff -mcpu=ppc -filetype=obj %s -o %t.o
77
; RUN: llvm-readobj --syms --auxiliary-header %t.o | FileCheck %s --check-prefixes=SYM,AUX32
88

9-
; RUN: llc -verify-machineinstrs -mtriple powerpc64-ibm-aix-xcoff -filetype=obj %s -o %t64.o
9+
; RUN: llc -verify-machineinstrs -mtriple powerpc64-ibm-aix-xcoff -mcpu=ppc -filetype=obj %s -o %t64.o
1010
; RUN: llvm-readobj --syms --auxiliary-header %t64.o | FileCheck %s --check-prefixes=SYM,AUX64
1111

1212
@b = global i32 0, align 4

llvm/test/CodeGen/PowerPC/aix32-cc-abi-vaarg.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
22
; RUN: llc -O2 -verify-machineinstrs -mcpu=pwr4 -mattr=-altivec -mtriple powerpc-ibm-aix-xcoff < %s | FileCheck --check-prefix=ASM32 %s
3-
; RUN: llc -O2 -mtriple powerpc-ibm-aix-xcoff -stop-after=machine-cp -verify-machineinstrs < %s | FileCheck --check-prefix=32BIT %s
3+
; RUN: llc -O2 -mtriple powerpc-ibm-aix-xcoff -mcpu=ppc -stop-after=machine-cp -verify-machineinstrs < %s | FileCheck --check-prefix=32BIT %s
44

55
define i32 @int_va_arg(i32 %a, ...) local_unnamed_addr {
66
; ASM32-LABEL: int_va_arg:

llvm/test/CodeGen/PowerPC/aix64-cc-abi-vaarg.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc -O2 -mtriple powerpc64-ibm-aix-xcoff -stop-after=machine-cp -verify-machineinstrs < %s | \
1+
; RUN: llc -O2 -mtriple powerpc64-ibm-aix-xcoff -mcpu=ppc -stop-after=machine-cp -verify-machineinstrs < %s | \
22
; RUN: FileCheck --check-prefix=64BIT %s
33

44
; RUN: llc -O2 -verify-machineinstrs -mcpu=pwr4 -mattr=-altivec \

llvm/test/CodeGen/PowerPC/aix64-csr-alloc.mir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# REQUIRES: asserts
22
# RUN: llc -verify-machineinstrs -simplify-mir -mtriple=powerpc64-ibm-aix-xcoff \
3-
# RUN: -debug-only=regalloc %s -o - 2>&1 | FileCheck %s
3+
# RUN: -mcpu=ppc -debug-only=regalloc %s -o - 2>&1 | FileCheck %s
44

55
---
66
name: i64
@@ -19,4 +19,4 @@ body: |
1919
# CHECK-DAG: AllocationOrder(VFRC) = [ $vf2 $vf3 $vf4 $vf5 $vf0 $vf1 $vf6 $vf7 $vf8 $vf9 $vf10 $vf11 $vf12 $vf13 $vf14 $vf15 $vf16 $vf17 $vf18 $vf19 $vf31 $vf30 $vf29 $vf28 $vf27 $vf26 $vf25 $vf24 $vf23 $vf22 $vf21 $vf20 ]
2020
# CHECK-DAG: AllocationOrder(G8RC_and_G8RC_NOX0) = [ $x3 $x4 $x5 $x6 $x7 $x8 $x9 $x10 $x11 $x12 $x31 $x30 $x29 $x28 $x27 $x26 $x25 $x24 $x23 $x22 $x21 $x20 $x19 $x18 $x17 $x16 $x15 $x1
2121
# CHECK-DAG: 4 ]
22-
# CHECK-DAG: AllocationOrder(F8RC) = [ $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f31 $f30 $f29 $f28 $f27 $f26 $f25 $f24 $f23 $f22 $f21 $f20 $f19 $f18 $f17 $f16 $f15 $f14 ]
22+
# CHECK-DAG: AllocationOrder(F8RC) = [ $f0 $f1 $f2 $f3 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f31 $f30 $f29 $f28 $f27 $f26 $f25 $f24 $f23 $f22 $f21 $f20 $f19 $f18 $f17 $f16 $f15 $f14 ]

llvm/test/CodeGen/PowerPC/alloca-oversized.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 3
2-
; RUN: llc < %s -mtriple=powerpc-ibm-aix-xcoff | FileCheck %s
2+
; RUN: llc < %s -mcpu=ppc -mtriple=powerpc-ibm-aix-xcoff | FileCheck %s
33
define void @test_oversized(ptr %dst, i32 %cond) {
44
; CHECK-LABEL: test_oversized:
55
; CHECK: # %bb.0: # %entry

llvm/test/CodeGen/PowerPC/atomic-float.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-unknown \
2+
; RUN: llc -verify-machineinstrs -mcpu=ppc -mtriple=powerpc64-unknown-unknown \
33
; RUN: < %s | FileCheck --check-prefix=CHECK-64 %s
4-
; RUN: llc -verify-machineinstrs -mtriple=powerpc-unknown-unknown \
4+
; RUN: llc -verify-machineinstrs -mcpu=ppc -mtriple=powerpc-unknown-unknown \
55
; RUN: < %s | FileCheck --check-prefix=CHECK-32 %s
66

77
define float @test_add(ptr %ptr, float %incr) {

llvm/test/CodeGen/PowerPC/atomicrmw-cond-sub-clamp.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s
2+
; RUN: llc -mcpu=ppc -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s
33

44
define i8 @atomicrmw_usub_cond_i8(ptr %ptr, i8 %val) {
55
; CHECK-LABEL: atomicrmw_usub_cond_i8:

llvm/test/CodeGen/PowerPC/atomicrmw-uinc-udec-wrap.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s
2+
; RUN: llc -mcpu=ppc -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s
33

44
define i8 @atomicrmw_uinc_wrap_i8(ptr %ptr, i8 %val) {
55
; CHECK-LABEL: atomicrmw_uinc_wrap_i8:

llvm/test/CodeGen/PowerPC/atomics-indexed.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; RUN: llc < %s -mtriple=powerpc-unknown-linux-gnu -verify-machineinstrs -ppc-asm-full-reg-names | FileCheck %s --check-prefix=CHECK --check-prefix=PPC32
33
; FIXME: -verify-machineinstrs currently fail on ppc64 (mismatched register/instruction).
44
; This is already checked for in Atomics-64.ll
5-
; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -ppc-asm-full-reg-names | FileCheck %s --check-prefix=CHECK --check-prefix=PPC64
5+
; RUN: llc < %s -mcpu=ppc -mtriple=powerpc64-unknown-linux-gnu -ppc-asm-full-reg-names | FileCheck %s --check-prefix=CHECK --check-prefix=PPC64
66

77
; In this file, we check that atomic load/store can make use of the indexed
88
; versions of the instructions.

llvm/test/CodeGen/PowerPC/atomics.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
22
; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu -verify-machineinstrs -ppc-asm-full-reg-names | FileCheck %s --check-prefix=CHECK --check-prefix=PPC32
33
; This is already checked for in Atomics-64.ll
4-
; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -ppc-asm-full-reg-names | FileCheck %s --check-prefix=CHECK --check-prefix=PPC64
4+
; RUN: llc -verify-machineinstrs < %s -mcpu=ppc -mtriple=powerpc64-unknown-linux-gnu -ppc-asm-full-reg-names | FileCheck %s --check-prefix=CHECK --check-prefix=PPC64
55

66
; FIXME: we don't currently check for the operations themselves with CHECK-NEXT,
77
; because they are implemented in a very messy way with lwarx/stwcx.

llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-math.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
22
; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu < %s |\
33
; RUN: FileCheck %s --check-prefix=CHECK-PWR8
4-
; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu \
4+
; RUN: llc -verify-machineinstrs -mcpu=ppc -mtriple=powerpc64-unknown-linux-gnu \
55
; RUN: -mattr=-vsx < %s | FileCheck %s --check-prefix=CHECK-NOVSX
6-
; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu \
6+
; RUN: llc -verify-machineinstrs -mcpu=ppc -mtriple=powerpc64-unknown-linux-gnu \
77
; RUN: -mcpu=pwr7 < %s | FileCheck %s --check-prefix=CHECK-PWR7
88
; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-aix -mcpu=pwr7 \
99
; RUN: < %s | FileCheck %s --check-prefix=CHECK-PWR7

llvm/test/CodeGen/PowerPC/fma-assoc.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
22
; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- -fp-contract=fast \
3-
; RUN: -mattr=-vsx -disable-ppc-vsx-fma-mutation=false | FileCheck %s
3+
; RUN: -mcpu=ppc -mattr=-vsx -disable-ppc-vsx-fma-mutation=false | FileCheck %s
44
; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc-ibm-aix-xcoff -fp-contract=fast \
5-
; RUN: -mattr=-vsx -disable-ppc-vsx-fma-mutation=false | FileCheck %s
5+
; RUN: -mcpu=ppc -mattr=-vsx -disable-ppc-vsx-fma-mutation=false | FileCheck %s
66
; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu \
77
; RUN: -fp-contract=fast -mattr=+vsx -disable-ppc-vsx-fma-mutation=false \
88
; RUN: -mcpu=pwr7 | FileCheck -check-prefix=CHECK-VSX %s

llvm/test/CodeGen/PowerPC/fptoui-be-crash.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
22
; RUN: llc -verify-machineinstrs -ppc-asm-full-reg-names \
3-
; RUN: -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s
3+
; RUN: -mcpu=ppc -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s
44
define dso_local void @calc_buffer() local_unnamed_addr #0 {
55
; CHECK-LABEL: calc_buffer:
66
; CHECK: # %bb.0:

llvm/test/CodeGen/PowerPC/frounds.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
22
; RUN: llc -verify-machineinstrs < %s -mtriple=ppc32-- | FileCheck %s \
33
; RUN: -check-prefix=PPC32
4-
; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64 | FileCheck %s \
4+
; RUN: llc -verify-machineinstrs < %s -mcpu=ppc -mtriple=powerpc64 | FileCheck %s \
55
; RUN: -check-prefix=PPC64
66
; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64le -mattr=-direct-move \
77
; RUN: | FileCheck %s -check-prefix=PPC64LE

llvm/test/CodeGen/PowerPC/ftrunc-legalize.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc -mtriple=powerpc64-- -mattr=altivec -verify-machineinstrs < %s | FileCheck %s
2+
; RUN: llc -mcpu=ppc -mtriple=powerpc64-- -mattr=altivec -verify-machineinstrs < %s | FileCheck %s
33

44
; This would assert because the widened vector op is
55
; legal/custom, but the scalar op is expanded.

llvm/test/CodeGen/PowerPC/hoist-logic.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc < %s -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu | FileCheck %s
3-
; RUN: llc < %s -verify-machineinstrs -mtriple=powerpc64-ibm-aix-xcoff | FileCheck %s
2+
; RUN: llc < %s -verify-machineinstrs -mcpu=ppc -mtriple=powerpc64-unknown-linux-gnu | FileCheck %s
3+
; RUN: llc < %s -verify-machineinstrs -mcpu=ppc -mtriple=powerpc64-ibm-aix-xcoff | FileCheck %s
44

55
; This is good - eliminate an op by hoisting logic.
66

llvm/test/CodeGen/PowerPC/huge-frame-call.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
22
; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-linux-gnu < %s \
33
; RUN: 2>&1 | FileCheck --check-prefix=CHECK-LE %s
4-
; RUN: llc -verify-machineinstrs -mtriple=powerpc64-ibm-aix-xcoff < %s \
4+
; RUN: llc -verify-machineinstrs -mtriple=powerpc64-ibm-aix-xcoff -mcpu=ppc < %s \
55
; RUN: 2>&1 | FileCheck --check-prefix=CHECK-BE %s
66

77
%0 = type <{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, [8 x i8] }>

llvm/test/CodeGen/PowerPC/inc-of-add.ll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2-
; RUN: llc < %s -mtriple=ppc32-unknown-unknown | FileCheck %s --check-prefixes=ALL,PPC32
3-
; RUN: llc < %s -mtriple=powerpc64-unknown-unknown | FileCheck %s --check-prefixes=ALL,PPC64,PPC64BE
4-
; RUN: llc < %s -mtriple=powerpc64-ibm-aix-xcoff | FileCheck %s --check-prefixes=ALL,PPC64,PPC64BE,AIX-PPC64
2+
; RUN: llc < %s -mcpu=ppc -mtriple=ppc32-unknown-unknown | FileCheck %s --check-prefixes=ALL,PPC32
3+
; RUN: llc < %s -mcpu=ppc -mtriple=powerpc64-unknown-unknown | FileCheck %s --check-prefixes=ALL,PPC64,PPC64BE
4+
; RUN: llc < %s -mcpu=ppc -mtriple=powerpc64-ibm-aix-xcoff | FileCheck %s --check-prefixes=ALL,PPC64,PPC64BE,AIX-PPC64
55
; RUN: llc < %s -mtriple=powerpc64le-unknown-unknown | FileCheck %s --check-prefixes=ALL,PPC64,PPC64LE
66

77
; These two forms are equivalent:

llvm/test/CodeGen/PowerPC/kill_flag_verification.ll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
; RUN: llc < %s -mtriple powerpc64le-unknown-linux-gnu
2-
; RUN: llc < %s -mtriple powerpc64-unknown-linux-gnu
3-
; RUN: llc < %s -mtriple powerpc-ibm-aix
4-
; RUN: llc < %s -mtriple powerpc64-ibm-aix
2+
; RUN: llc < %s -mcpu=ppc -mtriple powerpc64-unknown-linux-gnu
3+
; RUN: llc < %s -mcpu=ppc -mtriple powerpc-ibm-aix
4+
; RUN: llc < %s -mcpu=ppc -mtriple powerpc64-ibm-aix
55

66
define void @xvcvdpsp_kill_flag() {
77
entry:

llvm/test/CodeGen/PowerPC/ldst-16-byte.mir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2-
# RUN: llc -simplify-mir -verify-machineinstrs -mtriple=powerpc64-ibm-aix-xcoff \
2+
# RUN: llc -simplify-mir -verify-machineinstrs -mcpu=ppc -mtriple=powerpc64-ibm-aix-xcoff \
33
# RUN: -stop-after=postrapseudos %s -o - | FileCheck %s
44

55
---

0 commit comments

Comments
 (0)