1*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=mipsel -mcpu=mips32r2 -mattr=+micromips \ 2*9880d681SAndroid Build Coastguard Worker; RUN: -relocation-model=static -O2 < %s | FileCheck %s 3*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=mipsel -mcpu=mips32r6 -mattr=+micromips \ 4*9880d681SAndroid Build Coastguard Worker; RUN: -relocation-model=static -O2 < %s | FileCheck %s -check-prefix=CHECK-MMR6 5*9880d681SAndroid Build Coastguard Worker 6*9880d681SAndroid Build Coastguard Worker; Function Attrs: nounwind 7*9880d681SAndroid Build Coastguard Workerdefine i32 @foo(i32 signext %a) #0 { 8*9880d681SAndroid Build Coastguard Workerentry: 9*9880d681SAndroid Build Coastguard Worker %a.addr = alloca i32, align 4 10*9880d681SAndroid Build Coastguard Worker store i32 %a, i32* %a.addr, align 4 11*9880d681SAndroid Build Coastguard Worker %0 = load i32, i32* %a.addr, align 4 12*9880d681SAndroid Build Coastguard Worker %shl = shl i32 %0, 2 13*9880d681SAndroid Build Coastguard Worker %call = call i32 @bar(i32 signext %shl) 14*9880d681SAndroid Build Coastguard Worker ret i32 %call 15*9880d681SAndroid Build Coastguard Worker} 16*9880d681SAndroid Build Coastguard Worker 17*9880d681SAndroid Build Coastguard Workerdeclare i32 @bar(i32 signext) #1 18*9880d681SAndroid Build Coastguard Worker 19*9880d681SAndroid Build Coastguard Worker; CHECK: jals 20*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: sll16 21*9880d681SAndroid Build Coastguard Worker; CHECK-MMR6: jal 22*9880d681SAndroid Build Coastguard Worker; CHECK-MMR6-NOT: sll16 23