1 ; Test conversions between integer and float elements on arch13.
3 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=arch13 | FileCheck %s
5 ; Test conversion of f32s to signed i32s.
6 define <4 x i32> @f1(<4 x float> %floats) {
8 ; CHECK: vcfeb %v24, %v24, 0, 5
10 %dwords = fptosi <4 x float> %floats to <4 x i32>
14 ; Test conversion of f32s to unsigned i32s.
15 define <4 x i32> @f2(<4 x float> %floats) {
17 ; CHECK: vclfeb %v24, %v24, 0, 5
19 %dwords = fptoui <4 x float> %floats to <4 x i32>
23 ; Test conversion of signed i32s to f32s.
24 define <4 x float> @f3(<4 x i32> %dwords) {
26 ; CHECK: vcefb %v24, %v24, 0, 0
28 %floats = sitofp <4 x i32> %dwords to <4 x float>
29 ret <4 x float> %floats
32 ; Test conversion of unsigned i32s to f32s.
33 define <4 x float> @f4(<4 x i32> %dwords) {
35 ; CHECK: vcelfb %v24, %v24, 0, 0
37 %floats = uitofp <4 x i32> %dwords to <4 x float>
38 ret <4 x float> %floats