brintos

brintos / llvm-project-archived public Read only

0
0
Text · 409 B · c9344c8 Raw
20 lines · plain
1; RUN: llc -mtriple=thumb-eabi -mcpu=arm1156t2-s -mattr=+thumb2 %s -o - | FileCheck %s2 3define i1 @test1(i64 %poscnt, i32 %work) {4entry:5; CHECK: lsrs.w r1, r1, #16; CHECK: rrx r0, r07	%0 = lshr i64 %poscnt, 18	%1 = icmp eq i64 %0, 09	ret i1 %110}11 12define i1 @test2(i64 %poscnt, i32 %work) {13entry:14; CHECK: asrs.w r1, r1, #115; CHECK: rrx r0, r016	%0 = ashr i64 %poscnt, 117	%1 = icmp eq i64 %0, 018	ret i1 %119}20