xref: /llvm-project/llvm/test/CodeGen/AArch64/v3f-to-int.ll (revision 3d18c8cd265c0c0bf1d85226c4770a2dd0f86e8f)
1; RUN: llc -mtriple=aarch64 %s -o - | FileCheck %s
2
3; CHECK-LABEL: convert_v3f32
4; CHECK: strb
5; CHECK: strh
6define void @convert_v3f32() {
7entry:
8  br label %bb
9
10bb:
11  %0 = shufflevector <4 x float> zeroinitializer, <4 x float> undef, <3 x i32> <i32 0, i32 1, i32 2>
12  %1 = fmul reassoc nnan ninf nsz contract afn <3 x float> %0, <float 2.550000e+02, float 2.550000e+02, float 2.550000e+02>
13  %2 = fptoui <3 x float> %1 to <3 x i8>
14  %3 = bitcast ptr undef to ptr
15  store <3 x i8> %2, ptr %3, align 1
16  ret void
17}
18