diff options
Diffstat (limited to 'test/CodeGen/MSP430/AddrMode-mov-xr.ll')
-rw-r--r-- | test/CodeGen/MSP430/AddrMode-mov-xr.ll | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/CodeGen/MSP430/AddrMode-mov-xr.ll b/test/CodeGen/MSP430/AddrMode-mov-xr.ll index f55fd54..ccb4288 100644 --- a/test/CodeGen/MSP430/AddrMode-mov-xr.ll +++ b/test/CodeGen/MSP430/AddrMode-mov-xr.ll @@ -21,7 +21,7 @@ define void @am2(i16 %a) nounwind { @bar = external global [2 x i8] define void @am3(i16 %i, i8 %a) nounwind { - %1 = getelementptr [2 x i8]* @bar, i16 0, i16 %i + %1 = getelementptr [2 x i8], [2 x i8]* @bar, i16 0, i16 %i store i8 %a, i8* %1 ret void } @@ -36,7 +36,7 @@ define void @am4(i16 %a) nounwind { ; CHECK: mov.w r15, &32 define void @am5(i16* nocapture %p, i16 %a) nounwind readonly { - %1 = getelementptr inbounds i16* %p, i16 2 + %1 = getelementptr inbounds i16, i16* %p, i16 2 store i16 %a, i16* %1 ret void } @@ -47,7 +47,7 @@ define void @am5(i16* nocapture %p, i16 %a) nounwind readonly { @baz = common global %S zeroinitializer, align 1 define void @am6(i16 %a) nounwind { - store i16 %a, i16* getelementptr (%S* @baz, i32 0, i32 1) + store i16 %a, i16* getelementptr (%S, %S* @baz, i32 0, i32 1) ret void } ; CHECK-LABEL: am6: @@ -57,8 +57,8 @@ define void @am6(i16 %a) nounwind { @duh = external global %T define void @am7(i16 %n, i8 %a) nounwind { - %1 = getelementptr %T* @duh, i32 0, i32 1 - %2 = getelementptr [2 x i8]* %1, i16 0, i16 %n + %1 = getelementptr %T, %T* @duh, i32 0, i32 1 + %2 = getelementptr [2 x i8], [2 x i8]* %1, i16 0, i16 %n store i8 %a, i8* %2 ret void } |