mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-28 22:29:56 +00:00
input filename so that opt doesn't print the input filename in the output so that grep lines in the tests don't unintentionally match strings in the input filename. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81537 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
379 B
LLVM
16 lines
379 B
LLVM
; RUN: opt < %s -argpromotion -S | grep nounwind | count 2
|
|
|
|
define internal i32 @deref(i32* %x) nounwind {
|
|
entry:
|
|
%tmp2 = load i32* %x, align 4 ; <i32> [#uses=1]
|
|
ret i32 %tmp2
|
|
}
|
|
|
|
define i32 @f(i32 %x) {
|
|
entry:
|
|
%x_addr = alloca i32 ; <i32*> [#uses=2]
|
|
store i32 %x, i32* %x_addr, align 4
|
|
%tmp1 = call i32 @deref( i32* %x_addr ) nounwind ; <i32> [#uses=1]
|
|
ret i32 %tmp1
|
|
}
|