1 ; RUN: llc -mtriple=arm-eabi %s -o - | FileCheck %s
3 define void @test1(ptr %X, ptr %A, ptr %dest) {
4 %B = load i32, ptr %A ; <i32> [#uses=1]
5 %Y = getelementptr i32, ptr %X, i32 4 ; <ptr> [#uses=2]
7 store ptr %Y, ptr %dest
11 define ptr @test2(ptr %X, ptr %A) {
12 %B = load i32, ptr %A ; <i32> [#uses=1]
13 %Y = getelementptr i16, ptr %X, i32 4 ; <ptr> [#uses=2]
14 %tmp = trunc i32 %B to i16 ; <i16> [#uses=1]
15 store i16 %tmp, ptr %Y
21 ; CHECK-NOT: str{{.*}}!