Mercurial > hg > CbC > CbC_llvm
comparison test/CodeGen/X86/segmented-stacks.ll @ 95:afa8332a0e37 LLVM3.8
LLVM 3.8
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 13 Oct 2015 17:48:58 +0900 |
parents | 60c9769439b8 |
children | 1172e4bd9c6f |
comparison
equal
deleted
inserted
replaced
84:f3e34b893a5f | 95:afa8332a0e37 |
---|---|
9 ; RUN: llc < %s -mcpu=generic -mtriple=i686-dragonfly -verify-machineinstrs | FileCheck %s -check-prefix=X32-DFlyBSD | 9 ; RUN: llc < %s -mcpu=generic -mtriple=i686-dragonfly -verify-machineinstrs | FileCheck %s -check-prefix=X32-DFlyBSD |
10 ; RUN: llc < %s -mcpu=generic -mtriple=x86_64-dragonfly -verify-machineinstrs | FileCheck %s -check-prefix=X64-DFlyBSD | 10 ; RUN: llc < %s -mcpu=generic -mtriple=x86_64-dragonfly -verify-machineinstrs | FileCheck %s -check-prefix=X64-DFlyBSD |
11 ; RUN: llc < %s -mcpu=generic -mtriple=x86_64-mingw32 -verify-machineinstrs | FileCheck %s -check-prefix=X64-MinGW | 11 ; RUN: llc < %s -mcpu=generic -mtriple=x86_64-mingw32 -verify-machineinstrs | FileCheck %s -check-prefix=X64-MinGW |
12 | 12 |
13 ; We used to crash with filetype=obj | 13 ; We used to crash with filetype=obj |
14 ; RUN: llc < %s -mcpu=generic -mtriple=i686-linux -filetype=obj | 14 ; RUN: llc < %s -mcpu=generic -mtriple=i686-linux -filetype=obj -o /dev/null |
15 ; RUN: llc < %s -mcpu=generic -mtriple=x86_64-linux -filetype=obj | 15 ; RUN: llc < %s -mcpu=generic -mtriple=x86_64-linux -filetype=obj -o /dev/null |
16 ; RUN: llc < %s -mcpu=generic -mtriple=x86_64-linux-gnux32 -filetype=obj | 16 ; RUN: llc < %s -mcpu=generic -mtriple=x86_64-linux-gnux32 -filetype=obj -o /dev/null |
17 ; RUN: llc < %s -mcpu=generic -mtriple=i686-darwin -filetype=obj | 17 ; RUN: llc < %s -mcpu=generic -mtriple=i686-darwin -filetype=obj -o /dev/null |
18 ; RUN: llc < %s -mcpu=generic -mtriple=x86_64-darwin -filetype=obj | 18 ; RUN: llc < %s -mcpu=generic -mtriple=x86_64-darwin -filetype=obj -o /dev/null |
19 ; RUN: llc < %s -mcpu=generic -mtriple=i686-mingw32 -filetype=obj | 19 ; RUN: llc < %s -mcpu=generic -mtriple=i686-mingw32 -filetype=obj -o /dev/null |
20 ; RUN: llc < %s -mcpu=generic -mtriple=x86_64-freebsd -filetype=obj | 20 ; RUN: llc < %s -mcpu=generic -mtriple=x86_64-freebsd -filetype=obj -o /dev/null |
21 ; RUN: llc < %s -mcpu=generic -mtriple=i686-dragonfly -filetype=obj | 21 ; RUN: llc < %s -mcpu=generic -mtriple=i686-dragonfly -filetype=obj -o /dev/null |
22 ; RUN: llc < %s -mcpu=generic -mtriple=x86_64-dragonfly -filetype=obj | 22 ; RUN: llc < %s -mcpu=generic -mtriple=x86_64-dragonfly -filetype=obj -o /dev/null |
23 ; RUN: llc < %s -mcpu=generic -mtriple=x86_64-mingw32 -filetype=obj | 23 ; RUN: llc < %s -mcpu=generic -mtriple=x86_64-mingw32 -filetype=obj -o /dev/null |
24 | 24 |
25 ; RUN: not llc < %s -mcpu=generic -mtriple=x86_64-solaris 2> %t.log | 25 ; RUN: not llc < %s -mcpu=generic -mtriple=x86_64-solaris 2> %t.log |
26 ; RUN: FileCheck %s -input-file=%t.log -check-prefix=X64-Solaris | 26 ; RUN: FileCheck %s -input-file=%t.log -check-prefix=X64-Solaris |
27 ; RUN: not llc < %s -mcpu=generic -mtriple=i686-freebsd 2> %t.log | 27 ; RUN: not llc < %s -mcpu=generic -mtriple=i686-freebsd 2> %t.log |
28 ; RUN: FileCheck %s -input-file=%t.log -check-prefix=X32-FreeBSD | 28 ; RUN: FileCheck %s -input-file=%t.log -check-prefix=X32-FreeBSD |
150 ; X64-DFlyBSD-NEXT: ret | 150 ; X64-DFlyBSD-NEXT: ret |
151 | 151 |
152 } | 152 } |
153 | 153 |
154 define i32 @test_nested(i32 * nest %closure, i32 %other) #0 { | 154 define i32 @test_nested(i32 * nest %closure, i32 %other) #0 { |
155 %addend = load i32 * %closure | 155 %addend = load i32 , i32 * %closure |
156 %result = add i32 %other, %addend | 156 %result = add i32 %other, %addend |
157 %mem = alloca i32, i32 10 | 157 %mem = alloca i32, i32 10 |
158 call void @dummy_use (i32* %mem, i32 10) | 158 call void @dummy_use (i32* %mem, i32 10) |
159 ret i32 %result | 159 ret i32 %result |
160 | 160 |