1 # RUN: llc -mtriple=wasm32-unknown-unknown %s -o - -run-pass wasm-argument-move | FileCheck %s
3 # wasm-argument-move pass moves all ARGUMENT instructions to the top of the
7 # CHECK-LABEL: argument_i32
10 ; CHECK-NEXT: %1:i32 = ARGUMENT_i32 0
12 %0:i32 = CONST_I32 0, implicit-def $arguments
13 %1:i32 = ARGUMENT_i32 0, implicit $arguments
14 RETURN_VOID implicit-def $arguments
18 # CHECK-LABEL: argument_i64
21 ; CHECK-NEXT: %1:i64 = ARGUMENT_i64 0
23 %0:i32 = CONST_I32 0, implicit-def $arguments
24 %1:i64 = ARGUMENT_i64 0, implicit $arguments
25 RETURN_VOID implicit-def $arguments
29 # CHECK-LABEL: argument_f32
32 ; CHECK-NEXT: %1:f32 = ARGUMENT_f32 0
34 %0:i32 = CONST_I32 0, implicit-def $arguments
35 %1:f32 = ARGUMENT_f32 0, implicit $arguments
36 RETURN_VOID implicit-def $arguments
40 # CHECK-LABEL: argument_f64
43 ; CHECK-NEXT: %1:f64 = ARGUMENT_f64 0
45 %0:i32 = CONST_I32 0, implicit-def $arguments
46 %1:f64 = ARGUMENT_f64 0, implicit $arguments
47 RETURN_VOID implicit-def $arguments
51 # CHECK-LABEL: argument_exnref
54 ; CHECK-NEXT: %1:exnref = ARGUMENT_exnref 0
56 %0:i32 = CONST_I32 0, implicit-def $arguments
57 %1:exnref = ARGUMENT_exnref 0, implicit $arguments
58 RETURN_VOID implicit-def $arguments