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