diff options
Diffstat (limited to 'test/CodeGen/SystemZ')
-rw-r--r-- | test/CodeGen/SystemZ/05-MemImmStores.ll | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/test/CodeGen/SystemZ/05-MemImmStores.ll b/test/CodeGen/SystemZ/05-MemImmStores.ll index b582144..1a1d2f0 100644 --- a/test/CodeGen/SystemZ/05-MemImmStores.ll +++ b/test/CodeGen/SystemZ/05-MemImmStores.ll @@ -1,7 +1,8 @@ ; RUN: llvm-as < %s | llc -mattr=+z10 | grep mvghi | count 1 ; RUN: llvm-as < %s | llc -mattr=+z10 | grep mvhi | count 1 ; RUN: llvm-as < %s | llc -mattr=+z10 | grep mvhhi | count 1 -; RUN: llvm-as < %s | llc | grep mvi | count 1 +; RUN: llvm-as < %s | llc | grep mvi | count 2 +; RUN: llvm-as < %s | llc | grep mviy | count 1 target datalayout = "E-p:64:64:64-i1:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f128:128:128" target triple = "s390x-unknown-linux-gnu" @@ -33,3 +34,17 @@ entry: store i8 4, i8* %add.ptr ret void } + +define void @foo5(i8* nocapture %a, i64 %idx) nounwind { +entry: + %add.ptr = getelementptr i8* %a, i64 -1 ; <i8*> [#uses=1] + store i8 4, i8* %add.ptr + ret void +} + +define void @foo6(i16* nocapture %a, i64 %idx) nounwind { +entry: + %add.ptr = getelementptr i16* %a, i64 -1 ; <i16*> [#uses=1] + store i16 3, i16* %add.ptr + ret void +} |