forked from OSchip/llvm-project
1339 lines
44 KiB
YAML
1339 lines
44 KiB
YAML
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
|
|
# RUN: llc -O0 -mtriple arm-- -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s
|
|
--- |
|
|
define void @test_icmp_eq_s32() { ret void }
|
|
define void @test_icmp_ne_s32() { ret void }
|
|
define void @test_icmp_ugt_s32() { ret void }
|
|
define void @test_icmp_uge_s32() { ret void }
|
|
define void @test_icmp_ult_s32() { ret void }
|
|
define void @test_icmp_ule_s32() { ret void }
|
|
define void @test_icmp_sgt_s32() { ret void }
|
|
define void @test_icmp_sge_s32() { ret void }
|
|
define void @test_icmp_slt_s32() { ret void }
|
|
define void @test_icmp_sle_s32() { ret void }
|
|
|
|
define void @test_fcmp_true_s32() #0 { ret void }
|
|
define void @test_fcmp_false_s32() #0 { ret void }
|
|
|
|
define void @test_fcmp_oeq_s32() #0 { ret void }
|
|
define void @test_fcmp_ogt_s32() #0 { ret void }
|
|
define void @test_fcmp_oge_s32() #0 { ret void }
|
|
define void @test_fcmp_olt_s32() #0 { ret void }
|
|
define void @test_fcmp_ole_s32() #0 { ret void }
|
|
define void @test_fcmp_ord_s32() #0 { ret void }
|
|
define void @test_fcmp_ugt_s32() #0 { ret void }
|
|
define void @test_fcmp_uge_s32() #0 { ret void }
|
|
define void @test_fcmp_ult_s32() #0 { ret void }
|
|
define void @test_fcmp_ule_s32() #0 { ret void }
|
|
define void @test_fcmp_une_s32() #0 { ret void }
|
|
define void @test_fcmp_uno_s32() #0 { ret void }
|
|
|
|
define void @test_fcmp_one_s32() #0 { ret void }
|
|
define void @test_fcmp_ueq_s32() #0 { ret void }
|
|
|
|
define void @test_fcmp_true_s64() #0 { ret void }
|
|
define void @test_fcmp_false_s64() #0 { ret void }
|
|
|
|
define void @test_fcmp_oeq_s64() #0 { ret void }
|
|
define void @test_fcmp_ogt_s64() #0 { ret void }
|
|
define void @test_fcmp_oge_s64() #0 { ret void }
|
|
define void @test_fcmp_olt_s64() #0 { ret void }
|
|
define void @test_fcmp_ole_s64() #0 { ret void }
|
|
define void @test_fcmp_ord_s64() #0 { ret void }
|
|
define void @test_fcmp_ugt_s64() #0 { ret void }
|
|
define void @test_fcmp_uge_s64() #0 { ret void }
|
|
define void @test_fcmp_ult_s64() #0 { ret void }
|
|
define void @test_fcmp_ule_s64() #0 { ret void }
|
|
define void @test_fcmp_une_s64() #0 { ret void }
|
|
define void @test_fcmp_uno_s64() #0 { ret void }
|
|
|
|
define void @test_fcmp_one_s64() #0 { ret void }
|
|
define void @test_fcmp_ueq_s64() #0 { ret void }
|
|
|
|
attributes #0 = { "target-features"="+vfp2" }
|
|
...
|
|
---
|
|
name: test_icmp_eq_s32
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: gprb }
|
|
- { id: 1, class: gprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $r0, $r1
|
|
|
|
; CHECK-LABEL: name: test_icmp_eq_s32
|
|
; CHECK: [[COPY:%[0-9]+]]:gpr = COPY $r0
|
|
; CHECK: [[COPY1:%[0-9]+]]:gpr = COPY $r1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: CMPrr [[COPY]], [[COPY1]], 14, $noreg, implicit-def $cpsr
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 0, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s32) = COPY $r0
|
|
%1(s32) = COPY $r1
|
|
%2(s1) = G_ICMP intpred(eq), %0(s32), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_icmp_ne_s32
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: gprb }
|
|
- { id: 1, class: gprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $r0, $r1
|
|
|
|
; CHECK-LABEL: name: test_icmp_ne_s32
|
|
; CHECK: [[COPY:%[0-9]+]]:gpr = COPY $r0
|
|
; CHECK: [[COPY1:%[0-9]+]]:gpr = COPY $r1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: CMPrr [[COPY]], [[COPY1]], 14, $noreg, implicit-def $cpsr
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 1, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s32) = COPY $r0
|
|
%1(s32) = COPY $r1
|
|
%2(s1) = G_ICMP intpred(ne), %0(s32), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_icmp_ugt_s32
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: gprb }
|
|
- { id: 1, class: gprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $r0, $r1
|
|
|
|
; CHECK-LABEL: name: test_icmp_ugt_s32
|
|
; CHECK: [[COPY:%[0-9]+]]:gpr = COPY $r0
|
|
; CHECK: [[COPY1:%[0-9]+]]:gpr = COPY $r1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: CMPrr [[COPY]], [[COPY1]], 14, $noreg, implicit-def $cpsr
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 8, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s32) = COPY $r0
|
|
%1(s32) = COPY $r1
|
|
%2(s1) = G_ICMP intpred(ugt), %0(s32), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_icmp_uge_s32
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: gprb }
|
|
- { id: 1, class: gprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $r0, $r1
|
|
|
|
; CHECK-LABEL: name: test_icmp_uge_s32
|
|
; CHECK: [[COPY:%[0-9]+]]:gpr = COPY $r0
|
|
; CHECK: [[COPY1:%[0-9]+]]:gpr = COPY $r1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: CMPrr [[COPY]], [[COPY1]], 14, $noreg, implicit-def $cpsr
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 2, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s32) = COPY $r0
|
|
%1(s32) = COPY $r1
|
|
%2(s1) = G_ICMP intpred(uge), %0(s32), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_icmp_ult_s32
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: gprb }
|
|
- { id: 1, class: gprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $r0, $r1
|
|
|
|
; CHECK-LABEL: name: test_icmp_ult_s32
|
|
; CHECK: [[COPY:%[0-9]+]]:gpr = COPY $r0
|
|
; CHECK: [[COPY1:%[0-9]+]]:gpr = COPY $r1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: CMPrr [[COPY]], [[COPY1]], 14, $noreg, implicit-def $cpsr
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 3, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s32) = COPY $r0
|
|
%1(s32) = COPY $r1
|
|
%2(s1) = G_ICMP intpred(ult), %0(s32), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_icmp_ule_s32
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: gprb }
|
|
- { id: 1, class: gprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $r0, $r1
|
|
|
|
; CHECK-LABEL: name: test_icmp_ule_s32
|
|
; CHECK: [[COPY:%[0-9]+]]:gpr = COPY $r0
|
|
; CHECK: [[COPY1:%[0-9]+]]:gpr = COPY $r1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: CMPrr [[COPY]], [[COPY1]], 14, $noreg, implicit-def $cpsr
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 9, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s32) = COPY $r0
|
|
%1(s32) = COPY $r1
|
|
%2(s1) = G_ICMP intpred(ule), %0(s32), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_icmp_sgt_s32
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: gprb }
|
|
- { id: 1, class: gprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $r0, $r1
|
|
|
|
; CHECK-LABEL: name: test_icmp_sgt_s32
|
|
; CHECK: [[COPY:%[0-9]+]]:gpr = COPY $r0
|
|
; CHECK: [[COPY1:%[0-9]+]]:gpr = COPY $r1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: CMPrr [[COPY]], [[COPY1]], 14, $noreg, implicit-def $cpsr
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 12, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s32) = COPY $r0
|
|
%1(s32) = COPY $r1
|
|
%2(s1) = G_ICMP intpred(sgt), %0(s32), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_icmp_sge_s32
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: gprb }
|
|
- { id: 1, class: gprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $r0, $r1
|
|
|
|
; CHECK-LABEL: name: test_icmp_sge_s32
|
|
; CHECK: [[COPY:%[0-9]+]]:gpr = COPY $r0
|
|
; CHECK: [[COPY1:%[0-9]+]]:gpr = COPY $r1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: CMPrr [[COPY]], [[COPY1]], 14, $noreg, implicit-def $cpsr
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 10, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s32) = COPY $r0
|
|
%1(s32) = COPY $r1
|
|
%2(s1) = G_ICMP intpred(sge), %0(s32), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_icmp_slt_s32
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: gprb }
|
|
- { id: 1, class: gprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $r0, $r1
|
|
|
|
; CHECK-LABEL: name: test_icmp_slt_s32
|
|
; CHECK: [[COPY:%[0-9]+]]:gpr = COPY $r0
|
|
; CHECK: [[COPY1:%[0-9]+]]:gpr = COPY $r1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: CMPrr [[COPY]], [[COPY1]], 14, $noreg, implicit-def $cpsr
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 11, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s32) = COPY $r0
|
|
%1(s32) = COPY $r1
|
|
%2(s1) = G_ICMP intpred(slt), %0(s32), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_icmp_sle_s32
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: gprb }
|
|
- { id: 1, class: gprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $r0, $r1
|
|
|
|
; CHECK-LABEL: name: test_icmp_sle_s32
|
|
; CHECK: [[COPY:%[0-9]+]]:gpr = COPY $r0
|
|
; CHECK: [[COPY1:%[0-9]+]]:gpr = COPY $r1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: CMPrr [[COPY]], [[COPY1]], 14, $noreg, implicit-def $cpsr
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 13, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s32) = COPY $r0
|
|
%1(s32) = COPY $r1
|
|
%2(s1) = G_ICMP intpred(sle), %0(s32), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_fcmp_true_s32
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: fprb }
|
|
- { id: 1, class: fprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $s0, $s1
|
|
|
|
; CHECK-LABEL: name: test_fcmp_true_s32
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 1, 14, $noreg, $noreg
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s32) = COPY $s0
|
|
%1(s32) = COPY $s1
|
|
%2(s1) = G_FCMP floatpred(true), %0(s32), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_fcmp_false_s32
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: fprb }
|
|
- { id: 1, class: fprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $s0, $s1
|
|
|
|
; CHECK-LABEL: name: test_fcmp_false_s32
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s32) = COPY $s0
|
|
%1(s32) = COPY $s1
|
|
%2(s1) = G_FCMP floatpred(false), %0(s32), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_fcmp_oeq_s32
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: fprb }
|
|
- { id: 1, class: fprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $s0, $s1
|
|
|
|
; CHECK-LABEL: name: test_fcmp_oeq_s32
|
|
; CHECK: [[COPY:%[0-9]+]]:spr = COPY $s0
|
|
; CHECK: [[COPY1:%[0-9]+]]:spr = COPY $s1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: VCMPS [[COPY]], [[COPY1]], 14, $noreg, implicit-def $fpscr_nzcv
|
|
; CHECK: FMSTAT 14, $noreg, implicit-def $cpsr, implicit $fpscr_nzcv
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 0, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s32) = COPY $s0
|
|
%1(s32) = COPY $s1
|
|
%2(s1) = G_FCMP floatpred(oeq), %0(s32), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_fcmp_ogt_s32
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: fprb }
|
|
- { id: 1, class: fprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $s0, $s1
|
|
|
|
; CHECK-LABEL: name: test_fcmp_ogt_s32
|
|
; CHECK: [[COPY:%[0-9]+]]:spr = COPY $s0
|
|
; CHECK: [[COPY1:%[0-9]+]]:spr = COPY $s1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: VCMPS [[COPY]], [[COPY1]], 14, $noreg, implicit-def $fpscr_nzcv
|
|
; CHECK: FMSTAT 14, $noreg, implicit-def $cpsr, implicit $fpscr_nzcv
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 12, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s32) = COPY $s0
|
|
%1(s32) = COPY $s1
|
|
%2(s1) = G_FCMP floatpred(ogt), %0(s32), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_fcmp_oge_s32
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: fprb }
|
|
- { id: 1, class: fprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $s0, $s1
|
|
|
|
; CHECK-LABEL: name: test_fcmp_oge_s32
|
|
; CHECK: [[COPY:%[0-9]+]]:spr = COPY $s0
|
|
; CHECK: [[COPY1:%[0-9]+]]:spr = COPY $s1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: VCMPS [[COPY]], [[COPY1]], 14, $noreg, implicit-def $fpscr_nzcv
|
|
; CHECK: FMSTAT 14, $noreg, implicit-def $cpsr, implicit $fpscr_nzcv
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 10, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s32) = COPY $s0
|
|
%1(s32) = COPY $s1
|
|
%2(s1) = G_FCMP floatpred(oge), %0(s32), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_fcmp_olt_s32
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: fprb }
|
|
- { id: 1, class: fprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $s0, $s1
|
|
|
|
; CHECK-LABEL: name: test_fcmp_olt_s32
|
|
; CHECK: [[COPY:%[0-9]+]]:spr = COPY $s0
|
|
; CHECK: [[COPY1:%[0-9]+]]:spr = COPY $s1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: VCMPS [[COPY]], [[COPY1]], 14, $noreg, implicit-def $fpscr_nzcv
|
|
; CHECK: FMSTAT 14, $noreg, implicit-def $cpsr, implicit $fpscr_nzcv
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 4, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s32) = COPY $s0
|
|
%1(s32) = COPY $s1
|
|
%2(s1) = G_FCMP floatpred(olt), %0(s32), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_fcmp_ole_s32
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: fprb }
|
|
- { id: 1, class: fprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $s0, $s1
|
|
|
|
; CHECK-LABEL: name: test_fcmp_ole_s32
|
|
; CHECK: [[COPY:%[0-9]+]]:spr = COPY $s0
|
|
; CHECK: [[COPY1:%[0-9]+]]:spr = COPY $s1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: VCMPS [[COPY]], [[COPY1]], 14, $noreg, implicit-def $fpscr_nzcv
|
|
; CHECK: FMSTAT 14, $noreg, implicit-def $cpsr, implicit $fpscr_nzcv
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 9, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s32) = COPY $s0
|
|
%1(s32) = COPY $s1
|
|
%2(s1) = G_FCMP floatpred(ole), %0(s32), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_fcmp_ord_s32
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: fprb }
|
|
- { id: 1, class: fprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $s0, $s1
|
|
|
|
; CHECK-LABEL: name: test_fcmp_ord_s32
|
|
; CHECK: [[COPY:%[0-9]+]]:spr = COPY $s0
|
|
; CHECK: [[COPY1:%[0-9]+]]:spr = COPY $s1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: VCMPS [[COPY]], [[COPY1]], 14, $noreg, implicit-def $fpscr_nzcv
|
|
; CHECK: FMSTAT 14, $noreg, implicit-def $cpsr, implicit $fpscr_nzcv
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 7, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s32) = COPY $s0
|
|
%1(s32) = COPY $s1
|
|
%2(s1) = G_FCMP floatpred(ord), %0(s32), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_fcmp_ugt_s32
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: fprb }
|
|
- { id: 1, class: fprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $s0, $s1
|
|
|
|
; CHECK-LABEL: name: test_fcmp_ugt_s32
|
|
; CHECK: [[COPY:%[0-9]+]]:spr = COPY $s0
|
|
; CHECK: [[COPY1:%[0-9]+]]:spr = COPY $s1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: VCMPS [[COPY]], [[COPY1]], 14, $noreg, implicit-def $fpscr_nzcv
|
|
; CHECK: FMSTAT 14, $noreg, implicit-def $cpsr, implicit $fpscr_nzcv
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 8, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s32) = COPY $s0
|
|
%1(s32) = COPY $s1
|
|
%2(s1) = G_FCMP floatpred(ugt), %0(s32), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_fcmp_uge_s32
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: fprb }
|
|
- { id: 1, class: fprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $s0, $s1
|
|
|
|
; CHECK-LABEL: name: test_fcmp_uge_s32
|
|
; CHECK: [[COPY:%[0-9]+]]:spr = COPY $s0
|
|
; CHECK: [[COPY1:%[0-9]+]]:spr = COPY $s1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: VCMPS [[COPY]], [[COPY1]], 14, $noreg, implicit-def $fpscr_nzcv
|
|
; CHECK: FMSTAT 14, $noreg, implicit-def $cpsr, implicit $fpscr_nzcv
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 5, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s32) = COPY $s0
|
|
%1(s32) = COPY $s1
|
|
%2(s1) = G_FCMP floatpred(uge), %0(s32), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_fcmp_ult_s32
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: fprb }
|
|
- { id: 1, class: fprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $s0, $s1
|
|
|
|
; CHECK-LABEL: name: test_fcmp_ult_s32
|
|
; CHECK: [[COPY:%[0-9]+]]:spr = COPY $s0
|
|
; CHECK: [[COPY1:%[0-9]+]]:spr = COPY $s1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: VCMPS [[COPY]], [[COPY1]], 14, $noreg, implicit-def $fpscr_nzcv
|
|
; CHECK: FMSTAT 14, $noreg, implicit-def $cpsr, implicit $fpscr_nzcv
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 11, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s32) = COPY $s0
|
|
%1(s32) = COPY $s1
|
|
%2(s1) = G_FCMP floatpred(ult), %0(s32), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_fcmp_ule_s32
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: fprb }
|
|
- { id: 1, class: fprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $s0, $s1
|
|
|
|
; CHECK-LABEL: name: test_fcmp_ule_s32
|
|
; CHECK: [[COPY:%[0-9]+]]:spr = COPY $s0
|
|
; CHECK: [[COPY1:%[0-9]+]]:spr = COPY $s1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: VCMPS [[COPY]], [[COPY1]], 14, $noreg, implicit-def $fpscr_nzcv
|
|
; CHECK: FMSTAT 14, $noreg, implicit-def $cpsr, implicit $fpscr_nzcv
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 13, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s32) = COPY $s0
|
|
%1(s32) = COPY $s1
|
|
%2(s1) = G_FCMP floatpred(ule), %0(s32), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_fcmp_une_s32
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: fprb }
|
|
- { id: 1, class: fprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $s0, $s1
|
|
|
|
; CHECK-LABEL: name: test_fcmp_une_s32
|
|
; CHECK: [[COPY:%[0-9]+]]:spr = COPY $s0
|
|
; CHECK: [[COPY1:%[0-9]+]]:spr = COPY $s1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: VCMPS [[COPY]], [[COPY1]], 14, $noreg, implicit-def $fpscr_nzcv
|
|
; CHECK: FMSTAT 14, $noreg, implicit-def $cpsr, implicit $fpscr_nzcv
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 1, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s32) = COPY $s0
|
|
%1(s32) = COPY $s1
|
|
%2(s1) = G_FCMP floatpred(une), %0(s32), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_fcmp_uno_s32
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: fprb }
|
|
- { id: 1, class: fprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $s0, $s1
|
|
|
|
; CHECK-LABEL: name: test_fcmp_uno_s32
|
|
; CHECK: [[COPY:%[0-9]+]]:spr = COPY $s0
|
|
; CHECK: [[COPY1:%[0-9]+]]:spr = COPY $s1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: VCMPS [[COPY]], [[COPY1]], 14, $noreg, implicit-def $fpscr_nzcv
|
|
; CHECK: FMSTAT 14, $noreg, implicit-def $cpsr, implicit $fpscr_nzcv
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 6, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s32) = COPY $s0
|
|
%1(s32) = COPY $s1
|
|
%2(s1) = G_FCMP floatpred(uno), %0(s32), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_fcmp_one_s32
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: fprb }
|
|
- { id: 1, class: fprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $s0, $s1
|
|
|
|
; CHECK-LABEL: name: test_fcmp_one_s32
|
|
; CHECK: [[COPY:%[0-9]+]]:spr = COPY $s0
|
|
; CHECK: [[COPY1:%[0-9]+]]:spr = COPY $s1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: VCMPS [[COPY]], [[COPY1]], 14, $noreg, implicit-def $fpscr_nzcv
|
|
; CHECK: FMSTAT 14, $noreg, implicit-def $cpsr, implicit $fpscr_nzcv
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 12, $cpsr
|
|
; CHECK: VCMPS [[COPY]], [[COPY1]], 14, $noreg, implicit-def $fpscr_nzcv
|
|
; CHECK: FMSTAT 14, $noreg, implicit-def $cpsr, implicit $fpscr_nzcv
|
|
; CHECK: [[MOVCCi1:%[0-9]+]]:gpr = MOVCCi [[MOVCCi]], 1, 4, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi1]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s32) = COPY $s0
|
|
%1(s32) = COPY $s1
|
|
%2(s1) = G_FCMP floatpred(one), %0(s32), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_fcmp_ueq_s32
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: fprb }
|
|
- { id: 1, class: fprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $s0, $s1
|
|
|
|
; CHECK-LABEL: name: test_fcmp_ueq_s32
|
|
; CHECK: [[COPY:%[0-9]+]]:spr = COPY $s0
|
|
; CHECK: [[COPY1:%[0-9]+]]:spr = COPY $s1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: VCMPS [[COPY]], [[COPY1]], 14, $noreg, implicit-def $fpscr_nzcv
|
|
; CHECK: FMSTAT 14, $noreg, implicit-def $cpsr, implicit $fpscr_nzcv
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 0, $cpsr
|
|
; CHECK: VCMPS [[COPY]], [[COPY1]], 14, $noreg, implicit-def $fpscr_nzcv
|
|
; CHECK: FMSTAT 14, $noreg, implicit-def $cpsr, implicit $fpscr_nzcv
|
|
; CHECK: [[MOVCCi1:%[0-9]+]]:gpr = MOVCCi [[MOVCCi]], 1, 6, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi1]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s32) = COPY $s0
|
|
%1(s32) = COPY $s1
|
|
%2(s1) = G_FCMP floatpred(ueq), %0(s32), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_fcmp_true_s64
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: fprb }
|
|
- { id: 1, class: fprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $d0, $d1
|
|
|
|
; CHECK-LABEL: name: test_fcmp_true_s64
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 1, 14, $noreg, $noreg
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s64) = COPY $d0
|
|
%1(s64) = COPY $d1
|
|
%2(s1) = G_FCMP floatpred(true), %0(s64), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_fcmp_false_s64
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: fprb }
|
|
- { id: 1, class: fprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $d0, $d1
|
|
|
|
; CHECK-LABEL: name: test_fcmp_false_s64
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s64) = COPY $d0
|
|
%1(s64) = COPY $d1
|
|
%2(s1) = G_FCMP floatpred(false), %0(s64), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_fcmp_oeq_s64
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: fprb }
|
|
- { id: 1, class: fprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $d0, $d1
|
|
|
|
; CHECK-LABEL: name: test_fcmp_oeq_s64
|
|
; CHECK: [[COPY:%[0-9]+]]:dpr = COPY $d0
|
|
; CHECK: [[COPY1:%[0-9]+]]:dpr = COPY $d1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: VCMPD [[COPY]], [[COPY1]], 14, $noreg, implicit-def $fpscr_nzcv
|
|
; CHECK: FMSTAT 14, $noreg, implicit-def $cpsr, implicit $fpscr_nzcv
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 0, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s64) = COPY $d0
|
|
%1(s64) = COPY $d1
|
|
%2(s1) = G_FCMP floatpred(oeq), %0(s64), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_fcmp_ogt_s64
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: fprb }
|
|
- { id: 1, class: fprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $d0, $d1
|
|
|
|
; CHECK-LABEL: name: test_fcmp_ogt_s64
|
|
; CHECK: [[COPY:%[0-9]+]]:dpr = COPY $d0
|
|
; CHECK: [[COPY1:%[0-9]+]]:dpr = COPY $d1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: VCMPD [[COPY]], [[COPY1]], 14, $noreg, implicit-def $fpscr_nzcv
|
|
; CHECK: FMSTAT 14, $noreg, implicit-def $cpsr, implicit $fpscr_nzcv
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 12, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s64) = COPY $d0
|
|
%1(s64) = COPY $d1
|
|
%2(s1) = G_FCMP floatpred(ogt), %0(s64), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_fcmp_oge_s64
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: fprb }
|
|
- { id: 1, class: fprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $d0, $d1
|
|
|
|
; CHECK-LABEL: name: test_fcmp_oge_s64
|
|
; CHECK: [[COPY:%[0-9]+]]:dpr = COPY $d0
|
|
; CHECK: [[COPY1:%[0-9]+]]:dpr = COPY $d1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: VCMPD [[COPY]], [[COPY1]], 14, $noreg, implicit-def $fpscr_nzcv
|
|
; CHECK: FMSTAT 14, $noreg, implicit-def $cpsr, implicit $fpscr_nzcv
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 10, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s64) = COPY $d0
|
|
%1(s64) = COPY $d1
|
|
%2(s1) = G_FCMP floatpred(oge), %0(s64), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_fcmp_olt_s64
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: fprb }
|
|
- { id: 1, class: fprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $d0, $d1
|
|
|
|
; CHECK-LABEL: name: test_fcmp_olt_s64
|
|
; CHECK: [[COPY:%[0-9]+]]:dpr = COPY $d0
|
|
; CHECK: [[COPY1:%[0-9]+]]:dpr = COPY $d1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: VCMPD [[COPY]], [[COPY1]], 14, $noreg, implicit-def $fpscr_nzcv
|
|
; CHECK: FMSTAT 14, $noreg, implicit-def $cpsr, implicit $fpscr_nzcv
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 4, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s64) = COPY $d0
|
|
%1(s64) = COPY $d1
|
|
%2(s1) = G_FCMP floatpred(olt), %0(s64), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_fcmp_ole_s64
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: fprb }
|
|
- { id: 1, class: fprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $d0, $d1
|
|
|
|
; CHECK-LABEL: name: test_fcmp_ole_s64
|
|
; CHECK: [[COPY:%[0-9]+]]:dpr = COPY $d0
|
|
; CHECK: [[COPY1:%[0-9]+]]:dpr = COPY $d1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: VCMPD [[COPY]], [[COPY1]], 14, $noreg, implicit-def $fpscr_nzcv
|
|
; CHECK: FMSTAT 14, $noreg, implicit-def $cpsr, implicit $fpscr_nzcv
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 9, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s64) = COPY $d0
|
|
%1(s64) = COPY $d1
|
|
%2(s1) = G_FCMP floatpred(ole), %0(s64), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_fcmp_ord_s64
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: fprb }
|
|
- { id: 1, class: fprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $d0, $d1
|
|
|
|
; CHECK-LABEL: name: test_fcmp_ord_s64
|
|
; CHECK: [[COPY:%[0-9]+]]:dpr = COPY $d0
|
|
; CHECK: [[COPY1:%[0-9]+]]:dpr = COPY $d1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: VCMPD [[COPY]], [[COPY1]], 14, $noreg, implicit-def $fpscr_nzcv
|
|
; CHECK: FMSTAT 14, $noreg, implicit-def $cpsr, implicit $fpscr_nzcv
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 7, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s64) = COPY $d0
|
|
%1(s64) = COPY $d1
|
|
%2(s1) = G_FCMP floatpred(ord), %0(s64), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_fcmp_ugt_s64
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: fprb }
|
|
- { id: 1, class: fprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $d0, $d1
|
|
|
|
; CHECK-LABEL: name: test_fcmp_ugt_s64
|
|
; CHECK: [[COPY:%[0-9]+]]:dpr = COPY $d0
|
|
; CHECK: [[COPY1:%[0-9]+]]:dpr = COPY $d1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: VCMPD [[COPY]], [[COPY1]], 14, $noreg, implicit-def $fpscr_nzcv
|
|
; CHECK: FMSTAT 14, $noreg, implicit-def $cpsr, implicit $fpscr_nzcv
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 8, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s64) = COPY $d0
|
|
%1(s64) = COPY $d1
|
|
%2(s1) = G_FCMP floatpred(ugt), %0(s64), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_fcmp_uge_s64
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: fprb }
|
|
- { id: 1, class: fprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $d0, $d1
|
|
|
|
; CHECK-LABEL: name: test_fcmp_uge_s64
|
|
; CHECK: [[COPY:%[0-9]+]]:dpr = COPY $d0
|
|
; CHECK: [[COPY1:%[0-9]+]]:dpr = COPY $d1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: VCMPD [[COPY]], [[COPY1]], 14, $noreg, implicit-def $fpscr_nzcv
|
|
; CHECK: FMSTAT 14, $noreg, implicit-def $cpsr, implicit $fpscr_nzcv
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 5, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s64) = COPY $d0
|
|
%1(s64) = COPY $d1
|
|
%2(s1) = G_FCMP floatpred(uge), %0(s64), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_fcmp_ult_s64
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: fprb }
|
|
- { id: 1, class: fprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $d0, $d1
|
|
|
|
; CHECK-LABEL: name: test_fcmp_ult_s64
|
|
; CHECK: [[COPY:%[0-9]+]]:dpr = COPY $d0
|
|
; CHECK: [[COPY1:%[0-9]+]]:dpr = COPY $d1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: VCMPD [[COPY]], [[COPY1]], 14, $noreg, implicit-def $fpscr_nzcv
|
|
; CHECK: FMSTAT 14, $noreg, implicit-def $cpsr, implicit $fpscr_nzcv
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 11, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s64) = COPY $d0
|
|
%1(s64) = COPY $d1
|
|
%2(s1) = G_FCMP floatpred(ult), %0(s64), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_fcmp_ule_s64
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: fprb }
|
|
- { id: 1, class: fprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $d0, $d1
|
|
|
|
; CHECK-LABEL: name: test_fcmp_ule_s64
|
|
; CHECK: [[COPY:%[0-9]+]]:dpr = COPY $d0
|
|
; CHECK: [[COPY1:%[0-9]+]]:dpr = COPY $d1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: VCMPD [[COPY]], [[COPY1]], 14, $noreg, implicit-def $fpscr_nzcv
|
|
; CHECK: FMSTAT 14, $noreg, implicit-def $cpsr, implicit $fpscr_nzcv
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 13, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s64) = COPY $d0
|
|
%1(s64) = COPY $d1
|
|
%2(s1) = G_FCMP floatpred(ule), %0(s64), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_fcmp_une_s64
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: fprb }
|
|
- { id: 1, class: fprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $d0, $d1
|
|
|
|
; CHECK-LABEL: name: test_fcmp_une_s64
|
|
; CHECK: [[COPY:%[0-9]+]]:dpr = COPY $d0
|
|
; CHECK: [[COPY1:%[0-9]+]]:dpr = COPY $d1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: VCMPD [[COPY]], [[COPY1]], 14, $noreg, implicit-def $fpscr_nzcv
|
|
; CHECK: FMSTAT 14, $noreg, implicit-def $cpsr, implicit $fpscr_nzcv
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 1, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s64) = COPY $d0
|
|
%1(s64) = COPY $d1
|
|
%2(s1) = G_FCMP floatpred(une), %0(s64), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_fcmp_uno_s64
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: fprb }
|
|
- { id: 1, class: fprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $d0, $d1
|
|
|
|
; CHECK-LABEL: name: test_fcmp_uno_s64
|
|
; CHECK: [[COPY:%[0-9]+]]:dpr = COPY $d0
|
|
; CHECK: [[COPY1:%[0-9]+]]:dpr = COPY $d1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: VCMPD [[COPY]], [[COPY1]], 14, $noreg, implicit-def $fpscr_nzcv
|
|
; CHECK: FMSTAT 14, $noreg, implicit-def $cpsr, implicit $fpscr_nzcv
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 6, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s64) = COPY $d0
|
|
%1(s64) = COPY $d1
|
|
%2(s1) = G_FCMP floatpred(uno), %0(s64), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_fcmp_one_s64
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: fprb }
|
|
- { id: 1, class: fprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $d0, $d1
|
|
|
|
; CHECK-LABEL: name: test_fcmp_one_s64
|
|
; CHECK: [[COPY:%[0-9]+]]:dpr = COPY $d0
|
|
; CHECK: [[COPY1:%[0-9]+]]:dpr = COPY $d1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: VCMPD [[COPY]], [[COPY1]], 14, $noreg, implicit-def $fpscr_nzcv
|
|
; CHECK: FMSTAT 14, $noreg, implicit-def $cpsr, implicit $fpscr_nzcv
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 12, $cpsr
|
|
; CHECK: VCMPD [[COPY]], [[COPY1]], 14, $noreg, implicit-def $fpscr_nzcv
|
|
; CHECK: FMSTAT 14, $noreg, implicit-def $cpsr, implicit $fpscr_nzcv
|
|
; CHECK: [[MOVCCi1:%[0-9]+]]:gpr = MOVCCi [[MOVCCi]], 1, 4, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi1]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s64) = COPY $d0
|
|
%1(s64) = COPY $d1
|
|
%2(s1) = G_FCMP floatpred(one), %0(s64), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|
|
---
|
|
name: test_fcmp_ueq_s64
|
|
legalized: true
|
|
regBankSelected: true
|
|
selected: false
|
|
registers:
|
|
- { id: 0, class: fprb }
|
|
- { id: 1, class: fprb }
|
|
- { id: 2, class: gprb }
|
|
- { id: 3, class: gprb }
|
|
body: |
|
|
bb.0:
|
|
liveins: $d0, $d1
|
|
|
|
; CHECK-LABEL: name: test_fcmp_ueq_s64
|
|
; CHECK: [[COPY:%[0-9]+]]:dpr = COPY $d0
|
|
; CHECK: [[COPY1:%[0-9]+]]:dpr = COPY $d1
|
|
; CHECK: [[MOVi:%[0-9]+]]:gpr = MOVi 0, 14, $noreg, $noreg
|
|
; CHECK: VCMPD [[COPY]], [[COPY1]], 14, $noreg, implicit-def $fpscr_nzcv
|
|
; CHECK: FMSTAT 14, $noreg, implicit-def $cpsr, implicit $fpscr_nzcv
|
|
; CHECK: [[MOVCCi:%[0-9]+]]:gpr = MOVCCi [[MOVi]], 1, 0, $cpsr
|
|
; CHECK: VCMPD [[COPY]], [[COPY1]], 14, $noreg, implicit-def $fpscr_nzcv
|
|
; CHECK: FMSTAT 14, $noreg, implicit-def $cpsr, implicit $fpscr_nzcv
|
|
; CHECK: [[MOVCCi1:%[0-9]+]]:gpr = MOVCCi [[MOVCCi]], 1, 6, $cpsr
|
|
; CHECK: [[ANDri:%[0-9]+]]:gpr = ANDri [[MOVCCi1]], 1, 14, $noreg, $noreg
|
|
; CHECK: $r0 = COPY [[ANDri]]
|
|
; CHECK: BX_RET 14, $noreg, implicit $r0
|
|
%0(s64) = COPY $d0
|
|
%1(s64) = COPY $d1
|
|
%2(s1) = G_FCMP floatpred(ueq), %0(s64), %1
|
|
%3(s32) = G_ZEXT %2(s1)
|
|
$r0 = COPY %3(s32)
|
|
BX_RET 14, $noreg, implicit $r0
|
|
...
|