1 ; RUN: opt < %s -passes=argpromotion -S | FileCheck %s
3 ; CHECK-LABEL: define i32 @foo() #0 {
4 ; CHECK-NEXT: %.val = load <32 x half>, ptr undef, align 4
5 ; CHECK-NEXT: call void @bar(<32 x half> %.val)
6 ; CHECK-NEXT: ret i32 0
9 ; CHECK-LABEL: define internal void @bar(<32 x half> %.0.val) #0 {
10 ; CHECK-NEXT: ret void
13 ; CHECK: attributes #0 = { uwtable "min-legal-vector-width"="512" }
15 define i32 @foo() #0 {
16 call void @bar(ptr undef)
20 define internal void @bar(ptr) #0 {
21 %2 = load <32 x half>, ptr %0, align 4
25 attributes #0 = { uwtable "min-legal-vector-width"="0" }