brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · af83e90 Raw
58 lines · plain
1; RUN: llc -mtriple=thumb-eabi %s -o - | FileCheck %s -check-prefix=V52; RUN: llc -mtriple=thumb-eabi -mattr=+v6 %s -o - | FileCheck %s -check-prefix=V63 4; rdar://71765145 6define i32 @test1(ptr %t1) nounwind {7; V5: ldrb8 9; V6: ldrb10    %tmp.u = load i8, ptr %t111    %tmp1.s = zext i8 %tmp.u to i3212    ret i32 %tmp1.s13}14 15define i32 @test2(ptr %t1) nounwind {16; V5: ldrh17 18; V6: ldrh19    %tmp.u = load i16, ptr %t120    %tmp1.s = zext i16 %tmp.u to i3221    ret i32 %tmp1.s22}23 24define i32 @test3(ptr %t0) nounwind {25; V5: ldrb26; V5: lsls27; V5: asrs28 29; V6: mov30; V6: ldrsb31    %tmp.s = load i8, ptr %t032    %tmp1.s = sext i8 %tmp.s to i3233    ret i32 %tmp1.s34}35 36define i32 @test4(ptr %t0) nounwind {37; V5: ldrh38; V5: lsls39; V5: asrs40 41; V6: mov42; V6: ldrsh43    %tmp.s = load i16, ptr %t044    %tmp1.s = sext i16 %tmp.s to i3245    ret i32 %tmp1.s46}47 48define i32 @test5() nounwind {49; V5: movs r0, #050; V5: ldrsh51 52; V6: movs r0, #053; V6: ldrsh54    %tmp.s = load i16, ptr null55    %tmp1.s = sext i16 %tmp.s to i3256    ret i32 %tmp1.s57}58