20 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -mtriple=aarch64 < %s | FileCheck %s3 4define <8 x i8> @float_to_i8(ptr %in) {5; CHECK-LABEL: float_to_i8:6; CHECK: // %bb.0:7; CHECK-NEXT: ldp q1, q0, [x0]8; CHECK-NEXT: fadd v1.4s, v1.4s, v1.4s9; CHECK-NEXT: fadd v0.4s, v0.4s, v0.4s10; CHECK-NEXT: fcvtzs v0.4s, v0.4s11; CHECK-NEXT: fcvtzs v1.4s, v1.4s12; CHECK-NEXT: uzp1 v0.8h, v1.8h, v0.8h13; CHECK-NEXT: xtn v0.8b, v0.8h14; CHECK-NEXT: ret15 %l = load <8 x float>, ptr %in16 %scale = fmul <8 x float> %l, <float 2.0, float 2.0, float 2.0, float 2.0, float 2.0, float 2.0, float 2.0, float 2.0>17 %conv = fptoui <8 x float> %scale to <8 x i8>18 ret <8 x i8> %conv19}20