1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=i386-unknown-linux-musl -verify-machineinstrs -run-pass=regallocfast -o - %s | FileCheck %s
4 # Test for correct management of allocatable and non-allocatable
5 # live-ins in fastregalloc
9 tracksRegLiveness: true
11 ; CHECK-LABEL: name: live_through_ecx
13 ; CHECK: successors: %bb.1(0x80000000)
14 ; CHECK: liveins: $ecx
15 ; CHECK: NOOP implicit $ecx
17 ; CHECK: liveins: $ecx
18 ; CHECK: RET implicit killed $ecx
32 tracksRegLiveness: true
34 ; CHECK-LABEL: name: live_out_ecx
36 ; CHECK: successors: %bb.1(0x80000000)
37 ; CHECK: liveins: $eax, $ebx
38 ; CHECK: renamable $ecx = COPY killed $ebx
40 ; CHECK: liveins: $ecx
41 ; CHECK: RET implicit killed $ecx
57 tracksRegLiveness: true
59 ; CHECK-LABEL: name: live_out_eflags
61 ; CHECK: successors: %bb.1(0x80000000)
62 ; CHECK: liveins: $eax, $ebx
63 ; CHECK: TEST32rr killed renamable $eax, killed renamable $ebx, implicit-def $eflags
65 ; CHECK: liveins: $eflags
66 ; CHECK: RET implicit killed $eflags
71 TEST32rr %0, %1, implicit-def $eflags