2015-02-19 19:51:32 +08:00
|
|
|
; RUN: llc -march=mipsel -mcpu=mips32r2 -mattr=+micromips \
|
|
|
|
; RUN: -relocation-model=pic -O3 < %s | FileCheck %s
|
2016-03-05 01:34:31 +08:00
|
|
|
; RUN: llc -O0 -march=mips -mcpu=mips32r2 -mattr=+micromips \
|
|
|
|
; RUN: -asm-show-inst < %s | FileCheck %s
|
2015-02-19 19:51:32 +08:00
|
|
|
|
2016-03-05 01:34:31 +08:00
|
|
|
; Branch instruction added to enable FastISel::selectOperator
|
|
|
|
; to select OR instruction
|
|
|
|
define i32 @f1(i32 signext %a, i32 signext %b) {
|
|
|
|
; CHECK-LABEL: f1
|
|
|
|
; CHECK-NOT: OR16_MMR6
|
|
|
|
%1 = or i32 %a, %b
|
|
|
|
br label %b1
|
|
|
|
b1:
|
|
|
|
ret i32 %1
|
2015-02-19 19:51:32 +08:00
|
|
|
}
|
|
|
|
|
2016-03-05 01:34:31 +08:00
|
|
|
define i32 @f2(i32 signext %a, i32 signext %b) {
|
|
|
|
entry:
|
|
|
|
; CHECK-LABEL: f2
|
2015-02-19 19:51:32 +08:00
|
|
|
; CHECK: or16
|
2016-03-05 01:34:31 +08:00
|
|
|
%0 = or i32 %a, %b
|
|
|
|
ret i32 %0
|
|
|
|
}
|