1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple aarch64-unknown-unknown -run-pass=instruction-select -global-isel-abort=1 -verify-machineinstrs %s -o - | FileCheck %s
9 tracksRegLiveness: true
11 ; CHECK-LABEL: name: fold_trunc
13 ; CHECK: successors: %bb.0(0x40000000), %bb.1(0x40000000)
15 ; CHECK: %copy:gpr64all = COPY $x0
16 ; CHECK: [[COPY:%[0-9]+]]:gpr32all = COPY %copy.sub_32
17 ; CHECK: [[COPY1:%[0-9]+]]:gpr32 = COPY [[COPY]]
18 ; CHECK: TBNZW [[COPY1]], 3, %bb.1
23 successors: %bb.0, %bb.1
25 %copy:gpr(s64) = COPY $x0
26 %bit:gpr(s32) = G_CONSTANT i32 8
27 %zero:gpr(s32) = G_CONSTANT i32 0
28 %fold_me:gpr(s32) = G_TRUNC %copy(s64)
29 %and:gpr(s32) = G_AND %fold_me, %bit
30 %cmp:gpr(s32) = G_ICMP intpred(ne), %and(s32), %zero