blob: ae2c53884ef7365c339cb22a3387ea3122c07ccf [file] [log] [blame]
Jozef Kolek5d171fc2015-02-19 11:51:32 +00001; RUN: llc -march=mipsel -mcpu=mips32r2 -mattr=+micromips \
2; RUN: -relocation-model=pic -O3 < %s | FileCheck %s
Zoran Jovanovica68b67d2016-03-04 17:34:31 +00003; RUN: llc -O0 -march=mips -mcpu=mips32r2 -mattr=+micromips \
4; RUN: -asm-show-inst < %s | FileCheck %s
Jozef Kolek5d171fc2015-02-19 11:51:32 +00005
Zoran Jovanovica68b67d2016-03-04 17:34:31 +00006; 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
Jozef Kolek5d171fc2015-02-19 11:51:32 +000015}
16
Zoran Jovanovica68b67d2016-03-04 17:34:31 +000017define i32 @f2(i32 signext %a, i32 signext %b) {
18entry:
19; CHECK-LABEL: f2
Jozef Kolek5d171fc2015-02-19 11:51:32 +000020; CHECK: or16
Zoran Jovanovica68b67d2016-03-04 17:34:31 +000021 %0 = or i32 %a, %b
22 ret i32 %0
23}