aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/PowerPC/novrsave.ll
blob: 33348617f9cc6c09d11f04e37bef433bf6713ba8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; RUN: llc -verify-machineinstrs -O0 -mtriple=powerpc-unknown-linux-gnu   < %s | FileCheck %s
; RUN: llc -verify-machineinstrs -O0 -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s

; This verifies that the code to update VRSAVE has been removed for SVR4.

define <4 x float> @bar(<4 x float> %v) nounwind {
entry:
  %v.addr = alloca <4 x float>, align 16
  store <4 x float> %v, ptr %v.addr, align 16
  %0 = load <4 x float>, ptr %v.addr, align 16
  ret <4 x float> %0
}

; CHECK-NOT: mfspr
; CHECK-NOT: mtspr