mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
bda2dd9fab
Summary: This change is in preparation to reuse these test for the Attributor. It mainly is to remove UB, make it clear what is tested, and use "modern" run lines. Reviewers: fhahn, efriedma, mssimpso, davide Subscribers: bollu, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D69747
30 lines
887 B
LLVM
30 lines
887 B
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
|
; RUN: opt < %s -S -ipconstprop | FileCheck %s
|
|
|
|
%struct.wobble = type { i32 }
|
|
%struct.zot = type { %struct.wobble, %struct.wobble, %struct.wobble }
|
|
|
|
declare dso_local fastcc float @bar(%struct.wobble* noalias, <8 x i32>) unnamed_addr
|
|
|
|
define %struct.zot @widget(<8 x i32> %arg) local_unnamed_addr {
|
|
; CHECK-LABEL: @widget(
|
|
; CHECK-NEXT: bb:
|
|
; CHECK-NEXT: ret [[STRUCT_ZOT:%.*]] undef
|
|
;
|
|
bb:
|
|
ret %struct.zot undef
|
|
}
|
|
|
|
define void @baz(<8 x i32> %arg) local_unnamed_addr {
|
|
; CHECK-LABEL: @baz(
|
|
; CHECK-NEXT: bb:
|
|
; CHECK-NEXT: [[TMP:%.*]] = call [[STRUCT_ZOT:%.*]] @widget(<8 x i32> [[ARG:%.*]])
|
|
; CHECK-NEXT: [[TMP1:%.*]] = extractvalue [[STRUCT_ZOT]] %tmp, 0, 0
|
|
; CHECK-NEXT: ret void
|
|
;
|
|
bb:
|
|
%tmp = call %struct.zot @widget(<8 x i32> %arg)
|
|
%tmp1 = extractvalue %struct.zot %tmp, 0, 0
|
|
ret void
|
|
}
|