[PATCH] D79775: [AsmPrinter] Handle foldable FP constant exprs in initializers.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 12 07:30:01 PDT 2020


fhahn marked 2 inline comments as done.
fhahn added inline comments.


================
Comment at: llvm/test/CodeGen/AArch64/complex-float-constexpr-global-initializer.ll:9-10
+ at g = global [1 x <2 x float>] [<2 x float>
+      <float fneg (float extractelement (<4 x float> bitcast (<1 x i128> <i128 1> to <4 x float>), i32 0)),
+       float fneg (float extractelement (<4 x float> bitcast (<1 x i128> <i128 84405977732242151929291748327801880576> to <4 x float>), i32 1))>]
+
----------------
arsenm wrote:
> Could use a case where the folded FP op is a vector
I've updated the test to extract one element directly from a vector instead of going through a bit cast. Is that along the lines you suggested?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79775/new/

https://reviews.llvm.org/D79775





More information about the llvm-commits mailing list