1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 5
2 # RUN: llc -run-pass=riscv-prelegalizer-combiner -mtriple riscv64 %s -o - | FileCheck %s --check-prefix=RV64
9 ; RV64-LABEL: name: nneg_zext
10 ; RV64: [[COPY:%[0-9]+]]:_(s64) = COPY $x10
11 ; RV64-NEXT: [[TRUNC:%[0-9]+]]:_(s32) = G_TRUNC [[COPY]](s64)
12 ; RV64-NEXT: [[SEXT:%[0-9]+]]:_(s64) = G_SEXT [[TRUNC]](s32)
13 ; RV64-NEXT: $x10 = COPY [[SEXT]](s64)
14 ; RV64-NEXT: PseudoRET implicit $x10
16 %2:_(s32) = G_TRUNC %0
17 %3:_(s64) = nneg G_ZEXT %2
19 PseudoRET implicit $x10