brintos

brintos / llvm-project-archived public Read only

0
0
Text · 861 B · cfe8cee Raw
25 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 32; RUN: llc < %s -mtriple=riscv32-- -mattr=+d -verify-machineinstrs | FileCheck %s -check-prefix=RV323; RUN: llc < %s -mtriple=riscv64-- -mattr=+d -verify-machineinstrs | FileCheck %s -check-prefix=RV644 5; Don't fold freeze(assertsext(x)) -> assertsext(freeze(x))6define i32 @PR66603(double %x) nounwind {7; RV32-LABEL: PR66603:8; RV32:       # %bb.0:9; RV32-NEXT:    fcvt.w.d a0, fa0, rtz10; RV32-NEXT:    slli a0, a0, 2411; RV32-NEXT:    srai a0, a0, 2412; RV32-NEXT:    ret13;14; RV64-LABEL: PR66603:15; RV64:       # %bb.0:16; RV64-NEXT:    fcvt.l.d a0, fa0, rtz17; RV64-NEXT:    slli a0, a0, 5618; RV64-NEXT:    srai a0, a0, 5619; RV64-NEXT:    ret20  %as_i8 = fptosi double %x to i821  %frozen_i8 = freeze i8 %as_i822  %ext = sext i8 %frozen_i8 to i3223  ret i32 %ext24}25