summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/builtins.c
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2018-07-11 22:17:26 +0000
committerCraig Topper <craig.topper@intel.com>2018-07-11 22:17:26 +0000
commitef08aec9352a4827a2f9c83fffd7844155b1a633 (patch)
tree6606b92ae2a6d0bb7b94ee1a5455c0bae711d4c3 /clang/test/CodeGen/builtins.c
parent752ddbd0684a5173071ed22a7fa289a09e72d020 (diff)
downloadbcm5719-llvm-ef08aec9352a4827a2f9c83fffd7844155b1a633.tar.gz
bcm5719-llvm-ef08aec9352a4827a2f9c83fffd7844155b1a633.zip
[LoopIdiomRecognize] Add a test case showing a loop we turn into ctlz that we shouldn't.
This loop executes one iteration without checking the input value. This produces a count of 1 for an input of 0 and 1. We are turning this into 32 - ctlz(n), but that returns 0 if n is 0. llvm-svn: 336862
Diffstat (limited to 'clang/test/CodeGen/builtins.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud