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 -check-prefix=WIN32 3 ; RUN: llc < %s -fast-isel -verify-machineinstrs -mtriple=x86_64-pc-win64 | FileCheck %s -check-prefix=WIN64 4 ; Requires: Asserts 5 6 ; Previously, this would cause an assert. 7 define i31 @t1(i31 %a, i31 %b, i31 %c) { 8 entry: 9 %add = add nsw i31 %b, %a 10 %add1 = add nsw i31 %add, %c 11 ret i31 %add1 12 } 13 14 ; We don't handle the Windows CC, yet. 15 define i32 @foo(i32* %p) { 16 entry: 17 ; WIN32: foo 18 ; WIN32: movl (%rcx), %eax 19 ; WIN64: foo 20 ; WIN64: movl (%rdi), %eax 21 %0 = load i32* %p, align 4 22 ret i32 %0 23 } 24