xref: /llvm-project/llvm/test/CodeGen/X86/arg_returned_bitcast.ll (revision 2f448bf509432c1a19ec46ab8cbc7353c03c6280)
1; RUN: llc < %s -mtriple=i686-unknown-linux-gnu | FileCheck %s
2
3; Test that the "returned" attribute "works" even if there is a bitcast between
4; the argument and return value.
5
6declare ptr @bar(ptr returned)
7
8define ptr @foo(ptr) {
9  %r = tail call ptr @bar(ptr %0)
10; CHECK: jmp    bar
11  ret ptr %r
12}
13