11; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
2- ; RUN: llc < %s -mcpu=mvp -mattr=+reference-types | FileCheck %s
3-
4- target triple = "wasm32-unknown-unknown"
2+ ; RUN: llc < %s --mtriple=wasm32-unknown-unknown -mcpu=mvp -mattr=+reference-types | FileCheck --check-prefixes CHECK,CHK32 %s
3+ ; RUN: llc < %s --mtriple=wasm64-unknown-unknown -mcpu=mvp -mattr=+reference-types | FileCheck --check-prefixes CHECK,CHK64 %s
54
65define void @test_fpsig_void_void (ptr noundef %func ) local_unnamed_addr #0 {
76; CHECK-LABEL: test_fpsig_void_void:
8- ; CHECK: .functype test_fpsig_void_void (i32) -> ()
7+ ; CHK32: .functype test_fpsig_void_void (i32) -> ()
8+ ; CHK64: .functype test_fpsig_void_void (i64) -> ()
99; CHECK-NEXT: # %bb.0: # %entry
1010; CHECK-NEXT: local.get 0
1111; CHECK-NEXT: table.get __indirect_function_table
2020
2121define void @test_fpsig_return_i32 (ptr noundef %func ) local_unnamed_addr #0 {
2222; CHECK-LABEL: test_fpsig_return_i32:
23- ; CHECK: .functype test_fpsig_return_i32 (i32) -> ()
23+ ; CHK32: .functype test_fpsig_return_i32 (i32) -> ()
24+ ; CHK64: .functype test_fpsig_return_i32 (i64) -> ()
2425; CHECK-NEXT: # %bb.0: # %entry
2526; CHECK-NEXT: local.get 0
2627; CHECK-NEXT: table.get __indirect_function_table
3536
3637define void @test_fpsig_return_i64 (ptr noundef %func ) local_unnamed_addr #0 {
3738; CHECK-LABEL: test_fpsig_return_i64:
38- ; CHECK: .functype test_fpsig_return_i64 (i32) -> ()
39+ ; CHK32: .functype test_fpsig_return_i64 (i32) -> ()
40+ ; CHK64: .functype test_fpsig_return_i64 (i64) -> ()
3941; CHECK-NEXT: # %bb.0: # %entry
4042; CHECK-NEXT: local.get 0
4143; CHECK-NEXT: table.get __indirect_function_table
5052
5153define void @test_fpsig_return_f32 (ptr noundef %func ) local_unnamed_addr #0 {
5254; CHECK-LABEL: test_fpsig_return_f32:
53- ; CHECK: .functype test_fpsig_return_f32 (i32) -> ()
55+ ; CHK32: .functype test_fpsig_return_f32 (i32) -> ()
56+ ; CHK64: .functype test_fpsig_return_f32 (i64) -> ()
5457; CHECK-NEXT: # %bb.0: # %entry
5558; CHECK-NEXT: local.get 0
5659; CHECK-NEXT: table.get __indirect_function_table
6568
6669define void @test_fpsig_return_f64 (ptr noundef %func ) local_unnamed_addr #0 {
6770; CHECK-LABEL: test_fpsig_return_f64:
68- ; CHECK: .functype test_fpsig_return_f64 (i32) -> ()
71+ ; CHK32: .functype test_fpsig_return_f64 (i32) -> ()
72+ ; CHK64: .functype test_fpsig_return_f64 (i64) -> ()
6973; CHECK-NEXT: # %bb.0: # %entry
7074; CHECK-NEXT: local.get 0
7175; CHECK-NEXT: table.get __indirect_function_table
8185
8286define void @test_fpsig_param_i32 (ptr noundef %func ) local_unnamed_addr #0 {
8387; CHECK-LABEL: test_fpsig_param_i32:
84- ; CHECK: .functype test_fpsig_param_i32 (i32) -> ()
88+ ; CHK32: .functype test_fpsig_param_i32 (i32) -> ()
89+ ; CHK64: .functype test_fpsig_param_i32 (i64) -> ()
8590; CHECK-NEXT: # %bb.0: # %entry
8691; CHECK-NEXT: local.get 0
8792; CHECK-NEXT: table.get __indirect_function_table
@@ -97,7 +102,8 @@ entry:
97102
98103define void @test_fpsig_multiple_params_and_returns (ptr noundef %func ) local_unnamed_addr #0 {
99104; CHECK-LABEL: test_fpsig_multiple_params_and_returns:
100- ; CHECK: .functype test_fpsig_multiple_params_and_returns (i32) -> ()
105+ ; CHK32: .functype test_fpsig_multiple_params_and_returns (i32) -> ()
106+ ; CHK64: .functype test_fpsig_multiple_params_and_returns (i64) -> ()
101107; CHECK-NEXT: # %bb.0: # %entry
102108; CHECK-NEXT: local.get 0
103109; CHECK-NEXT: table.get __indirect_function_table
0 commit comments