mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 14:47:00 +00:00
dc15d2d8ea
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246306 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
317 B
LLVM
16 lines
317 B
LLVM
; RUN: llc -mtriple=x86_64-unknown-linux-gnu -o - %s | FileCheck %s
|
|
|
|
define void @f(i32** %p) unnamed_addr {
|
|
entry:
|
|
%v = tail call i32* @g()
|
|
store i32* %v, i32** %p, align 8
|
|
ret void
|
|
}
|
|
; CHECK-LABEL: f:
|
|
; CHECK: callq g
|
|
; CHECK: movq %rax, (%rbx)
|
|
|
|
declare i32* @g() #2
|
|
|
|
attributes #2 = { nounwind readnone }
|