Skip to content

Commit 57c7be8

Browse files
committed
Test against wasm64 too
1 parent 781d7ae commit 57c7be8

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

llvm/test/CodeGen/WebAssembly/ref-test-func.ll

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
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

65
define 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
@@ -20,7 +20,8 @@ entry:
2020

2121
define 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
@@ -35,7 +36,8 @@ entry:
3536

3637
define 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
@@ -50,7 +52,8 @@ entry:
5052

5153
define 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
@@ -65,7 +68,8 @@ entry:
6568

6669
define 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
@@ -81,7 +85,8 @@ entry:
8185

8286
define 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

98103
define 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

Comments
 (0)