1 ; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z13 -no-integrated-as
3 ; Check that TwoAddressInstructionPass does not crash after sinking (and
4 ; revisiting) an instruction that was lowered by TII->convertToThreeAddress()
5 ; which contains a %noreg operand.
7 define i32 @f23(i32 %old) {
8 %and1 = and i32 %old, 14
9 %and2 = and i32 %old, 254
10 %res1 = call i32 asm "stepa $1, $2, $3", "=h,r,r,0"(i32 %old, i32 %and1, i32 %and2)
11 %and3 = and i32 %res1, 127
12 %and4 = and i32 %res1, 128
13 %res2 = call i32 asm "stepb $1, $2, $3", "=r,h,h,0"(i32 %res1, i32 %and3, i32 %and4)