~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/CodeGen/X86/x86-64-sret-return-2.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: llc -mtriple=x86_64-apple-darwin8 < %s | FileCheck %s
 
2
; RUN: llc -mtriple=x86_64-pc-linux < %s | FileCheck %s
 
3
 
 
4
; FIXME: x32 doesn't know how to select this.  This isn't a regression, it never
 
5
; worked.
 
6
; RUNX: llc -mtriple=x86_64-pc-linux-gnux32 < %s | FileCheck -check-prefix=X32ABI %s
 
7
 
 
8
; This used to crash due to topological sorting issues in selection DAG.
 
9
define void @foo(i32* sret %agg.result, i32, i32, i32, i32, i32, void (i32)* %pred) {
 
10
entry:
 
11
  call void %pred(i32 undef)
 
12
  ret void
 
13
 
 
14
; CHECK-LABEL: foo:
 
15
; CHECK: callq
 
16
; CHECK: movq {{.*}}, %rax
 
17
; CHECK: ret
 
18
}