brintos

brintos / llvm-project-archived public Read only

0
0
Text · 700 B · 79e24e3 Raw
21 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -mtriple=riscv64 -verify-machineinstrs < %s \3; RUN:   | FileCheck -check-prefix=RV64I %s4 5; This test case is significantly simplified from the submitted .ll but6; demonstrates the same issue. At the time of this problem report, an infinite7; loop would be created in DAGCombine, converting ANY_EXTEND to SIGN_EXTEND8; and back again.9 10define signext i8 @foo(i32 %a, i32 %b) nounwind {11; RV64I-LABEL: foo:12; RV64I:       # %bb.0:13; RV64I-NEXT:    srlw a0, a0, a114; RV64I-NEXT:    slli a0, a0, 5615; RV64I-NEXT:    srai a0, a0, 5616; RV64I-NEXT:    ret17 %1 = lshr i32 %a, %b18 %2 = trunc i32 %1 to i819 ret i8 %220}21