[llvm] 349a2c3 - [WebAssembly][MC] Update tests after recent removal of .size directives for functions
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 31 14:54:49 PDT 2022
Author: Sam Clegg
Date: 2022-08-31T14:54:13-07:00
New Revision: 349a2c37f929ea428f27c4d69601343296e71be4
URL: https://github.com/llvm/llvm-project/commit/349a2c37f929ea428f27c4d69601343296e71be4
DIFF: https://github.com/llvm/llvm-project/commit/349a2c37f929ea428f27c4d69601343296e71be4.diff
LOG: [WebAssembly][MC] Update tests after recent removal of .size directives for functions
These were missing from https://reviews.llvm.org/D132929
Added:
Modified:
llvm/test/CodeGen/WebAssembly/func.ll
llvm/test/CodeGen/WebAssembly/globl.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/WebAssembly/func.ll b/llvm/test/CodeGen/WebAssembly/func.ll
index 97518ffa3ce41..2a12fcda8b023 100644
--- a/llvm/test/CodeGen/WebAssembly/func.ll
+++ b/llvm/test/CodeGen/WebAssembly/func.ll
@@ -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
diff --git a/llvm/test/CodeGen/WebAssembly/globl.ll b/llvm/test/CodeGen/WebAssembly/globl.ll
index 23a99330fcfc1..6762f11bb3448 100644
--- a/llvm/test/CodeGen/WebAssembly/globl.ll
+++ b/llvm/test/CodeGen/WebAssembly/globl.ll
@@ -5,7 +5,7 @@ target triple = "wasm32-unknown-unknown"
; CHECK: .globl foo
; CHECK: .type foo, at function
; CHECK-LABEL: foo:
-; CHECK: .size foo,
+; CHECK: end_function
define i32* @foo() {
ret i32* @bar
}
More information about the llvm-commits
mailing list