[fast-isel] The X86FastISel::FastLowerArguments function doesn't properly handle
[oota-llvm.git] / test / CodeGen / X86 / fast-isel-args-fail.ll
1 ; RUN: llc < %s -fast-isel -verify-machineinstrs -mtriple=x86_64-apple-darwin10
2 ; RUN: llc < %s -fast-isel -verify-machineinstrs -mtriple=x86_64-pc-win32 | FileCheck %s 
3 ; Requires: Asserts
4
5 ; Previously, this would cause an assert.
6 define i31 @t1(i31 %a, i31 %b, i31 %c) {
7 entry:
8   %add = add nsw i31 %b, %a
9   %add1 = add nsw i31 %add, %c
10   ret i31 %add1
11 }
12
13 ; We don't handle the Windows CC, yet.
14 define i32 @foo(i32* %p) {
15 entry:
16 ; CHECK: foo
17 ; CHECK: movl (%rcx), %eax
18   %0 = load i32* %p, align 4
19   ret i32 %0
20 }