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