forked from OSchip/llvm-project
307 lines
9.4 KiB
Plaintext
307 lines
9.4 KiB
Plaintext
|
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
|
||
|
# RUN: llc -O0 -mtriple=mipsel-linux-gnu -run-pass=regbankselect -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=MIPS32
|
||
|
--- |
|
||
|
|
||
|
define void @eq() {entry: ret void}
|
||
|
define void @ne() {entry: ret void}
|
||
|
define void @sgt() {entry: ret void}
|
||
|
define void @sge() {entry: ret void}
|
||
|
define void @slt() {entry: ret void}
|
||
|
define void @sle() {entry: ret void}
|
||
|
define void @ugt() {entry: ret void}
|
||
|
define void @uge() {entry: ret void}
|
||
|
define void @ult() {entry: ret void}
|
||
|
define void @ule() {entry: ret void}
|
||
|
|
||
|
...
|
||
|
---
|
||
|
name: eq
|
||
|
alignment: 2
|
||
|
legalized: true
|
||
|
tracksRegLiveness: true
|
||
|
body: |
|
||
|
bb.1.entry:
|
||
|
liveins: $a0, $a1
|
||
|
|
||
|
; MIPS32-LABEL: name: eq
|
||
|
; MIPS32: liveins: $a0, $a1
|
||
|
; MIPS32: [[COPY:%[0-9]+]]:gprb(s32) = COPY $a0
|
||
|
; MIPS32: [[COPY1:%[0-9]+]]:gprb(s32) = COPY $a1
|
||
|
; MIPS32: [[ICMP:%[0-9]+]]:gprb(s32) = G_ICMP intpred(eq), [[COPY]](s32), [[COPY1]]
|
||
|
; MIPS32: [[C:%[0-9]+]]:gprb(s32) = G_CONSTANT i32 1
|
||
|
; MIPS32: [[COPY2:%[0-9]+]]:gprb(s32) = COPY [[ICMP]](s32)
|
||
|
; MIPS32: [[AND:%[0-9]+]]:gprb(s32) = G_AND [[COPY2]], [[C]]
|
||
|
; MIPS32: $v0 = COPY [[AND]](s32)
|
||
|
; MIPS32: RetRA implicit $v0
|
||
|
%0:_(s32) = COPY $a0
|
||
|
%1:_(s32) = COPY $a1
|
||
|
%4:_(s32) = G_ICMP intpred(eq), %0(s32), %1
|
||
|
%5:_(s32) = G_CONSTANT i32 1
|
||
|
%6:_(s32) = COPY %4(s32)
|
||
|
%3:_(s32) = G_AND %6, %5
|
||
|
$v0 = COPY %3(s32)
|
||
|
RetRA implicit $v0
|
||
|
|
||
|
...
|
||
|
---
|
||
|
name: ne
|
||
|
alignment: 2
|
||
|
legalized: true
|
||
|
tracksRegLiveness: true
|
||
|
body: |
|
||
|
bb.1.entry:
|
||
|
liveins: $a0, $a1
|
||
|
|
||
|
; MIPS32-LABEL: name: ne
|
||
|
; MIPS32: liveins: $a0, $a1
|
||
|
; MIPS32: [[COPY:%[0-9]+]]:gprb(s32) = COPY $a0
|
||
|
; MIPS32: [[COPY1:%[0-9]+]]:gprb(s32) = COPY $a1
|
||
|
; MIPS32: [[ICMP:%[0-9]+]]:gprb(s32) = G_ICMP intpred(ne), [[COPY]](s32), [[COPY1]]
|
||
|
; MIPS32: [[C:%[0-9]+]]:gprb(s32) = G_CONSTANT i32 1
|
||
|
; MIPS32: [[COPY2:%[0-9]+]]:gprb(s32) = COPY [[ICMP]](s32)
|
||
|
; MIPS32: [[AND:%[0-9]+]]:gprb(s32) = G_AND [[COPY2]], [[C]]
|
||
|
; MIPS32: $v0 = COPY [[AND]](s32)
|
||
|
; MIPS32: RetRA implicit $v0
|
||
|
%0:_(s32) = COPY $a0
|
||
|
%1:_(s32) = COPY $a1
|
||
|
%4:_(s32) = G_ICMP intpred(ne), %0(s32), %1
|
||
|
%5:_(s32) = G_CONSTANT i32 1
|
||
|
%6:_(s32) = COPY %4(s32)
|
||
|
%3:_(s32) = G_AND %6, %5
|
||
|
$v0 = COPY %3(s32)
|
||
|
RetRA implicit $v0
|
||
|
|
||
|
...
|
||
|
---
|
||
|
name: sgt
|
||
|
alignment: 2
|
||
|
legalized: true
|
||
|
tracksRegLiveness: true
|
||
|
body: |
|
||
|
bb.1.entry:
|
||
|
liveins: $a0, $a1
|
||
|
|
||
|
; MIPS32-LABEL: name: sgt
|
||
|
; MIPS32: liveins: $a0, $a1
|
||
|
; MIPS32: [[COPY:%[0-9]+]]:gprb(s32) = COPY $a0
|
||
|
; MIPS32: [[COPY1:%[0-9]+]]:gprb(s32) = COPY $a1
|
||
|
; MIPS32: [[ICMP:%[0-9]+]]:gprb(s32) = G_ICMP intpred(sgt), [[COPY]](s32), [[COPY1]]
|
||
|
; MIPS32: [[C:%[0-9]+]]:gprb(s32) = G_CONSTANT i32 1
|
||
|
; MIPS32: [[COPY2:%[0-9]+]]:gprb(s32) = COPY [[ICMP]](s32)
|
||
|
; MIPS32: [[AND:%[0-9]+]]:gprb(s32) = G_AND [[COPY2]], [[C]]
|
||
|
; MIPS32: $v0 = COPY [[AND]](s32)
|
||
|
; MIPS32: RetRA implicit $v0
|
||
|
%0:_(s32) = COPY $a0
|
||
|
%1:_(s32) = COPY $a1
|
||
|
%4:_(s32) = G_ICMP intpred(sgt), %0(s32), %1
|
||
|
%5:_(s32) = G_CONSTANT i32 1
|
||
|
%6:_(s32) = COPY %4(s32)
|
||
|
%3:_(s32) = G_AND %6, %5
|
||
|
$v0 = COPY %3(s32)
|
||
|
RetRA implicit $v0
|
||
|
|
||
|
...
|
||
|
---
|
||
|
name: sge
|
||
|
alignment: 2
|
||
|
legalized: true
|
||
|
tracksRegLiveness: true
|
||
|
body: |
|
||
|
bb.1.entry:
|
||
|
liveins: $a0, $a1
|
||
|
|
||
|
; MIPS32-LABEL: name: sge
|
||
|
; MIPS32: liveins: $a0, $a1
|
||
|
; MIPS32: [[COPY:%[0-9]+]]:gprb(s32) = COPY $a0
|
||
|
; MIPS32: [[COPY1:%[0-9]+]]:gprb(s32) = COPY $a1
|
||
|
; MIPS32: [[ICMP:%[0-9]+]]:gprb(s32) = G_ICMP intpred(sge), [[COPY]](s32), [[COPY1]]
|
||
|
; MIPS32: [[C:%[0-9]+]]:gprb(s32) = G_CONSTANT i32 1
|
||
|
; MIPS32: [[COPY2:%[0-9]+]]:gprb(s32) = COPY [[ICMP]](s32)
|
||
|
; MIPS32: [[AND:%[0-9]+]]:gprb(s32) = G_AND [[COPY2]], [[C]]
|
||
|
; MIPS32: $v0 = COPY [[AND]](s32)
|
||
|
; MIPS32: RetRA implicit $v0
|
||
|
%0:_(s32) = COPY $a0
|
||
|
%1:_(s32) = COPY $a1
|
||
|
%4:_(s32) = G_ICMP intpred(sge), %0(s32), %1
|
||
|
%5:_(s32) = G_CONSTANT i32 1
|
||
|
%6:_(s32) = COPY %4(s32)
|
||
|
%3:_(s32) = G_AND %6, %5
|
||
|
$v0 = COPY %3(s32)
|
||
|
RetRA implicit $v0
|
||
|
|
||
|
...
|
||
|
---
|
||
|
name: slt
|
||
|
alignment: 2
|
||
|
legalized: true
|
||
|
tracksRegLiveness: true
|
||
|
body: |
|
||
|
bb.1.entry:
|
||
|
liveins: $a0, $a1
|
||
|
|
||
|
; MIPS32-LABEL: name: slt
|
||
|
; MIPS32: liveins: $a0, $a1
|
||
|
; MIPS32: [[COPY:%[0-9]+]]:gprb(s32) = COPY $a0
|
||
|
; MIPS32: [[COPY1:%[0-9]+]]:gprb(s32) = COPY $a1
|
||
|
; MIPS32: [[ICMP:%[0-9]+]]:gprb(s32) = G_ICMP intpred(slt), [[COPY]](s32), [[COPY1]]
|
||
|
; MIPS32: [[C:%[0-9]+]]:gprb(s32) = G_CONSTANT i32 1
|
||
|
; MIPS32: [[COPY2:%[0-9]+]]:gprb(s32) = COPY [[ICMP]](s32)
|
||
|
; MIPS32: [[AND:%[0-9]+]]:gprb(s32) = G_AND [[COPY2]], [[C]]
|
||
|
; MIPS32: $v0 = COPY [[AND]](s32)
|
||
|
; MIPS32: RetRA implicit $v0
|
||
|
%0:_(s32) = COPY $a0
|
||
|
%1:_(s32) = COPY $a1
|
||
|
%4:_(s32) = G_ICMP intpred(slt), %0(s32), %1
|
||
|
%5:_(s32) = G_CONSTANT i32 1
|
||
|
%6:_(s32) = COPY %4(s32)
|
||
|
%3:_(s32) = G_AND %6, %5
|
||
|
$v0 = COPY %3(s32)
|
||
|
RetRA implicit $v0
|
||
|
|
||
|
...
|
||
|
---
|
||
|
name: sle
|
||
|
alignment: 2
|
||
|
legalized: true
|
||
|
tracksRegLiveness: true
|
||
|
body: |
|
||
|
bb.1.entry:
|
||
|
liveins: $a0, $a1
|
||
|
|
||
|
; MIPS32-LABEL: name: sle
|
||
|
; MIPS32: liveins: $a0, $a1
|
||
|
; MIPS32: [[COPY:%[0-9]+]]:gprb(s32) = COPY $a0
|
||
|
; MIPS32: [[COPY1:%[0-9]+]]:gprb(s32) = COPY $a1
|
||
|
; MIPS32: [[ICMP:%[0-9]+]]:gprb(s32) = G_ICMP intpred(sle), [[COPY]](s32), [[COPY1]]
|
||
|
; MIPS32: [[C:%[0-9]+]]:gprb(s32) = G_CONSTANT i32 1
|
||
|
; MIPS32: [[COPY2:%[0-9]+]]:gprb(s32) = COPY [[ICMP]](s32)
|
||
|
; MIPS32: [[AND:%[0-9]+]]:gprb(s32) = G_AND [[COPY2]], [[C]]
|
||
|
; MIPS32: $v0 = COPY [[AND]](s32)
|
||
|
; MIPS32: RetRA implicit $v0
|
||
|
%0:_(s32) = COPY $a0
|
||
|
%1:_(s32) = COPY $a1
|
||
|
%4:_(s32) = G_ICMP intpred(sle), %0(s32), %1
|
||
|
%5:_(s32) = G_CONSTANT i32 1
|
||
|
%6:_(s32) = COPY %4(s32)
|
||
|
%3:_(s32) = G_AND %6, %5
|
||
|
$v0 = COPY %3(s32)
|
||
|
RetRA implicit $v0
|
||
|
|
||
|
...
|
||
|
---
|
||
|
name: ugt
|
||
|
alignment: 2
|
||
|
legalized: true
|
||
|
tracksRegLiveness: true
|
||
|
body: |
|
||
|
bb.1.entry:
|
||
|
liveins: $a0, $a1
|
||
|
|
||
|
; MIPS32-LABEL: name: ugt
|
||
|
; MIPS32: liveins: $a0, $a1
|
||
|
; MIPS32: [[COPY:%[0-9]+]]:gprb(s32) = COPY $a0
|
||
|
; MIPS32: [[COPY1:%[0-9]+]]:gprb(s32) = COPY $a1
|
||
|
; MIPS32: [[ICMP:%[0-9]+]]:gprb(s32) = G_ICMP intpred(ugt), [[COPY]](s32), [[COPY1]]
|
||
|
; MIPS32: [[C:%[0-9]+]]:gprb(s32) = G_CONSTANT i32 1
|
||
|
; MIPS32: [[COPY2:%[0-9]+]]:gprb(s32) = COPY [[ICMP]](s32)
|
||
|
; MIPS32: [[AND:%[0-9]+]]:gprb(s32) = G_AND [[COPY2]], [[C]]
|
||
|
; MIPS32: $v0 = COPY [[AND]](s32)
|
||
|
; MIPS32: RetRA implicit $v0
|
||
|
%0:_(s32) = COPY $a0
|
||
|
%1:_(s32) = COPY $a1
|
||
|
%4:_(s32) = G_ICMP intpred(ugt), %0(s32), %1
|
||
|
%5:_(s32) = G_CONSTANT i32 1
|
||
|
%6:_(s32) = COPY %4(s32)
|
||
|
%3:_(s32) = G_AND %6, %5
|
||
|
$v0 = COPY %3(s32)
|
||
|
RetRA implicit $v0
|
||
|
|
||
|
...
|
||
|
---
|
||
|
name: uge
|
||
|
alignment: 2
|
||
|
legalized: true
|
||
|
tracksRegLiveness: true
|
||
|
body: |
|
||
|
bb.1.entry:
|
||
|
liveins: $a0, $a1
|
||
|
|
||
|
; MIPS32-LABEL: name: uge
|
||
|
; MIPS32: liveins: $a0, $a1
|
||
|
; MIPS32: [[COPY:%[0-9]+]]:gprb(s32) = COPY $a0
|
||
|
; MIPS32: [[COPY1:%[0-9]+]]:gprb(s32) = COPY $a1
|
||
|
; MIPS32: [[ICMP:%[0-9]+]]:gprb(s32) = G_ICMP intpred(uge), [[COPY]](s32), [[COPY1]]
|
||
|
; MIPS32: [[C:%[0-9]+]]:gprb(s32) = G_CONSTANT i32 1
|
||
|
; MIPS32: [[COPY2:%[0-9]+]]:gprb(s32) = COPY [[ICMP]](s32)
|
||
|
; MIPS32: [[AND:%[0-9]+]]:gprb(s32) = G_AND [[COPY2]], [[C]]
|
||
|
; MIPS32: $v0 = COPY [[AND]](s32)
|
||
|
; MIPS32: RetRA implicit $v0
|
||
|
%0:_(s32) = COPY $a0
|
||
|
%1:_(s32) = COPY $a1
|
||
|
%4:_(s32) = G_ICMP intpred(uge), %0(s32), %1
|
||
|
%5:_(s32) = G_CONSTANT i32 1
|
||
|
%6:_(s32) = COPY %4(s32)
|
||
|
%3:_(s32) = G_AND %6, %5
|
||
|
$v0 = COPY %3(s32)
|
||
|
RetRA implicit $v0
|
||
|
|
||
|
...
|
||
|
---
|
||
|
name: ult
|
||
|
alignment: 2
|
||
|
legalized: true
|
||
|
tracksRegLiveness: true
|
||
|
body: |
|
||
|
bb.1.entry:
|
||
|
liveins: $a0, $a1
|
||
|
|
||
|
; MIPS32-LABEL: name: ult
|
||
|
; MIPS32: liveins: $a0, $a1
|
||
|
; MIPS32: [[COPY:%[0-9]+]]:gprb(s32) = COPY $a0
|
||
|
; MIPS32: [[COPY1:%[0-9]+]]:gprb(s32) = COPY $a1
|
||
|
; MIPS32: [[ICMP:%[0-9]+]]:gprb(s32) = G_ICMP intpred(ult), [[COPY]](s32), [[COPY1]]
|
||
|
; MIPS32: [[C:%[0-9]+]]:gprb(s32) = G_CONSTANT i32 1
|
||
|
; MIPS32: [[COPY2:%[0-9]+]]:gprb(s32) = COPY [[ICMP]](s32)
|
||
|
; MIPS32: [[AND:%[0-9]+]]:gprb(s32) = G_AND [[COPY2]], [[C]]
|
||
|
; MIPS32: $v0 = COPY [[AND]](s32)
|
||
|
; MIPS32: RetRA implicit $v0
|
||
|
%0:_(s32) = COPY $a0
|
||
|
%1:_(s32) = COPY $a1
|
||
|
%4:_(s32) = G_ICMP intpred(ult), %0(s32), %1
|
||
|
%5:_(s32) = G_CONSTANT i32 1
|
||
|
%6:_(s32) = COPY %4(s32)
|
||
|
%3:_(s32) = G_AND %6, %5
|
||
|
$v0 = COPY %3(s32)
|
||
|
RetRA implicit $v0
|
||
|
|
||
|
...
|
||
|
---
|
||
|
name: ule
|
||
|
alignment: 2
|
||
|
legalized: true
|
||
|
tracksRegLiveness: true
|
||
|
body: |
|
||
|
bb.1.entry:
|
||
|
liveins: $a0, $a1
|
||
|
|
||
|
; MIPS32-LABEL: name: ule
|
||
|
; MIPS32: liveins: $a0, $a1
|
||
|
; MIPS32: [[COPY:%[0-9]+]]:gprb(s32) = COPY $a0
|
||
|
; MIPS32: [[COPY1:%[0-9]+]]:gprb(s32) = COPY $a1
|
||
|
; MIPS32: [[ICMP:%[0-9]+]]:gprb(s32) = G_ICMP intpred(ule), [[COPY]](s32), [[COPY1]]
|
||
|
; MIPS32: [[C:%[0-9]+]]:gprb(s32) = G_CONSTANT i32 1
|
||
|
; MIPS32: [[COPY2:%[0-9]+]]:gprb(s32) = COPY [[ICMP]](s32)
|
||
|
; MIPS32: [[AND:%[0-9]+]]:gprb(s32) = G_AND [[COPY2]], [[C]]
|
||
|
; MIPS32: $v0 = COPY [[AND]](s32)
|
||
|
; MIPS32: RetRA implicit $v0
|
||
|
%0:_(s32) = COPY $a0
|
||
|
%1:_(s32) = COPY $a1
|
||
|
%4:_(s32) = G_ICMP intpred(ule), %0(s32), %1
|
||
|
%5:_(s32) = G_CONSTANT i32 1
|
||
|
%6:_(s32) = COPY %4(s32)
|
||
|
%3:_(s32) = G_AND %6, %5
|
||
|
$v0 = COPY %3(s32)
|
||
|
RetRA implicit $v0
|
||
|
|
||
|
...
|