[PATCH] D60021: InstSimplify: Fold round intrinsics from sitofp
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 30 01:24:06 PDT 2019
lebedev.ri added a comment.
Do we not need any fast math flags here?
https://llvm.org/docs/LangRef.html#id276
The ‘sitofp’ instruction interprets its operand as a signed integer quantity
and converts it to the corresponding floating-point value. If the value cannot
be exactly represented, it is rounded using the default rounding mode.
================
Comment at: test/Transforms/InstSimplify/round-intrinsics.ll:3
+; RUN: opt -S -instsimplify %s | FileCheck %s
+
+define float @sitofp_floor(i32 %arg) {
----------------
Please precommit test
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60021/new/
https://reviews.llvm.org/D60021
More information about the llvm-commits
mailing list