1 ; RUN: llc -mtriple=arm-eabi %s -o - | FileCheck %s 2 3 define i32 @f1(i8* %p) { 4 entry: 5 %tmp = load i8, i8* %p ; <i8> [#uses=1] 6 %tmp1 = sext i8 %tmp to i32 ; <i32> [#uses=1] 7 ret i32 %tmp1 8 } 9 10 define i32 @f2(i8* %p) { 11 entry: 12 %tmp = load i8, i8* %p ; <i8> [#uses=1] 13 %tmp2 = zext i8 %tmp to i32 ; <i32> [#uses=1] 14 ret i32 %tmp2 15 } 16 17 define i32 @f3(i16* %p) { 18 entry: 19 %tmp = load i16, i16* %p ; <i16> [#uses=1] 20 %tmp3 = sext i16 %tmp to i32 ; <i32> [#uses=1] 21 ret i32 %tmp3 22 } 23 24 define i32 @f4(i16* %p) { 25 entry: 26 %tmp = load i16, i16* %p ; <i16> [#uses=1] 27 %tmp4 = zext i16 %tmp to i32 ; <i32> [#uses=1] 28 ret i32 %tmp4 29 } 30 31 ; CHECK: ldrsb 32 ; CHECK: ldrb 33 ; CHECK: ldrsh 34 ; CHECK: ldrh 35 36