1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -O0 -mtriple=i386-linux-gnu -run-pass=legalizer %s -o - | FileCheck --check-prefix=X32 %s
5 name: test_memop_s8tos32
11 ; X32-LABEL: name: test_memop_s8tos32
12 ; X32: [[DEF:%[0-9]+]]:_(p0) = IMPLICIT_DEF
13 ; X32: [[LOAD:%[0-9]+]]:_(s8) = G_LOAD [[DEF]](p0) :: (load 1)
14 ; X32: [[LOAD1:%[0-9]+]]:_(s8) = G_LOAD [[DEF]](p0) :: (load 1)
15 ; X32: [[LOAD2:%[0-9]+]]:_(s16) = G_LOAD [[DEF]](p0) :: (load 2)
16 ; X32: [[LOAD3:%[0-9]+]]:_(s32) = G_LOAD [[DEF]](p0) :: (load 4)
17 ; X32: [[LOAD4:%[0-9]+]]:_(p0) = G_LOAD [[DEF]](p0) :: (load 4)
18 ; X32: [[C:%[0-9]+]]:_(s8) = G_CONSTANT i8 1
19 ; X32: [[COPY:%[0-9]+]]:_(s8) = COPY [[LOAD]](s8)
20 ; X32: [[AND:%[0-9]+]]:_(s8) = G_AND [[COPY]], [[C]]
21 ; X32: G_STORE [[AND]](s8), [[DEF]](p0) :: (store 1)
22 ; X32: G_STORE [[LOAD1]](s8), [[DEF]](p0) :: (store 1)
23 ; X32: G_STORE [[LOAD2]](s16), [[DEF]](p0) :: (store 2)
24 ; X32: G_STORE [[LOAD3]](s32), [[DEF]](p0) :: (store 4)
25 ; X32: G_STORE [[LOAD4]](p0), [[DEF]](p0) :: (store 4)
26 %0:_(p0) = IMPLICIT_DEF
27 %9:_(s1) = G_LOAD %0 :: (load 1)
28 %1:_(s8) = G_LOAD %0 :: (load 1)
29 %2:_(s16) = G_LOAD %0 :: (load 2)
30 %3:_(s32) = G_LOAD %0 :: (load 4)
31 %4:_(p0) = G_LOAD %0 :: (load 4)
33 G_STORE %9, %0 :: (store 1)
34 G_STORE %1, %0 :: (store 1)
35 G_STORE %2, %0 :: (store 2)
36 G_STORE %3, %0 :: (store 4)
37 G_STORE %4, %0 :: (store 4)
43 regBankSelected: false
48 ; X32-LABEL: name: test_memop_s64
49 ; X32: [[DEF:%[0-9]+]]:_(p0) = IMPLICIT_DEF
50 ; X32: [[LOAD:%[0-9]+]]:_(s32) = G_LOAD [[DEF]](p0) :: (load 4, align 8)
51 ; X32: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 4
52 ; X32: [[GEP:%[0-9]+]]:_(p0) = G_GEP [[DEF]], [[C]](s32)
53 ; X32: [[LOAD1:%[0-9]+]]:_(s32) = G_LOAD [[GEP]](p0) :: (load 4)
54 ; X32: G_STORE [[LOAD]](s32), [[DEF]](p0) :: (store 4, align 8)
55 ; X32: [[GEP1:%[0-9]+]]:_(p0) = G_GEP [[DEF]], [[C]](s32)
56 ; X32: G_STORE [[LOAD1]](s32), [[GEP1]](p0) :: (store 4)
57 %0:_(p0) = IMPLICIT_DEF
58 %1:_(s64) = G_LOAD %0 :: (load 8)
60 G_STORE %1, %0 :: (store 8)