2013-06-14 04:23:34 +08:00
|
|
|
; RUN: llc -O0 -mtriple=powerpc-unknown-linux-gnu -mattr=+altivec -verify-machineinstrs < %s | FileCheck %s
|
|
|
|
; RUN: llc -O0 -mtriple=powerpc64-unknown-linux-gnu -mattr=+altivec -verify-machineinstrs -fast-isel=false < %s | FileCheck %s
|
2012-10-11 05:25:01 +08:00
|
|
|
|
|
|
|
; This verifies that we generate correct spill/reload code for vector regs.
|
|
|
|
|
|
|
|
define void @addrtaken(i32 %i, <4 x float> %w) nounwind {
|
|
|
|
entry:
|
|
|
|
%i.addr = alloca i32, align 4
|
|
|
|
%w.addr = alloca <4 x float>, align 16
|
|
|
|
store i32 %i, i32* %i.addr, align 4
|
|
|
|
store <4 x float> %w, <4 x float>* %w.addr, align 16
|
|
|
|
call void @foo(i32* %i.addr)
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2013-06-14 04:23:34 +08:00
|
|
|
; CHECK: stvx 2,
|
2012-10-11 05:25:01 +08:00
|
|
|
|
|
|
|
declare void @foo(i32*)
|