[llvm] Fixed test case error which caused the default cpu is changed from generic to ppc64 for triple powerpc64 (PR #114828)

zhijian lin via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 4 08:33:32 PST 2024


https://github.com/diggerlin created https://github.com/llvm/llvm-project/pull/114828

[Summary]
  Fixed test case error in the https://lab.llvm.org/buildbot/#/builders/33/builds/5801 which 
  caused by the commit https://github.com/llvm/llvm-project/pull/113943

>From 6d44d238a029a7ddc93dd217b7d2f64ace00194f Mon Sep 17 00:00:00 2001
From: zhijian <zhijian at ca.ibm.com>
Date: Mon, 4 Nov 2024 16:42:23 +0000
Subject: [PATCH] Fixed test case error in the
 https://lab.llvm.org/buildbot/#/builders/33/builds/5801

---
 llvm/test/CodeGen/PowerPC/stack-guard-global.ll | 2 +-
 llvm/test/CodeGen/PowerPC/stack-guard-tls.ll    | 2 +-
 llvm/test/CodeGen/PowerPC/uaddo-64.ll           | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/llvm/test/CodeGen/PowerPC/stack-guard-global.ll b/llvm/test/CodeGen/PowerPC/stack-guard-global.ll
index 022a62a4b0918d..a8d97c99522615 100644
--- a/llvm/test/CodeGen/PowerPC/stack-guard-global.ll
+++ b/llvm/test/CodeGen/PowerPC/stack-guard-global.ll
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
-; RUN: llc -mtriple=powerpc64 -verify-machineinstrs < %s \
+; RUN: llc -mcpu=ppc -mtriple=powerpc64 -verify-machineinstrs < %s \
 ; RUN:     | FileCheck %s --check-prefixes=BE64
 ; RUN: llc -mtriple=powerpc64le -verify-machineinstrs < %s \
 ; RUN:     | FileCheck %s --check-prefixes=LE64
diff --git a/llvm/test/CodeGen/PowerPC/stack-guard-tls.ll b/llvm/test/CodeGen/PowerPC/stack-guard-tls.ll
index de0becc037309f..89c1fdbf56c6f6 100644
--- a/llvm/test/CodeGen/PowerPC/stack-guard-tls.ll
+++ b/llvm/test/CodeGen/PowerPC/stack-guard-tls.ll
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
-; RUN: llc -mtriple=powerpc64 -verify-machineinstrs < %s \
+; RUN: llc -mcpu=ppc -mtriple=powerpc64 -verify-machineinstrs < %s \
 ; RUN:     | FileCheck %s --check-prefixes=BE64
 ; RUN: llc -mtriple=powerpc64le -verify-machineinstrs < %s \
 ; RUN:     | FileCheck %s --check-prefixes=LE64
diff --git a/llvm/test/CodeGen/PowerPC/uaddo-64.ll b/llvm/test/CodeGen/PowerPC/uaddo-64.ll
index 736b54e23d2530..3c7ab2c2bab795 100644
--- a/llvm/test/CodeGen/PowerPC/uaddo-64.ll
+++ b/llvm/test/CodeGen/PowerPC/uaddo-64.ll
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
-; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu | FileCheck %s
+; RUN: llc < %s -mcpu=ppc -mtriple=powerpc64-unknown-linux-gnu | FileCheck %s
 ; RUN: llc < %s -mtriple=powerpc64-ibm-aix-xcoff | FileCheck %s
 
 define noundef i64 @add(i64 noundef %a, i64 noundef %b, ptr nocapture noundef writeonly %ovf) {



More information about the llvm-commits mailing list