diff options
Diffstat (limited to 'test/CodeGen/AArch64/arm64-fold-lsl.ll')
-rw-r--r-- | test/CodeGen/AArch64/arm64-fold-lsl.ll | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/CodeGen/AArch64/arm64-fold-lsl.ll b/test/CodeGen/AArch64/arm64-fold-lsl.ll index ec65e46..e1acd6f 100644 --- a/test/CodeGen/AArch64/arm64-fold-lsl.ll +++ b/test/CodeGen/AArch64/arm64-fold-lsl.ll @@ -13,8 +13,8 @@ define i16 @load_halfword(%struct.a* %ctx, i32 %xor72) nounwind { %shr81 = lshr i32 %xor72, 9 %conv82 = zext i32 %shr81 to i64 %idxprom83 = and i64 %conv82, 255 - %arrayidx86 = getelementptr inbounds %struct.a* %ctx, i64 0, i64 %idxprom83 - %result = load i16* %arrayidx86, align 2 + %arrayidx86 = getelementptr inbounds %struct.a, %struct.a* %ctx, i64 0, i64 %idxprom83 + %result = load i16, i16* %arrayidx86, align 2 ret i16 %result } @@ -25,8 +25,8 @@ define i32 @load_word(%struct.b* %ctx, i32 %xor72) nounwind { %shr81 = lshr i32 %xor72, 9 %conv82 = zext i32 %shr81 to i64 %idxprom83 = and i64 %conv82, 255 - %arrayidx86 = getelementptr inbounds %struct.b* %ctx, i64 0, i64 %idxprom83 - %result = load i32* %arrayidx86, align 4 + %arrayidx86 = getelementptr inbounds %struct.b, %struct.b* %ctx, i64 0, i64 %idxprom83 + %result = load i32, i32* %arrayidx86, align 4 ret i32 %result } @@ -37,8 +37,8 @@ define i64 @load_doubleword(%struct.c* %ctx, i32 %xor72) nounwind { %shr81 = lshr i32 %xor72, 9 %conv82 = zext i32 %shr81 to i64 %idxprom83 = and i64 %conv82, 255 - %arrayidx86 = getelementptr inbounds %struct.c* %ctx, i64 0, i64 %idxprom83 - %result = load i64* %arrayidx86, align 8 + %arrayidx86 = getelementptr inbounds %struct.c, %struct.c* %ctx, i64 0, i64 %idxprom83 + %result = load i64, i64* %arrayidx86, align 8 ret i64 %result } @@ -49,7 +49,7 @@ define void @store_halfword(%struct.a* %ctx, i32 %xor72, i16 %val) nounwind { %shr81 = lshr i32 %xor72, 9 %conv82 = zext i32 %shr81 to i64 %idxprom83 = and i64 %conv82, 255 - %arrayidx86 = getelementptr inbounds %struct.a* %ctx, i64 0, i64 %idxprom83 + %arrayidx86 = getelementptr inbounds %struct.a, %struct.a* %ctx, i64 0, i64 %idxprom83 store i16 %val, i16* %arrayidx86, align 8 ret void } @@ -61,7 +61,7 @@ define void @store_word(%struct.b* %ctx, i32 %xor72, i32 %val) nounwind { %shr81 = lshr i32 %xor72, 9 %conv82 = zext i32 %shr81 to i64 %idxprom83 = and i64 %conv82, 255 - %arrayidx86 = getelementptr inbounds %struct.b* %ctx, i64 0, i64 %idxprom83 + %arrayidx86 = getelementptr inbounds %struct.b, %struct.b* %ctx, i64 0, i64 %idxprom83 store i32 %val, i32* %arrayidx86, align 8 ret void } @@ -73,7 +73,7 @@ define void @store_doubleword(%struct.c* %ctx, i32 %xor72, i64 %val) nounwind { %shr81 = lshr i32 %xor72, 9 %conv82 = zext i32 %shr81 to i64 %idxprom83 = and i64 %conv82, 255 - %arrayidx86 = getelementptr inbounds %struct.c* %ctx, i64 0, i64 %idxprom83 + %arrayidx86 = getelementptr inbounds %struct.c, %struct.c* %ctx, i64 0, i64 %idxprom83 store i64 %val, i64* %arrayidx86, align 8 ret void } |