xref: /llvm-project/llvm/test/CodeGen/Mips/GlobalISel/legalizer/trunc.mir (revision e4c46ddd91eba5ec162225abc1e47aa3c6c13516)
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2# RUN: llc -O0 -mtriple=mipsel-linux-gnu -run-pass=legalizer -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=MIPS32
3--- |
4
5  define void @trunc() {entry: ret void}
6
7...
8---
9name:            trunc
10alignment:       4
11tracksRegLiveness: true
12body:             |
13  bb.1.entry:
14    liveins: $a0, $a1
15
16    ; MIPS32-LABEL: name: trunc
17    ; MIPS32: liveins: $a0, $a1
18    ; MIPS32: [[COPY:%[0-9]+]]:_(s32) = COPY $a0
19    ; MIPS32: $v0 = COPY [[COPY]](s32)
20    ; MIPS32: RetRA implicit $v0
21    %1:_(s32) = COPY $a0
22    %2:_(s32) = COPY $a1
23    %0:_(s64) = G_MERGE_VALUES %1(s32), %2(s32)
24    %3:_(s32) = G_TRUNC %0(s64)
25    $v0 = COPY %3(s32)
26    RetRA implicit $v0
27
28...
29