source: icGREP/icgrep-devel/llvm-3.6.1.src/test/CodeGen/Mips/adjust-callstack-sp.ll @ 4664

Last change on this file since 4664 was 4664, checked in by cameron, 4 years ago

Upgrade LLVM to 3.6.1

File size: 808 bytes
Line 
1; RUN: llc < %s -march=mips -mcpu=mips16 | FileCheck %s -check-prefix=M16
2; RUN: llc < %s -march=mips -mcpu=mips2 | FileCheck %s -check-prefix=GP32
3; RUN: llc < %s -march=mips -mcpu=mips32 | FileCheck %s -check-prefix=GP32
4; RUN: llc < %s -march=mips -mcpu=mips32r6 | FileCheck %s -check-prefix=GP32
5; RUN: llc < %s -march=mips -mcpu=mips3 | FileCheck %s -check-prefix=GP64
6; RUN: llc < %s -march=mips -mcpu=mips64 | FileCheck %s -check-prefix=GP64
7; RUN: llc < %s -march=mips -mcpu=mips64r6 | FileCheck %s -check-prefix=GP64
8
9declare void @bar(i32*)
10
11define void @foo(i32 %sz) {
12  ; ALL-LABEL: foo:
13
14    ; M16-NOT:        addiu     $sp, 0 # 16 bit inst
15    ; GP32-NOT:       addiu     $sp, $sp, 0
16    ; GP64-NOT:       daddiu    $sp, $sp, 0
17  %a = alloca i32, i32 %sz
18  call void @bar(i32* %a)
19  ret void
20}
Note: See TracBrowser for help on using the repository browser.