xref: /llvm-project/llvm/test/Analysis/CostModel/SystemZ/oldarch-vectors.ll (revision 68c50b111d74afb9489cf97770fa917d0a1c7f77)
1; RUN: opt < %s -passes="print<cost-model>" 2>&1 -disable-output -mtriple=systemz-unknown -mcpu=z10
2;
3; Check that some costs can be returned for vector instructions also without
4; vector support.
5
6define void @fun(ptr %arg) {
7entry:
8   %add = fadd <2 x double> undef, undef
9   shufflevector <2 x i32> undef, <2 x i32> undef, <2 x i32> <i32 1, i32 0>
10   %conv = fptoui <4 x float> undef to <4 x i32>
11   %cmp = icmp eq <2 x i64> undef, undef
12  ret void
13}
14