1 ; RUN: llc < %s | FileCheck %s
3 target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
4 target triple = "aarch64"
6 ; If the float value is negative or too large, the result is undefined anyway;
7 ; otherwise, fcvtzs must returns a value in [0, 256), which guarantees zext.
9 ; CHECK-LABEL: float_char_int_func:
10 ; CHECK: fcvtzs [[A:w[0-9]+]], s0
12 define i32 @float_char_int_func(float %infloatVal) {
14 %conv = fptoui float %infloatVal to i8
15 %conv1 = zext i8 %conv to i32