Merging r261039:
[oota-llvm.git] / test / CodeGen / X86 / tailcall-readnone.ll
1 ; RUN: llc -mtriple=x86_64-unknown-linux-gnu -o - %s | FileCheck %s
2
3 define void @f(i32** %p) unnamed_addr {
4 entry:
5   %v = tail call i32* @g()
6   store i32* %v, i32** %p, align 8
7   ret void
8 }
9 ; CHECK-LABEL: f:
10 ; CHECK: callq g
11 ; CHECK: movq    %rax, (%rbx)
12
13 declare i32* @g() #2
14
15 attributes #2 = { nounwind readnone }