summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/tailcall-readnone.ll
blob: b43f69120e7c25cb06f93892785c13b55b9d6230 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; 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 }