1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py 2# RUN: llc -mtriple=x86_64-linux-gnu -run-pass=legalizer %s -o - | FileCheck %s --check-prefix=ALL --check-prefix=X64 3# RUN: llc -mtriple=i386-linux-gnu -run-pass=legalizer %s -o - | FileCheck %s --check-prefix=ALL --check-prefix=X32 4 5--- 6name: test_implicit_def 7registers: 8# 9body: | 10 bb.0.entry: 11 liveins: 12 ; X64-LABEL: name: test_implicit_def 13 ; X64: [[DEF:%[0-9]+]]:_(p0) = G_IMPLICIT_DEF 14 ; X64: [[DEF1:%[0-9]+]]:_(s8) = G_IMPLICIT_DEF 15 ; X64: G_STORE [[DEF1]](s8), [[DEF]](p0) :: (store 1) 16 ; X64: [[DEF2:%[0-9]+]]:_(s8) = G_IMPLICIT_DEF 17 ; X64: G_STORE [[DEF2]](s8), [[DEF]](p0) :: (store 1) 18 ; X64: [[DEF3:%[0-9]+]]:_(s16) = G_IMPLICIT_DEF 19 ; X64: G_STORE [[DEF3]](s16), [[DEF]](p0) :: (store 2) 20 ; X64: [[DEF4:%[0-9]+]]:_(s32) = G_IMPLICIT_DEF 21 ; X64: G_STORE [[DEF4]](s32), [[DEF]](p0) :: (store 4) 22 ; X64: [[DEF5:%[0-9]+]]:_(s64) = G_IMPLICIT_DEF 23 ; X64: G_STORE [[DEF5]](s64), [[DEF]](p0) :: (store 8) 24 ; X32-LABEL: name: test_implicit_def 25 ; X32: [[DEF:%[0-9]+]]:_(p0) = G_IMPLICIT_DEF 26 ; X32: [[DEF1:%[0-9]+]]:_(s8) = G_IMPLICIT_DEF 27 ; X32: G_STORE [[DEF1]](s8), [[DEF]](p0) :: (store 1) 28 ; X32: [[DEF2:%[0-9]+]]:_(s8) = G_IMPLICIT_DEF 29 ; X32: G_STORE [[DEF2]](s8), [[DEF]](p0) :: (store 1) 30 ; X32: [[DEF3:%[0-9]+]]:_(s16) = G_IMPLICIT_DEF 31 ; X32: G_STORE [[DEF3]](s16), [[DEF]](p0) :: (store 2) 32 ; X32: [[DEF4:%[0-9]+]]:_(s32) = G_IMPLICIT_DEF 33 ; X32: G_STORE [[DEF4]](s32), [[DEF]](p0) :: (store 4) 34 ; X32: [[DEF5:%[0-9]+]]:_(s32) = G_IMPLICIT_DEF 35 ; X32: [[DEF6:%[0-9]+]]:_(s32) = G_IMPLICIT_DEF 36 ; X32: G_STORE [[DEF5]](s32), [[DEF]](p0) :: (store 4, align 8) 37 ; X32: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 4 38 ; X32: [[GEP:%[0-9]+]]:_(p0) = G_GEP [[DEF]], [[C]](s32) 39 ; X32: G_STORE [[DEF6]](s32), [[GEP]](p0) :: (store 4) 40 %5:_(p0) = G_IMPLICIT_DEF 41 %0:_(s1) = G_IMPLICIT_DEF 42 G_STORE %0, %5 ::(store 1) 43 %1:_(s8) = G_IMPLICIT_DEF 44 G_STORE %1, %5 ::(store 1) 45 %2:_(s16) = G_IMPLICIT_DEF 46 G_STORE %2, %5 ::(store 2) 47 %3:_(s32) = G_IMPLICIT_DEF 48 G_STORE %3, %5 ::(store 4) 49 %4:_(s64) = G_IMPLICIT_DEF 50 G_STORE %4, %5 ::(store 8) 51... 52