[PATCH] D104793: [ARM] Transform a floating-point to fixed-point conversion to a VCVT_fix
Dave Green via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 30 11:49:31 PDT 2021
dmgreen accepted this revision.
dmgreen added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: llvm/test/CodeGen/Thumb2/mve-vcvt-float-to-fixed.ll:793
+; CHECK-NEXT: bx lr
+ %2 = fmul fast <4 x float> %0, <float 0xC1E0000000000000, float 0xC1E0000000000000, float 0xC1E0000000000000, float 0xC1E0000000000000>
+ %3 = fptoui <4 x float> %2 to <4 x i32>
----------------
0x41E0000000000000 :)
================
Comment at: llvm/test/CodeGen/Thumb2/mve-vcvt-float-to-fixed.ll:805
+; CHECK-NEXT: bx lr
+ %2 = fmul <4 x float> %0, <float 0x3DF0000000000000, float 0x3DF0000000000000, float 0x3DF0000000000000, float 0x3DF0000000000000>
+ %3 = fptoui <4 x float> %2 to <4 x i32>
----------------
0x41F0000000000000
================
Comment at: llvm/test/CodeGen/Thumb2/mve-vcvt-float-to-fixed.ll:817
+; CHECK-NEXT: bx lr
+ %2 = fmul <4 x float> %0, <float 0x3DE0000000000000, float 0x3DE0000000000000, float 0x3DE0000000000000, float 0x3DE0000000000000>
+ %3 = fptoui <4 x float> %2 to <4 x i32>
----------------
0x4200000000000000
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104793/new/
https://reviews.llvm.org/D104793
More information about the llvm-commits
mailing list