83e3f3f242747319917a3360b1dee4ad2b2511ce
[oota-llvm.git] / test / CodeGen / Mips / Fast-ISel / simplestore.ll
1 ; RUN: llc -march=mipsel -relocation-model=pic -O0 -mips-fast-isel -fast-isel-abort -mcpu=mips32r2 \
2 ; RUN:     < %s | FileCheck %s
3 ; RUN: llc -march=mipsel -relocation-model=pic -O0 -mips-fast-isel -fast-isel-abort -mcpu=mips32 \
4 ; RUN:     < %s | FileCheck %s
5
6 @abcd = external global i32
7
8 ; Function Attrs: nounwind
9 define void @foo()  {
10 entry:
11   store i32 12345, i32* @abcd, align 4
12 ; CHECK:        addiu   $[[REG1:[0-9]+]], $zero, 12345
13 ; CHECK:        lw      $[[REG2:[0-9]+]], %got(abcd)(${{[0-9]+}})
14 ; CHECK:        sw      $[[REG1]], 0($[[REG2]])
15   ret void
16 }
17