Skip to content

Commit 45f0087

Browse files
committed
[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().
1 parent 659500c commit 45f0087

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

llvm/test/CodeGen/PowerPC/unwind-dw2.ll

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
1-
; RUN: llc -verify-machineinstrs < %s
2-
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"
3-
target triple = "powerpc64-unknown-linux-gnu"
1+
; RUN: llc -mtriple=powerpc64-unknown-linux-gnu -verify-machineinstrs < %s | FileCheck %s
2+
; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu -verify-machineinstrs < %s | FileCheck %s
3+
; RUN: llc -mtriple=powerpc-unknown-linux-gnu -verify-machineinstrs < %s | FileCheck %s
4+
5+
; RUN: llc -mtriple=powerpc64-unknown-freebsd -verify-machineinstrs < %s | FileCheck %s
6+
; RUN: llc -mtriple=powerpc-unknown-freebsd -verify-machineinstrs < %s | FileCheck %s
7+
8+
; RUN: llc -mtriple=powerpc64-unknown-aix-xcoff -verify-machineinstrs < %s | FileCheck %s
9+
; RUN: llc -mtriple=powerpc-unknown-aix-xcoff -verify-machineinstrs < %s | FileCheck %s
10+
11+
; CHECK-NOT: vrsave
12+
; CHECK-NOT: mfspr
13+
; CHECK-NOT: mtspr
414

515
; Function Attrs: nounwind
616
define void @foo() #0 {

0 commit comments

Comments
 (0)