blob: 83e3f3f242747319917a3360b1dee4ad2b2511ce [file] [log] [blame]
Reed Kotlerbab3f232014-05-01 20:39:21 +00001; RUN: llc -march=mipsel -relocation-model=pic -O0 -mips-fast-isel -fast-isel-abort -mcpu=mips32r2 \
2; RUN: < %s | FileCheck %s
Reed Kotler32be74b2014-09-15 20:30:25 +00003; RUN: llc -march=mipsel -relocation-model=pic -O0 -mips-fast-isel -fast-isel-abort -mcpu=mips32 \
4; RUN: < %s | FileCheck %s
Reed Kotlerbab3f232014-05-01 20:39:21 +00005
6@abcd = external global i32
7
8; Function Attrs: nounwind
9define void @foo() {
10entry:
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