Reed Kotler | bab3f23 | 2014-05-01 20:39:21 +0000 | [diff] [blame] | 1 | ; RUN: llc -march=mipsel -relocation-model=pic -O0 -mips-fast-isel -fast-isel-abort -mcpu=mips32r2 \ |
| 2 | ; RUN: < %s | FileCheck %s |
Reed Kotler | 32be74b | 2014-09-15 20:30:25 +0000 | [diff] [blame^] | 3 | ; RUN: llc -march=mipsel -relocation-model=pic -O0 -mips-fast-isel -fast-isel-abort -mcpu=mips32 \ |
| 4 | ; RUN: < %s | FileCheck %s |
Reed Kotler | bab3f23 | 2014-05-01 20:39:21 +0000 | [diff] [blame] | 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 | |