]> granicus.if.org Git - llvm/commit
[NFC][X86][AArch64] Shift amount masking: tests that show that 'neg' doesn't last
authorRoman Lebedev <lebedev.ri@gmail.com>
Tue, 21 May 2019 13:04:56 +0000 (13:04 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Tue, 21 May 2019 13:04:56 +0000 (13:04 +0000)
commitfc3b7edb57b9dc06c5659eb24dc58cda6a443a2f
treefc5d53e1453560bf4d4a02fdd319713b1ba91156
parent26283f4ee96639469ab65b0f541a33472d0cd238
[NFC][X86][AArch64] Shift amount masking: tests that show that 'neg' doesn't last

Meaning if we were to produce 'neg' in dagcombine, we will get an
endless cycle; some inverse transform would need to be guarded somehow.

Also, the 'and (sub 0, x), 31' variant is sticky,
doesn't get optimized in any way.

https://bugs.llvm.org/show_bug.cgi?id=41952

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361254 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/AArch64/shift-amount-mod.ll
test/CodeGen/X86/shift-amount-mod.ll