diff options
author | Reed Kotler <rkotler@mips.com> | 2013-09-15 02:09:08 +0000 |
---|---|---|
committer | Reed Kotler <rkotler@mips.com> | 2013-09-15 02:09:08 +0000 |
commit | 6febf857f690665bc33b84c957cdefb39a27f63d (patch) | |
tree | cb56034dacb33323397c6ce17780905e3bf62e46 /test | |
parent | 2ad0a2c122488318e965b0d3b7bcca1b5ea70c10 (diff) | |
download | llvm-6febf857f690665bc33b84c957cdefb39a27f63d.tar.gz llvm-6febf857f690665bc33b84c957cdefb39a27f63d.tar.bz2 llvm-6febf857f690665bc33b84c957cdefb39a27f63d.tar.xz |
Expand the mask capability for deciding which functions are mips16 and mips32
so it can be better used for general interoperability testing between mips32
and mips16.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190762 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/Mips/fp16mix.ll | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/test/CodeGen/Mips/fp16mix.ll b/test/CodeGen/Mips/fp16mix.ll new file mode 100644 index 0000000000..73b11562f4 --- /dev/null +++ b/test/CodeGen/Mips/fp16mix.ll @@ -0,0 +1,73 @@ +; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips16 -soft-float -mips16-hard-float -relocation-model=static -mips32-function-mask=10 -mips-os16 < %s | FileCheck %s -check-prefix=fmask1 + +; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips16 -soft-float -mips16-hard-float -relocation-model=static -mips32-function-mask=01 -mips-os16 < %s | FileCheck %s -check-prefix=fmask2 + +; Function Attrs: nounwind optsize readnone +define void @foo1() { +entry: + ret void +; fmask1: .ent foo1 +; fmask1: .set noreorder +; fmask1: .set nomacro +; fmask1: .set noat +; fmask1: .set at +; fmask1: .set macro +; fmask1: .set reorder +; fmask1: .end foo1 +; fmask2: .ent foo1 +; fmask2: save {{.*}} +; fmask2: .end foo1 +} + +; Function Attrs: nounwind optsize readnone +define void @foo2() { +entry: + ret void +; fmask2: .ent foo2 +; fmask2: .set noreorder +; fmask2: .set nomacro +; fmask2: .set noat +; fmask2: .set at +; fmask2: .set macro +; fmask2: .set reorder +; fmask2: .end foo2 +; fmask1: .ent foo2 +; fmask1: save {{.*}} +; fmask1: .end foo2 +} + +; Function Attrs: nounwind optsize readnone +define void @foo3() { +entry: + ret void +; fmask1: .ent foo3 +; fmask1: .set noreorder +; fmask1: .set nomacro +; fmask1: .set noat +; fmask1: .set at +; fmask1: .set macro +; fmask1: .set reorder +; fmask1: .end foo3 +; fmask2: .ent foo3 +; fmask2: save {{.*}} +; fmask2: .end foo3 +} + +; Function Attrs: nounwind optsize readnone +define void @foo4() { +entry: + ret void +; fmask2: .ent foo4 +; fmask2: .set noreorder +; fmask2: .set nomacro +; fmask2: .set noat +; fmask2: .set at +; fmask2: .set macro +; fmask2: .set reorder +; fmask2: .end foo4 +; fmask1: .ent foo4 +; fmask1: save {{.*}} +; fmask1: .end foo4 +} + + |