[WebAssembly] Don't perform the returned-argument optimization on constants.
[oota-llvm.git] / test / CodeGen / Generic / 2007-04-27-LargeMemObject.ll
1 ; RUN: llc -no-integrated-as < %s
2
3         %struct..0anon = type { [100 x i32] }
4
5 define void @test() {
6 entry:
7         %currfpu = alloca %struct..0anon, align 16              ; <%struct..0anon*> [#uses=2]
8         %mxcsr = alloca %struct..0anon, align 16                ; <%struct..0anon*> [#uses=1]
9         call void asm sideeffect "fnstenv $0", "=*m,~{dirflag},~{fpsr},~{flags}"( %struct..0anon* %currfpu )
10         call void asm sideeffect "$0  $1", "=*m,*m,~{dirflag},~{fpsr},~{flags}"( %struct..0anon* %mxcsr, %struct..0anon* %currfpu )
11         ret void
12 }
13