<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/llvm/test/CodeGen/ARM/div.ll, branch users/nico/python-2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/'/>
<entry>
<title>[ARM] Add additional targets to divide tests.</title>
<updated>2022-10-17T15:51:17+00:00</updated>
<author>
<name>Keith Walker</name>
<email>keith.walker@arm.com</email>
</author>
<published>2022-10-13T12:56:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=6102364b0d0e16d63cc38c74a2a315a75253b4e8'/>
<id>6102364b0d0e16d63cc38c74a2a315a75253b4e8</id>
<content type='text'>
The main motivation for these additional targets is to cover the
differences in the instructions available between Thumb2 and Thumb1.

Ths shows up in these test due to the lack of the following in
Thumb1:
- Mulitply and Subtract instruction (mls) - used when calculating
  a remainder.
- Unsigned Muliple Long instruction (umull) - used in certain
  cases when optimising division with a constant.

Differential Revision: https://reviews.llvm.org/D135875
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The main motivation for these additional targets is to cover the
differences in the instructions available between Thumb2 and Thumb1.

Ths shows up in these test due to the lack of the following in
Thumb1:
- Mulitply and Subtract instruction (mls) - used when calculating
  a remainder.
- Unsigned Muliple Long instruction (umull) - used in certain
  cases when optimising division with a constant.

Differential Revision: https://reviews.llvm.org/D135875
</pre>
</div>
</content>
</entry>
<entry>
<title>[LegalizeTypes] Improve splitting for urem/udiv by constant for some constants.</title>
<updated>2022-09-12T17:34:52+00:00</updated>
<author>
<name>Craig Topper</name>
<email>craig.topper@sifive.com</email>
</author>
<published>2022-09-12T17:34:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=38ffa2bb963714cd117b6d4534d328fa6a0fb875'/>
<id>38ffa2bb963714cd117b6d4534d328fa6a0fb875</id>
<content type='text'>
For remainder:
If (1 &lt;&lt; (Bitwidth / 2)) % Divisor == 1, we can add the high and low halves
together and use a (Bitwidth / 2) urem. If (BitWidth /2) is a legal integer
type, this urem will be expand by DAGCombiner using multiply by magic
constant. We do have to take into account that adding high and low
together can produce a carry, making it a (BitWidth / 2)+1 bit number.
So we need to also add back in the carry from the first addition.

For division:
We can use the above trick to compute the remainder, subtract that
remainder from the dividend, then multiply by the multiplicative
inverse of the Divisor modulo (1 &lt;&lt; BitWidth).

This is based on the section "Remainder by Summing Digits" in
Hacker's delight.

The remainder trick is similar to a trick you may have learned for
determining if a decimal number is divisible by 3. You can add all the
digits together and see if the sum is divisible by 3. If you're not sure
if the sum is divisible by 3, you can add its digits together. This
can be repeated until you have a single decimal digit. If that digit
is 3, 6, or 9, then the original number is divisible by 3. This works
because 10 % 3 == 1.

gcc already does this same trick. There are additional tricks gcc
does urem as well as srem, udiv, and sdiv that I plan to add in
future patches.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D130862
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For remainder:
If (1 &lt;&lt; (Bitwidth / 2)) % Divisor == 1, we can add the high and low halves
together and use a (Bitwidth / 2) urem. If (BitWidth /2) is a legal integer
type, this urem will be expand by DAGCombiner using multiply by magic
constant. We do have to take into account that adding high and low
together can produce a carry, making it a (BitWidth / 2)+1 bit number.
So we need to also add back in the carry from the first addition.

For division:
We can use the above trick to compute the remainder, subtract that
remainder from the dividend, then multiply by the multiplicative
inverse of the Divisor modulo (1 &lt;&lt; BitWidth).

This is based on the section "Remainder by Summing Digits" in
Hacker's delight.

The remainder trick is similar to a trick you may have learned for
determining if a decimal number is divisible by 3. You can add all the
digits together and see if the sum is divisible by 3. If you're not sure
if the sum is divisible by 3, you can add its digits together. This
can be repeated until you have a single decimal digit. If that digit
is 3, 6, or 9, then the original number is divisible by 3. This works
because 10 % 3 == 1.

gcc already does this same trick. There are additional tricks gcc
does urem as well as srem, udiv, and sdiv that I plan to add in
future patches.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D130862
</pre>
</div>
</content>
</entry>
<entry>
<title>[ARM] Add support for armv7ve triple in llvm (PR31358).</title>
<updated>2017-02-09T23:29:14+00:00</updated>
<author>
<name>George Burgess IV</name>
<email>george.burgess.iv@gmail.com</email>
</author>
<published>2017-02-09T23:29:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=ccf11c2f9f8182943ba72352d5d19be989f816b1'/>
<id>ccf11c2f9f8182943ba72352d5d19be989f816b1</id>
<content type='text'>
Gcc supports target armv7ve which is armv7-a with virtualization
extensions. This change adds support for this in llvm for gcc
compatibility.

Also remove redundant FeatureHWDiv, FeatureHWDivARM for a few models as
this is specified automatically by FeatureVirtualization.

Patch by Manoj Gupta.

Differential Revision: https://reviews.llvm.org/D29472

llvm-svn: 294661
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Gcc supports target armv7ve which is armv7-a with virtualization
extensions. This change adds support for this in llvm for gcc
compatibility.

Also remove redundant FeatureHWDiv, FeatureHWDivARM for a few models as
this is specified automatically by FeatureVirtualization.

Patch by Manoj Gupta.

Differential Revision: https://reviews.llvm.org/D29472

llvm-svn: 294661
</pre>
</div>
</content>
</entry>
<entry>
<title>[ARM] Use AEABI helpers for i64 div and rem</title>
<updated>2015-08-24T09:17:18+00:00</updated>
<author>
<name>Scott Douglass</name>
<email>sdouglass@arm.com</email>
</author>
<published>2015-08-24T09:17:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=bdef60462db587cf52fffc3c0319666b8f915476'/>
<id>bdef60462db587cf52fffc3c0319666b8f915476</id>
<content type='text'>
Differential Revision: http://reviews.llvm.org/D12232

llvm-svn: 245830
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Differential Revision: http://reviews.llvm.org/D12232

llvm-svn: 245830
</pre>
</div>
</content>
</entry>
<entry>
<title>[ARM] support for Cortex-R4/R4F</title>
<updated>2015-04-09T14:07:28+00:00</updated>
<author>
<name>Javed Absar</name>
<email>javed.absar@arm.com</email>
</author>
<published>2015-04-09T14:07:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=5c5e3c5e36aaf420aad69f0e30909b3f6bfecf10'/>
<id>5c5e3c5e36aaf420aad69f0e30909b3f6bfecf10</id>
<content type='text'>
Currently, llvm (backend) doesn't know cortex-r4, even though it is the
default target for armv7r. Using "--target=armv7r-arm-none-eabi" provokes
'cortex-r4' is not a recognized processor for this target' by llvm.
This patch adds support for cortex-r4 and, very closely related, r4f.

llvm-svn: 234486
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently, llvm (backend) doesn't know cortex-r4, even though it is the
default target for armv7r. Using "--target=armv7r-arm-none-eabi" provokes
'cortex-r4' is not a recognized processor for this target' by llvm.
This patch adds support for cortex-r4 and, very closely related, r4f.

llvm-svn: 234486
</pre>
</div>
</content>
</entry>
<entry>
<title>Cortex-R5 can issue Thumb2 integer division instructions.</title>
<updated>2013-06-04T22:52:09+00:00</updated>
<author>
<name>Evan Cheng</name>
<email>evan.cheng@apple.com</email>
</author>
<published>2013-06-04T22:52:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=4ec309700b2eb026ca33c6f9930de11e07ac6bb2'/>
<id>4ec309700b2eb026ca33c6f9930de11e07ac6bb2</id>
<content type='text'>
llvm-svn: 183275
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
llvm-svn: 183275
</pre>
</div>
</content>
</entry>
<entry>
<title>Add LLVM support for Swift.</title>
<updated>2012-09-29T21:43:49+00:00</updated>
<author>
<name>Bob Wilson</name>
<email>bob.wilson@apple.com</email>
</author>
<published>2012-09-29T21:43:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=e8a549cd92719d14845beb5aac8fc50fe2cd21db'/>
<id>e8a549cd92719d14845beb5aac8fc50fe2cd21db</id>
<content type='text'>
llvm-svn: 164899
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
llvm-svn: 164899
</pre>
</div>
</content>
</entry>
<entry>
<title>These tests are looking for library function names that</title>
<updated>2010-11-17T21:57:32+00:00</updated>
<author>
<name>Dale Johannesen</name>
<email>dalej@apple.com</email>
</author>
<published>2010-11-17T21:57:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=0659c8f157e79084211cb6c667d82226546013ca'/>
<id>0659c8f157e79084211cb6c667d82226546013ca</id>
<content type='text'>
appear to differ on Linux.  Try to make them pass on Linux.
Would be good for a Linux person to review this.

llvm-svn: 119572
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
appear to differ on Linux.  Try to make them pass on Linux.
Would be good for a Linux person to review this.

llvm-svn: 119572
</pre>
</div>
</content>
</entry>
<entry>
<title>Report error if codegen tries to instantiate a ARM target when the cpu does support it. e.g. cortex-m* processors.</title>
<updated>2010-08-11T07:17:46+00:00</updated>
<author>
<name>Evan Cheng</name>
<email>evan.cheng@apple.com</email>
</author>
<published>2010-08-11T07:17:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=5190f092911b2857fd0521f5ac993cb723262483'/>
<id>5190f092911b2857fd0521f5ac993cb723262483</id>
<content type='text'>
llvm-svn: 110798
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
llvm-svn: 110798
</pre>
</div>
</content>
</entry>
<entry>
<title>fix copy/paste oops.</title>
<updated>2010-05-05T21:07:46+00:00</updated>
<author>
<name>Jim Grosbach</name>
<email>grosbach@apple.com</email>
</author>
<published>2010-05-05T21:07:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=245b169212cb07e4ac42bc1a249e8c699e0b0ed7'/>
<id>245b169212cb07e4ac42bc1a249e8c699e0b0ed7</id>
<content type='text'>
llvm-svn: 103122
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
llvm-svn: 103122
</pre>
</div>
</content>
</entry>
</feed>
