Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MachineVerifier / test_g_trunc.mir
blobf79a748da1788d92f52f51cd2522028347c631b4
1 # RUN: not --crash llc -o - -mtriple=arm64 -global-isel -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
2 # REQUIRES: aarch64-registered-target
4 ---
5 name:            test_trunc
6 legalized:       true
7 regBankSelected: false
8 selected:        false
9 tracksRegLiveness: true
10 liveins:
11 body:             |
12   bb.0:
14     ; CHECK: Bad machine code: Too few operands
15     %0:_(s32) = G_TRUNC
17     %1:_(s64) = G_IMPLICIT_DEF
19     ; CHECK: Bad machine code: Too few operands
20     ; CHECK: Bad machine code: Explicit definition marked as use
21     G_TRUNC %1
23 ...