xref: /llvm-project/llvm/test/CodeGen/AArch64/GlobalISel/legalize-ignore-hint.mir (revision 24261729a49feb4cf0376c6f9326374ab28ec0a5)
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2# RUN: llc -mtriple=aarch64 -run-pass=legalizer -verify-machineinstrs %s -o - | FileCheck %s
3#
4# Verify that hint instructions are ignored by the legalizer.
5
6---
7name:            assert_zext
8tracksRegLiveness: true
9body: |
10  bb.0:
11    liveins: $w0, $w1
12    ; CHECK-LABEL: name: assert_zext
13    ; CHECK: %copy:_(s32) = COPY $w1
14    ; CHECK: %hint:_(s32) = G_ASSERT_ZEXT %copy, 16
15    ; CHECK: $w0 = COPY %hint(s32)
16    ; CHECK: RET_ReallyLR implicit $w0
17    %copy:_(s32) = COPY $w1
18    %hint:_(s32) = G_ASSERT_ZEXT %copy, 16
19    $w0 = COPY %hint
20    RET_ReallyLR implicit $w0
21...
22