diff options
Diffstat (limited to 'llvm/test/CodeGen/AArch64/fptouint-i8-zext.ll')
-rw-r--r-- | llvm/test/CodeGen/AArch64/fptouint-i8-zext.ll | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/AArch64/fptouint-i8-zext.ll b/llvm/test/CodeGen/AArch64/fptouint-i8-zext.ll index 682683751a8..4e07c62ba99 100644 --- a/llvm/test/CodeGen/AArch64/fptouint-i8-zext.ll +++ b/llvm/test/CodeGen/AArch64/fptouint-i8-zext.ll @@ -3,9 +3,11 @@ target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128" target triple = "aarch64" +; If the float value is negative or too large, the result is undefined anyway; +; otherwise, fcvtzs must returns a value in [0, 256), which guarantees zext. + ; CHECK-LABEL: float_char_int_func: ; CHECK: fcvtzs [[A:w[0-9]+]], s0 -; CHECK-NEXT: and w0, [[A]], #0xff ; CHECK-NEXT: ret define i32 @float_char_int_func(float %infloatVal) { entry: |