[PATCH] D55162: [test] fix ScalarEvolution test to allow __func__ with prototype

Michał Górny via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 1 06:26:12 PST 2018


mgorny created this revision.
mgorny added reviewers: krytarowski, kparzysz.
Herald added subscribers: javed.absar, sanjoy.

Fix ScalarEvolution/solve-quadratic.ll test to account for __func__
output listing the complete function prototype rather than just its
name, as it does on NetBSD.

Example Linux output:

  GetQuadraticEquation: addrec coeff bw: 4
  GetQuadraticEquation: equation -2x^2 + -2x + -4, coeff bw: 5, multiplied by 2

Example NetBSD output:

  llvm::Optional<std::tuple<llvm::APInt, llvm::APInt, llvm::APInt, llvm::APInt, unsigned int> > GetQuadraticEquation(const llvm::SCEVAddRecExpr*): addrec coeff bw: 4
  llvm::Optional<std::tuple<llvm::APInt, llvm::APInt, llvm::APInt, llvm::APInt, unsigned int> > GetQuadraticEquation(const llvm::SCEVAddRecExpr*): equation -2x^2 + -2x + -4, coeff bw: 5, multiplied by 2


Repository:
  rL LLVM

https://reviews.llvm.org/D55162

Files:
  test/Analysis/ScalarEvolution/solve-quadratic.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55162.176254.patch
Type: text/x-patch
Size: 21500 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181201/ee715353/attachment.bin>


More information about the llvm-commits mailing list