1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -S < %s | FileCheck %s
4 ; This is an overloaded struct return, we should not try to update it to an
5 ; anonymous struct return.
9 define %ty @test(%ty %arg) {
11 ; CHECK-NEXT: [[COPY:%.*]] = call [[TY:%.*]] @llvm.ssa.copy.s_tys([[TY]] [[ARG:%.*]])
12 ; CHECK-NEXT: ret [[TY]] [[COPY]]
14 %copy = call %ty @llvm.ssa.copy.s_tys(%ty %arg)
18 define %ty @test_not_real_intrinsic() {
19 ; CHECK-LABEL: @test_not_real_intrinsic(
20 ; CHECK-NEXT: [[RET:%.*]] = call [[TY:%.*]] @llvm.dummy()
21 ; CHECK-NEXT: ret [[TY]] [[RET]]
23 %ret = call %ty @llvm.dummy()
27 declare %ty @llvm.dummy()
29 declare %ty @llvm.ssa.copy.s_tys(%ty)