forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add basic functionality for assignment of ints.
This creates a lot of core infrastructure in which to add, with little effort, quite a bit more to mips fast-isel Test Plan: simplestore.ll Reviewers: dsanders Reviewed By: dsanders Differential Revision: http://reviews.llvm.org/D3527 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207790 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
Reed Kotler
committed
May 1, 2014
1 parent
8c31379
commit c02fc3d
Showing
2 changed files
with
182 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
; RUN: llc -march=mipsel -relocation-model=pic -O0 -mips-fast-isel -fast-isel-abort -mcpu=mips32r2 \ | ||
; RUN: < %s | FileCheck %s | ||
|
||
@abcd = external global i32 | ||
|
||
; Function Attrs: nounwind | ||
define void @foo() { | ||
entry: | ||
store i32 12345, i32* @abcd, align 4 | ||
; CHECK: addiu $[[REG1:[0-9]+]], $zero, 12345 | ||
; CHECK: lw $[[REG2:[0-9]+]], %got(abcd)(${{[0-9]+}}) | ||
; CHECK: sw $[[REG1]], 0($[[REG2]]) | ||
ret void | ||
} | ||
|