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