1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/CodeGen/PowerPC/unwind-dw2.ll
Sean Fertile f65ec1bb1c [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().
2020-02-20 10:20:33 -05:00

26 lines
887 B
LLVM

; 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 {
entry:
call void @llvm.eh.unwind.init()
ret void
}
; Function Attrs: nounwind
declare void @llvm.eh.unwind.init() #0
attributes #0 = { nounwind }