[WebAssembly][MC] Update tests after recent removal of .size directives for functions

These were missing from https://reviews.llvm.org/D132929
This commit is contained in:
Sam Clegg 2022-08-31 14:53:02 -07:00
parent a22af3e1eb
commit 349a2c37f9
2 changed files with 5 additions and 6 deletions

View File

@ -7,7 +7,6 @@ target triple = "wasm32-unknown-unknown"
; CHECK-LABEL: f0:
; CHECK: return{{$}}
; CHECK: end_function{{$}}
; CHECK: .size f0,
define void @f0() {
ret void
}
@ -16,7 +15,7 @@ define void @f0() {
; CHECK-NEXT: .functype f1 () -> (i32){{$}}
; CHECK-NEXT: i32.const $push[[NUM:[0-9]+]]=, 0{{$}}
; CHECK-NEXT: return $pop[[NUM]]{{$}}
; CHECK: .size f1,
; CHECK: end_function{{$}}
define i32 @f1() {
ret i32 0
}
@ -25,7 +24,7 @@ define i32 @f1() {
; CHECK-NEXT: .functype f2 (i32, f32) -> (i32){{$}}
; CHECK-NEXT: i32.const $push[[NUM:[0-9]+]]=, 0{{$}}
; CHECK-NEXT: return $pop[[NUM]]{{$}}
; CHECK: .size f2,
; CHECK: end_function{{$}}
define i32 @f2(i32 %p1, float %p2) {
ret i32 0
}
@ -34,7 +33,7 @@ define i32 @f2(i32 %p1, float %p2) {
; CHECK-NEXT: .functype f3 (i32, f32) -> (){{$}}
; CHECK-NOT: local
; CHECK-NEXT: return{{$}}
; CHECK: .size f3,
; CHECK: end_function{{$}}
define void @f3(i32 %p1, float %p2) {
ret void
}
@ -42,7 +41,7 @@ define void @f3(i32 %p1, float %p2) {
; CHECK-LABEL: f4:
; CHECK-NEXT: .functype f4 (i32) -> (i32){{$}}
; CHECK-NOT: local
; CHECK: .size f4,
; CHECK: end_function{{$}}
define i32 @f4(i32 %x) {
entry:
%c = trunc i32 %x to i1

View File

@ -5,7 +5,7 @@ target triple = "wasm32-unknown-unknown"
; CHECK: .globl foo
; CHECK: .type foo,@function
; CHECK-LABEL: foo:
; CHECK: .size foo,
; CHECK: end_function
define i32* @foo() {
ret i32* @bar
}