23 lines · plain
1; RUN: llc < %s -fast-isel -verify-machineinstrs -mtriple=x86_64-apple-darwin102; RUN: llc < %s -fast-isel -verify-machineinstrs -mtriple=x86_64-pc-win32 | FileCheck %s -check-prefix=WIN323; RUN: llc < %s -fast-isel -verify-machineinstrs -mtriple=x86_64-pc-win64 | FileCheck %s -check-prefix=WIN644 5; Previously, this would cause an assert.6define i31 @t1(i31 %a, i31 %b, i31 %c) {7entry:8 %add = add nsw i31 %b, %a9 %add1 = add nsw i31 %add, %c10 ret i31 %add111}12 13; We don't handle the Windows CC, yet.14define i32 @foo(ptr %p) {15entry:16; WIN32: foo17; WIN32: movl (%rcx), %eax18; WIN64: foo19; WIN64: movl (%rdi), %eax20 %0 = load i32, ptr %p, align 421 ret i32 %022}23