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