mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-02 07:32:52 +00:00
new test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26217 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d0e58e36a9
commit
5946fef1db
@ -64,3 +64,15 @@ Number 1 is the preferred solution.
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
||||
DAG combine this into mul A, 8:
|
||||
|
||||
int %test(int %A) {
|
||||
%B = mul int %A, 8 ;; shift
|
||||
%C = add int %B, 7 ;; dead, no demanded bits.
|
||||
%D = and int %C, -8 ;; dead once add is gone.
|
||||
ret int %D
|
||||
}
|
||||
|
||||
This sort of thing occurs in the alloca lowering code and other places that
|
||||
are generating alignment of an already aligned value.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user