mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Changes to support making the shift instructions be true BinaryOperators.
This feature is needed in order to support shifts of more than 255 bits on large integer types. This changes the syntax for llvm assembly to make shl, ashr and lshr instructions look like a binary operator: shl i32 %X, 1 instead of shl i32 %X, i8 1 Additionally, this should help a few passes perform additional optimizations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33776 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -19,13 +19,13 @@ cond_next489: ; preds = %cond_false, %bb471
|
||||
%tmp502 = load i32* null ; <i32> [#uses=1]
|
||||
%tmp542 = getelementptr [6 x [4 x [4 x i32]]]* @quant_coef, i32 0, i32 0, i32 %i.8, i32 %j.7 ; <i32*> [#uses=1]
|
||||
%tmp543 = load i32* %tmp542 ; <i32> [#uses=1]
|
||||
%tmp548 = ashr i32 0, i8 0 ; <i32> [#uses=3]
|
||||
%tmp548 = ashr i32 0, 0 ; <i32> [#uses=3]
|
||||
%tmp561 = sub i32 0, %tmp496 ; <i32> [#uses=3]
|
||||
%abscond563 = icmp sgt i32 %tmp561, -1 ; <i1> [#uses=1]
|
||||
%abs564 = select i1 %abscond563, i32 %tmp561, i32 0 ; <i32> [#uses=1]
|
||||
%tmp572 = mul i32 %abs564, %tmp543 ; <i32> [#uses=1]
|
||||
%tmp574 = add i32 %tmp572, 0 ; <i32> [#uses=1]
|
||||
%tmp576 = ashr i32 %tmp574, i8 0 ; <i32> [#uses=7]
|
||||
%tmp576 = ashr i32 %tmp574, 0 ; <i32> [#uses=7]
|
||||
%tmp579 = icmp eq i32 %tmp548, %tmp576 ; <i1> [#uses=1]
|
||||
br i1 %tmp579, label %bb712, label %cond_next589
|
||||
|
||||
@@ -40,8 +40,8 @@ cond_next589: ; preds = %cond_next489
|
||||
%tmp642 = call fastcc i32 @sign( i32 %tmp576, i32 %tmp561 ) ; <i32> [#uses=1]
|
||||
%tmp650 = mul i32 %tmp606, %tmp642 ; <i32> [#uses=1]
|
||||
%tmp656 = mul i32 %tmp650, %tmp612 ; <i32> [#uses=1]
|
||||
%tmp658 = shl i32 %tmp656, i8 0 ; <i32> [#uses=1]
|
||||
%tmp659 = ashr i32 %tmp658, i8 6 ; <i32> [#uses=1]
|
||||
%tmp658 = shl i32 %tmp656, 0 ; <i32> [#uses=1]
|
||||
%tmp659 = ashr i32 %tmp658, 6 ; <i32> [#uses=1]
|
||||
%tmp660 = sub i32 0, %tmp659 ; <i32> [#uses=1]
|
||||
%tmp666 = sub i32 %tmp660, %tmp496 ; <i32> [#uses=1]
|
||||
%tmp667 = sitofp i32 %tmp666 to double ; <double> [#uses=2]
|
||||
@@ -85,8 +85,8 @@ cond_true740: ; preds = %bb737
|
||||
%tmp786 = load i32* %tmp785 ; <i32> [#uses=1]
|
||||
%tmp781 = mul i32 %tmp780, %tmp761 ; <i32> [#uses=1]
|
||||
%tmp787 = mul i32 %tmp781, %tmp786 ; <i32> [#uses=1]
|
||||
%tmp789 = shl i32 %tmp787, i8 0 ; <i32> [#uses=1]
|
||||
%tmp790 = ashr i32 %tmp789, i8 6 ; <i32> [#uses=1]
|
||||
%tmp789 = shl i32 %tmp787, 0 ; <i32> [#uses=1]
|
||||
%tmp790 = ashr i32 %tmp789, 6 ; <i32> [#uses=1]
|
||||
br label %cond_next791
|
||||
|
||||
cond_next791: ; preds = %cond_true740, %bb737
|
||||
|
Reference in New Issue
Block a user