Lines Matching refs:bswap
3 ; Verify the cost of bswap instructions.
5 declare i16 @llvm.bswap.i16(i16)
6 declare i32 @llvm.bswap.i32(i32)
7 declare i64 @llvm.bswap.i64(i64)
9 declare <2 x i32> @llvm.bswap.v2i32(<2 x i32>)
10 declare <4 x i16> @llvm.bswap.v4i16(<4 x i16>)
12 declare <2 x i64> @llvm.bswap.v2i64(<2 x i64>)
13 declare <4 x i32> @llvm.bswap.v4i32(<4 x i32>)
14 declare <8 x i16> @llvm.bswap.v8i16(<8 x i16>)
18 ; CHECK: Found an estimated cost of 1 for instruction: %bswap
19 %bswap = tail call i16 @llvm.bswap.i16(i16 %a)
20 ret i16 %bswap
25 ; CHECK: Found an estimated cost of 1 for instruction: %bswap
26 %bswap = tail call i32 @llvm.bswap.i32(i32 %a)
27 ret i32 %bswap
32 ; CHECK: Found an estimated cost of 1 for instruction: %bswap
33 %bswap = tail call i64 @llvm.bswap.i64(i64 %a)
34 ret i64 %bswap
39 ; CHECK: Found an estimated cost of 8 for instruction: %bswap
40 %bswap = call <2 x i32> @llvm.bswap.v2i32(<2 x i32> %a)
41 ret <2 x i32> %bswap
46 ; CHECK: Found an estimated cost of 22 for instruction: %bswap
47 %bswap = call <4 x i16> @llvm.bswap.v4i16(<4 x i16> %a)
48 ret <4 x i16> %bswap
53 ; CHECK: Found an estimated cost of 8 for instruction: %bswap
54 %bswap = call <2 x i64> @llvm.bswap.v2i64(<2 x i64> %a)
55 ret <2 x i64> %bswap
60 ; CHECK: Found an estimated cost of 22 for instruction: %bswap
61 %bswap = call <4 x i32> @llvm.bswap.v4i32(<4 x i32> %a)
62 ret <4 x i32> %bswap
67 ; CHECK: Found an estimated cost of 50 for instruction: %bswap
68 %bswap = call <8 x i16> @llvm.bswap.v8i16(<8 x i16> %a)
69 ret <8 x i16> %bswap