• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -march=mipsel -mcpu=mips32r2 -mattr=+micromips \
2; RUN:   -relocation-model=pic -O3 < %s | FileCheck %s
3; RUN: llc -O0 -march=mips -mcpu=mips32r2 -mattr=+micromips \
4; RUN:   -asm-show-inst < %s | FileCheck %s
5
6; Branch instruction added to enable FastISel::selectOperator
7; to select OR instruction
8define i32 @f1(i32 signext %a, i32 signext %b) {
9; CHECK-LABEL: f1
10; CHECK-NOT: OR16_MMR6
11      %1 = or i32 %a, %b
12       br label %b1
13b1:
14       ret i32 %1
15}
16
17define i32 @f2(i32 signext %a, i32 signext %b) {
18entry:
19; CHECK-LABEL: f2
20; CHECK: or16
21  %0 = or i32 %a, %b
22  ret i32 %0
23}
24