repo.or.cz
/
llvm
/
stm8.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Silence -Wunused-variable in release builds.
[llvm/stm8.git]
/
test
/
CodeGen
/
PowerPC
/
varargs.ll
blob
1769be957ac42a16f20c8acbddea28c5762ca29b
1
; RUN: llc < %s -mtriple=powerpc-apple-darwin | FileCheck -check-prefix=P32 %s
2
; RUN: llc < %s -mtriple=powerpc64-apple-darwin | FileCheck -check-prefix=P64 %s
3
4
; PR8327
5
define i8* @test1(i8** %foo) nounwind {
6
%A = va_arg i8** %foo, i8*
7
ret i8* %A
8
}
9
10
; P32: test1:
11
; P32: lwz r4, 0(r3)
12
; P32: addi r5, r4, 4
13
; P32: stw r5, 0(r3)
14
; P32: lwz r3, 0(r4)
15
; P32: blr
16
17
; P64: test1:
18
; P64: ld r4, 0(r3)
19
; P64: addi r5, r4, 8
20
; P64: std r5, 0(r3)
21
; P64: ld r3, 0(r4)
22
; P64: blr