Revert r354244 "[DAGCombiner] Eliminate dead stores to stack."
[llvm-complete.git] / test / CodeGen / Mips / Fast-ISel / simplestore.ll
blob5cac57b798a84dcfb06cce774a160a656334095d
1 ; RUN: llc -fast-isel-sink-local-values -march=mipsel -relocation-model=pic -O0 -fast-isel-abort=3 -mcpu=mips32r2 \
2 ; RUN:     < %s | FileCheck %s
3 ; RUN: llc -fast-isel-sink-local-values -march=mipsel -relocation-model=pic -O0 -fast-isel-abort=3 -mcpu=mips32 \
4 ; RUN:     < %s | FileCheck %s
6 @abcd = external global i32
8 ; Function Attrs: nounwind
9 define void @foo()  {
10 entry:
11   store i32 12345, i32* @abcd, align 4
12 ; CHECK:        lw      $[[REG2:[0-9]+]], %got(abcd)(${{[0-9]+}})
13 ; CHECK:        addiu   $[[REG1:[0-9]+]], $zero, 12345
14 ; CHECK:        sw      $[[REG1]], 0($[[REG2]])
15   ret void