brintos

brintos / llvm-project-archived public Read only

0
0
Text · 815 B · bbc7c72 Raw
18 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 52; RUN: opt %s -passes="function(scalarizer)" -S | FileCheck %s3 4; Test to make sure that struct return intrinsics that are not `isTriviallyScalarizable` do not get scalarized.5 6define <2 x float> @test_(<4 x float> %Val) {7; CHECK-LABEL: define <2 x float> @test_(8; CHECK-SAME: <4 x float> [[VAL:%.*]]) {9; CHECK-NEXT:    [[R:%.*]] = call { <2 x float>, <2 x float> } @llvm.vector.deinterleave2.v4f32(<4 x float> [[VAL]])10; CHECK-NEXT:    [[EL:%.*]] = extractvalue { <2 x float>, <2 x float> } [[R]], 011; CHECK-NEXT:    ret <2 x float> [[EL]]12;13  %r = call { <2 x float>, <2 x float> } @llvm.vector.deinterleave2.v4f32(<4 x float> %Val)14  %el = extractvalue { <2 x float>, <2 x float> } %r, 015  ret <2 x float> %el16}17 18