2015-10-15 22:34:23 +08:00
|
|
|
; RUN: llc < %s -march=mips -mattr=mips16 | FileCheck %s -check-prefix=M16
|
2015-04-02 18:14:54 +08:00
|
|
|
; RUN: llc < %s -march=mips -mcpu=mips2 | FileCheck %s -check-prefix=GP32
|
|
|
|
; RUN: llc < %s -march=mips -mcpu=mips32 | FileCheck %s -check-prefix=GP32
|
|
|
|
; RUN: llc < %s -march=mips -mcpu=mips32r6 | FileCheck %s -check-prefix=GP32
|
2016-06-23 20:42:53 +08:00
|
|
|
; RUN: llc < %s -march=mips -mcpu=mips3 -target-abi n64 | FileCheck %s -check-prefix=GP64
|
|
|
|
; RUN: llc < %s -march=mips -mcpu=mips64 -target-abi n64 | FileCheck %s -check-prefix=GP64
|
|
|
|
; RUN: llc < %s -march=mips -mcpu=mips64r6 -target-abi n64 | FileCheck %s -check-prefix=GP64
|
2015-04-02 18:14:54 +08:00
|
|
|
|
|
|
|
declare void @bar(i32*)
|
|
|
|
|
|
|
|
define void @foo(i32 %sz) {
|
|
|
|
; ALL-LABEL: foo:
|
|
|
|
|
2016-06-23 20:42:53 +08:00
|
|
|
; M16-NOT: addiu $sp, 0 # 16 bit inst
|
|
|
|
; GP32-NOT: addiu $sp, $sp, 0
|
|
|
|
; GP64-NOT: daddiu $sp, $sp, 0
|
2015-04-02 18:14:54 +08:00
|
|
|
%a = alloca i32, i32 %sz
|
|
|
|
call void @bar(i32* %a)
|
|
|
|
ret void
|
|
|
|
}
|