16 lines · plain
1; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 -no-integrated-as2;3; Check that TwoAddressInstructionPass does not crash after sinking (and4; revisiting) an instruction that was lowered by TII->convertToThreeAddress()5; which contains a %noreg operand.6 7define i32 @f23(i32 %old) {8 %and1 = and i32 %old, 149 %and2 = and i32 %old, 25410 %res1 = call i32 asm "stepa $1, $2, $3", "=h,r,r,0"(i32 %old, i32 %and1, i32 %and2)11 %and3 = and i32 %res1, 12712 %and4 = and i32 %res1, 12813 %res2 = call i32 asm "stepb $1, $2, $3", "=r,h,h,0"(i32 %res1, i32 %and3, i32 %and4)14 ret i32 %res215}16