blob: af0df3eea247e580a77c9e703651d18c38a07c46 [file] [log] [blame]
Akira Hatanaka6b2d8412013-10-29 19:29:03 +00001; RUN: llc -march=mipsel < %s | FileCheck %s -check-prefix=32
John Baldwin1255b162017-08-14 21:49:38 +00002; RUN: llc -march=mipsel -stack-alignment=32 < %s | FileCheck %s -check-prefix=A32-32
Akira Hatanaka8f1caeb2013-11-11 21:49:03 +00003; RUN: llc -march=mipsel -mattr=+fp64 < %s | FileCheck %s -check-prefix=32
John Baldwineebcc4752017-08-11 22:07:56 +00004; RUN: llc -march=mips64el -mcpu=mips3 < %s | FileCheck %s -check-prefix=64
5; RUN: llc -march=mips64el -mcpu=mips4 < %s | FileCheck %s -check-prefix=64
Akira Hatanaka6b2d8412013-10-29 19:29:03 +00006; RUN: llc -march=mips64el -mcpu=mips64 < %s | FileCheck %s -check-prefix=64
John Baldwin1255b162017-08-14 21:49:38 +00007; RUN: llc -march=mips64el -mcpu=mips64 -stack-alignment=32 < %s | FileCheck %s -check-prefix=A32-64
Akira Hatanaka6b2d8412013-10-29 19:29:03 +00008
9; 32: addiu $sp, $sp, -8
John Baldwineebcc4752017-08-11 22:07:56 +000010; 64: daddiu $sp, $sp, -16
John Baldwin1255b162017-08-14 21:49:38 +000011; A32-32: addiu $sp, $sp, -32
12; A32-64: daddiu $sp, $sp, -32
Akira Hatanaka6b2d8412013-10-29 19:29:03 +000013
14define i32 @foo1() #0 {
15entry:
16 ret i32 14
17}
18
19attributes #0 = { "no-frame-pointer-elim"="true" }