1 # RUN: llc -mtriple=x86_64 -run-pass=implicit-null-checks %s -o - | FileCheck %s
4 define i32 @reg-rewrite(i32* %x) {
6 br i1 undef, label %is_null, label %not_null, !make.implicit !0
19 # Check that the TEST instruction is replaced with
20 # FAULTING_OP only if there are no instructions
21 # between the TEST and conditional jump
22 # that clobber the register used in TEST.
26 tracksRegLiveness: true
34 TEST64rr $rdi, $rdi, implicit-def $eflags
35 ; CHECK-LABEL: bb.0.entry
36 ; CHECK-NOT: FAULTING_OP
37 renamable $rdi = MOV64ri 5000
38 JCC_1 %bb.2, 4, implicit $eflags
43 $rax = MOV64rm renamable $rdi, 1, $noreg, 4, $noreg