brintos

brintos / llvm-project-archived public Read only

0
0
Text · 512 B · 5465be8 Raw
16 lines · plain
1; RUN: llc -mtriple=i686-windows-msvc < %s -o /dev/null2; RUN: not --crash llc -mtriple=x86_64-windows-msvc %s -o /dev/null 2>&1 | FileCheck %s3 4; This will compile successfully on x86 but not x86_64, because %b will become a5; register parameter.6 7declare x86_thiscallcc i32 @f(i32 %a, ptr inalloca(i32) %b)8define void @g() {9  %b = alloca inalloca i3210  store i32 2, ptr %b11  call x86_thiscallcc i32 @f(i32 0, ptr inalloca(i32) %b)12  ret void13}14 15; CHECK: cannot use inalloca attribute on a register parameter16