brintos

brintos / llvm-project-archived public Read only

0
0
Text · 681 B · e5c6660 Raw
25 lines · plain
1; RUN: llc  < %s -mtriple=mips -mcpu=mips32r2 | FileCheck %s -check-prefix=32R22; RUN: llc  < %s -mtriple=mips -mattr=mips16 | FileCheck %s -check-prefix=163 4define i32 @ext0_5_9(i32 %s, i32 %pos, i32 %sz) nounwind readnone {5entry:6; 32R2: ext ${{[0-9]+}}, $4, 5, 97; 16-NOT: ext ${{[0-9]+}}8  %shr = lshr i32 %s, 59  %and = and i32 %shr, 51110  ret i32 %and11}12 13define void @ins2_5_9(i32 %s, ptr nocapture %d) nounwind {14entry:15; 32R2: ins ${{[0-9]+}}, $4, 5, 916; 16-NOT: ins ${{[0-9]+}}17  %and = shl i32 %s, 518  %shl = and i32 %and, 1635219  %tmp3 = load i32, ptr %d, align 420  %and5 = and i32 %tmp3, -1635321  %or = or i32 %and5, %shl22  store i32 %or, ptr %d, align 423  ret void24}25