brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 60228a4 Raw
37 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py2; RUN: opt -passes='sroa<preserve-cfg>' -S < %s | FileCheck %s --check-prefixes=CHECK,CHECK-PRESERVE-CFG3; RUN: opt -passes='sroa<modify-cfg>' -S < %s | FileCheck %s --check-prefixes=CHECK,CHECK-MODIFY-CFG4 5target datalayout = "e-p:64:32-i64:32-v32:32-n32-S64"6 7; Function Attrs: nounwind8declare void @llvm.lifetime.start.p0(ptr nocapture) #09 10; Function Attrs: nounwind11declare void @llvm.lifetime.end.p0(ptr nocapture) #012 13define void @wombat(<4 x float> %arg1) {14; CHECK-LABEL: @wombat(15; CHECK-NEXT:  bb:16; CHECK-NEXT:    [[TMP_0_VEC_EXTRACT:%.*]] = shufflevector <4 x float> [[ARG1:%.*]], <4 x float> poison, <3 x i32> <i32 0, i32 1, i32 2>17; CHECK-NEXT:    call void @wombat3(<3 x float> [[TMP_0_VEC_EXTRACT]])18; CHECK-NEXT:    ret void19;20bb:21  %tmp = alloca <4 x float>, align 1622  call void @llvm.lifetime.start.p0(ptr %tmp)23  store <4 x float> %arg1, ptr %tmp, align 1624  %tmp18 = load <3 x float>, ptr %tmp25  call void @llvm.lifetime.end.p0(ptr %tmp)26  call void @wombat3(<3 x float> %tmp18)27  ret void28}29 30; Function Attrs: nounwind31declare void @wombat3(<3 x float>) #032 33attributes #0 = { nounwind }34;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:35; CHECK-MODIFY-CFG: {{.*}}36; CHECK-PRESERVE-CFG: {{.*}}37