[InstCombine] Signed saturation tests. NFC
[llvm-core.git] / test / MachineVerifier / test_g_trunc.mir
blobfd97b09af15c4d534328f2de540df7477bc9060d
1 # RUN: not llc -o - -march=arm64 -global-isel -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s
2 # REQUIRES: global-isel, 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 ...