summaryrefslogtreecommitdiff
path: root/llvm/test/Analysis/CostModel/SystemZ/oldarch-vectors.ll
blob: 3def1a3f4c6dd233062d2e06d1d1e74728700a3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; RUN: opt < %s -passes="print<cost-model>" 2>&1 -disable-output -mtriple=systemz-unknown -mcpu=z10
;
; Check that some costs can be returned for vector instructions also without
; vector support.

define void @fun(ptr %arg) {
entry:
   %add = fadd <2 x double> undef, undef
   shufflevector <2 x i32> undef, <2 x i32> undef, <2 x i32> <i32 1, i32 0>
   %conv = fptoui <4 x float> undef to <4 x i32>
   %cmp = icmp eq <2 x i64> undef, undef
  ret void
}