[llvm] 45f0087 - [PowerPC][NFC] We do not save/restore vrsave for any remaining subtargets.
Sean Fertile via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 20 07:22:34 PST 2020
Author: Sean Fertile
Date: 2020-02-20T10:20:33-05:00
New Revision: 45f008704df2680660ee82a7c3543d3ac9499a99
URL: https://github.com/llvm/llvm-project/commit/45f008704df2680660ee82a7c3543d3ac9499a99
DIFF: https://github.com/llvm/llvm-project/commit/45f008704df2680660ee82a7c3543d3ac9499a99.diff
LOG: [PowerPC][NFC] We do not save/restore vrsave for any remaining subtargets.
Extend lit test to show that we don't save or restore vrsave register
when expanding @llvm.eh.unwind.init().
Added:
Modified:
llvm/test/CodeGen/PowerPC/unwind-dw2.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/PowerPC/unwind-dw2.ll b/llvm/test/CodeGen/PowerPC/unwind-dw2.ll
index b4031fef3063..0f322d439271 100644
--- a/llvm/test/CodeGen/PowerPC/unwind-dw2.ll
+++ b/llvm/test/CodeGen/PowerPC/unwind-dw2.ll
@@ -1,6 +1,16 @@
-; RUN: llc -verify-machineinstrs < %s
-target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f128:128:128-v128:128:128-n32:64"
-target triple = "powerpc64-unknown-linux-gnu"
+; RUN: llc -mtriple=powerpc64-unknown-linux-gnu -verify-machineinstrs < %s | FileCheck %s
+; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu -verify-machineinstrs < %s | FileCheck %s
+; RUN: llc -mtriple=powerpc-unknown-linux-gnu -verify-machineinstrs < %s | FileCheck %s
+
+; RUN: llc -mtriple=powerpc64-unknown-freebsd -verify-machineinstrs < %s | FileCheck %s
+; RUN: llc -mtriple=powerpc-unknown-freebsd -verify-machineinstrs < %s | FileCheck %s
+
+; RUN: llc -mtriple=powerpc64-unknown-aix-xcoff -verify-machineinstrs < %s | FileCheck %s
+; RUN: llc -mtriple=powerpc-unknown-aix-xcoff -verify-machineinstrs < %s | FileCheck %s
+
+; CHECK-NOT: vrsave
+; CHECK-NOT: mfspr
+; CHECK-NOT: mtspr
; Function Attrs: nounwind
define void @foo() #0 {
More information about the llvm-commits
mailing list