From: David Majnemer Date: Fri, 28 Aug 2015 17:19:54 +0000 (+0000) Subject: Test case for r246304. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=dc15d2d8ea86cd1fcc5eb60b21bc23e91dedf2ad;p=oota-llvm.git Test case for r246304. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246306 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/X86/tailcall-readnone.ll b/test/CodeGen/X86/tailcall-readnone.ll new file mode 100644 index 00000000000..b43f69120e7 --- /dev/null +++ b/test/CodeGen/X86/tailcall-readnone.ll @@ -0,0 +1,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 }