brintos

brintos / llvm-project-archived public Read only

0
0
Text · 686 B · 5aaf15f Raw
29 lines · plain
1; RUN: llc -mtriple=arm-eabi %s -o - | FileCheck %s2 3	%struct.A = type { i8, i8, i8, i8, i16, i8, i8, ptr }4	%struct.B = type { float, float, i32, i32, i32, [0 x i8] }5 6define i8 @f1(ptr %d) {7	%tmp2 = getelementptr %struct.A, ptr %d, i32 0, i32 48	%tmp4 = load i32, ptr %tmp29	%tmp512 = lshr i32 %tmp4, 2410	%tmp56 = trunc i32 %tmp512 to i811	ret i8 %tmp5612}13 14define i32 @f2(ptr %d) {15	%tmp2 = getelementptr %struct.A, ptr %d, i32 0, i32 416	%tmp4 = load i32, ptr %tmp217	%tmp512 = lshr i32 %tmp4, 2418	%tmp56 = trunc i32 %tmp512 to i819        %tmp57 = sext i8 %tmp56 to i3220	ret i32 %tmp5721}22 23; CHECK: ldrb{{.*}}724; CHECK-NOT: ldrb{{.*}}725 26; CHECK: ldrsb{{.*}}727; CHECK-NOT: ldrsb{{.*}}728 29