mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 06:38:44 +00:00
3d20af9dc6
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
19 lines
391 B
LLVM
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]+}}
|
|
|