1 ; RUN: opt < %s -argpromotion -S | FileCheck %s
3 ; CHECK: define internal i32 @deref(i32 %x.val) #0 {
4 define internal i32 @deref(i32* %x) nounwind {
6 %tmp2 = load i32, i32* %x, align 4
10 define i32 @f(i32 %x) {
13 store i32 %x, i32* %x_addr, align 4
14 ; CHECK: %tmp1 = call i32 @deref(i32 %x_addr.val) [[NUW:#[0-9]+]]
15 %tmp1 = call i32 @deref( i32* %x_addr ) nounwind
19 ; CHECK: attributes [[NUW]] = { nounwind }