llvm/test/CodeGen/Mips/micromips-gp-rc.ll
Zoran Jovanovic 3d20af9dc6 [mips][microMIPS] Revert commits r264245 and r264248.
Commit r264245 was the reason for failing tests in LLVM test suite.
Commit r264248 depends on the first one.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265249 91177308-0d34-0410-b5e6-96231b3b80d8
2016-04-02 23:06:13 +00:00

19 lines
391 B
LLVM

; RUN: llc -march=mipsel -mcpu=mips32r2 -mattr=+micromips \
; RUN: -relocation-model=pic -O3 < %s | FileCheck %s
@g = external global i32
; Function Attrs: noreturn nounwind
define void @foo() #0 {
entry:
%0 = load i32, i32* @g, align 4
tail call void @exit(i32 signext %0)
unreachable
}
; Function Attrs: noreturn
declare void @exit(i32 signext)
; CHECK: move $gp, ${{[0-9]+}}