Mercurial > hg > Members > tobaru > cbc > CbC_llvm
diff test/CodeGen/MSP430/AddrMode-mov-xr.ll @ 95:afa8332a0e37
LLVM 3.8
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 13 Oct 2015 17:48:58 +0900 |
parents | 95c75e76d11b |
children | 803732b1fca8 |
line wrap: on
line diff
--- a/test/CodeGen/MSP430/AddrMode-mov-xr.ll Wed Feb 18 14:56:07 2015 +0900 +++ b/test/CodeGen/MSP430/AddrMode-mov-xr.ll Tue Oct 13 17:48:58 2015 +0900 @@ -21,7 +21,7 @@ @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 @@ ; 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 @@ @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 @@ @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 }