OSDN Git Service

[MIPS GlobalISel] Select global address
[android-x86/external-llvm.git] / test / CodeGen / Mips / micromips-or16.ll
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
8 define 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
13 b1:
14        ret i32 %1
15 }
16
17 define i32 @f2(i32 signext %a, i32 signext %b) {
18 entry:
19 ; CHECK-LABEL: f2
20 ; CHECK: or16
21   %0 = or i32 %a, %b
22   ret i32 %0
23 }