28 lines
1,011 B
YAML
28 lines
1,011 B
YAML
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 3
|
|
# RUN: llc -mtriple=riscv64 -mattr=+d -run-pass=legalizer %s -o - \
|
|
# RUN: | FileCheck %s
|
|
|
|
---
|
|
name: is_fpclass_f64
|
|
body: |
|
|
bb.1:
|
|
liveins: $f10_d
|
|
|
|
; CHECK-LABEL: name: is_fpclass_f64
|
|
; CHECK: liveins: $f10_d
|
|
; CHECK-NEXT: {{ $}}
|
|
; CHECK-NEXT: [[COPY:%[0-9]+]]:_(s64) = COPY $f10_d
|
|
; CHECK-NEXT: [[C:%[0-9]+]]:_(s64) = G_CONSTANT i64 152
|
|
; CHECK-NEXT: [[C1:%[0-9]+]]:_(s64) = G_CONSTANT i64 0
|
|
; CHECK-NEXT: [[FCLASS:%[0-9]+]]:_(s64) = G_FCLASS [[COPY]](s64)
|
|
; CHECK-NEXT: [[AND:%[0-9]+]]:_(s64) = G_AND [[FCLASS]], [[C]]
|
|
; CHECK-NEXT: [[ICMP:%[0-9]+]]:_(s64) = G_ICMP intpred(ne), [[AND]](s64), [[C1]]
|
|
; CHECK-NEXT: $x10 = COPY [[ICMP]](s64)
|
|
; CHECK-NEXT: PseudoRET implicit $x10
|
|
%0:_(s64) = COPY $f10_d
|
|
%1:_(s1) = G_IS_FPCLASS %0(s64), 608
|
|
%2:_(s64) = G_ANYEXT %1(s1)
|
|
$x10 = COPY %2(s64)
|
|
PseudoRET implicit $x10
|
|
|
|
...
|