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
5 ; RUN: llc -mtriple=powerpc64-unknown-freebsd -verify-machineinstrs < %s | FileCheck %s
6 ; RUN: llc -mtriple=powerpc-unknown-freebsd -verify-machineinstrs < %s | FileCheck %s
8 define dso_local void @moveToVRSave(i32 signext %i) {
10 tail call void asm sideeffect "mtvrsave $0", "r,~{vrsave}"(i32 %i)
14 define dso_local signext i32 @moveFromVRSave() {
16 %0 = tail call i32 asm sideeffect "mfvrsave $0", "=r"()
20 define dso_local void @moveToSPR(i32 signext %i) {
22 tail call void asm sideeffect "mtspr 256, $0", "r,~{vrsave}"(i32 %i)
26 define dso_local signext i32 @moveFromSPR() {
28 %0 = tail call i32 asm sideeffect "mfspr $0, 256", "=r"()
32 ; CHECK-LABEL: moveToVRSave:
35 ; CHECK-LABEL: moveFromVRSave:
36 ; CHECK: mfvrsave {{[0-9]+}}
38 ; CHECK-LABEL: moveToSPR:
41 ; CHECK-LABEL: moveFromSPR:
42 ; CHECK: mfspr {{[0-9]}}, 256