Skip to content

Commit 26b8333

Browse files
committed
Update tests.
1 parent 84dfea0 commit 26b8333

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

clang/test/Preprocessor/wasm-target-features.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@
166166
// GENERIC-INCLUDE-DAG: #define __wasm_mutable_globals__ 1{{$}}
167167
// GENERIC-INCLUDE-DAG: #define __wasm_reference_types__ 1{{$}}
168168
// GENERIC-INCLUDE-DAG: #define __wasm_sign_ext__ 1{{$}}
169+
// GENERIC-INCLUDE-DAG: #define __wasm_nontrapping_fptoint__ 1{{$}}
170+
// GENERIC-INCLUDE-DAG: #define __wasm_bulk_memory__ 1{{$}}
169171
//
170172
// RUN: %clang -E -dM %s -o - 2>&1 \
171173
// RUN: -target wasm32-unknown-unknown -mcpu=generic \
@@ -175,12 +177,10 @@
175177
// RUN: | FileCheck %s -check-prefix=GENERIC
176178
//
177179
// GENERIC-NOT: #define __wasm_atomics__ 1{{$}}
178-
// GENERIC-NOT: #define __wasm_bulk_memory__ 1{{$}}
179180
// GENERIC-NOT: #define __wasm_exception_handling__ 1{{$}}
180181
// GENERIC-NOT: #define __wasm_extended_const__ 1{{$}}
181182
// GENERIC-NOT: #define __wasm__fp16__ 1{{$}}
182183
// GENERIC-NOT: #define __wasm_multimemory__ 1{{$}}
183-
// GENERIC-NOT: #define __wasm_nontrapping_fptoint__ 1{{$}}
184184
// GENERIC-NOT: #define __wasm_relaxed_simd__ 1{{$}}
185185
// GENERIC-NOT: #define __wasm_simd128__ 1{{$}}
186186
// GENERIC-NOT: #define __wasm_tail_call__ 1{{$}}

lld/test/wasm/custom-section-name.ll

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc -filetype=obj %s -o %t.o
1+
; RUN: llc -filetype=obj -mattr=-bulk-memory %s -o %t.o
22
; RUN: wasm-ld -no-gc-sections --no-entry -o %t.wasm %t.o
33
; RUN: obj2yaml %t.wasm | FileCheck %s --check-prefixes=CHECK,NO-BSS
44
; RUN: wasm-ld -no-gc-sections --no-entry --import-memory -o %t.bss.wasm %t.o

lld/test/wasm/data-segments.ll

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc --mtriple=wasm32-unknown-unknown -filetype=obj %s -o %t.atomics.o -mattr=+atomics
1+
; RUN: llc --mtriple=wasm32-unknown-unknown -filetype=obj %s -o %t.atomics.o -mattr=+atomics,-bulk-memory
22
; RUN: llc --mtriple=wasm32-unknown-unknown -filetype=obj %s -o %t.bulk-mem.o -mattr=+bulk-memory
33
; RUN: llc --mtriple=wasm64-unknown-unknown -filetype=obj %s -o %t.bulk-mem64.o -mattr=+bulk-memory
44
; RUN: llc --mtriple=wasm32-unknown-unknown -filetype=obj %s -o %t.atomics.bulk-mem.o -mattr=+atomics,+bulk-memory

lld/test/wasm/lto/libcall-archive.ll

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; RUN: llvm-as -o %t.o %s
33
; RUN: llvm-as -o %t2.o %S/Inputs/libcall-archive.ll
44
; RUN: llvm-ar rcs %t.a %t2.o
5-
; RUN: wasm-ld -o %t %t.o %t.a
5+
; RUN: wasm-ld -mllvm -mattr=-bulk-memory -o %t %t.o %t.a
66
; RUN: obj2yaml %t | FileCheck %s
77

88
target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-n32:64-S128"

lld/test/wasm/lto/stub-library-libcall.s

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t_main.o %t/main.s
33
# RUN: llvm-as %S/Inputs/foo.ll -o %t_foo.o
44
# RUN: llvm-as %S/Inputs/libcall.ll -o %t_libcall.o
5-
# RUN: wasm-ld %t_main.o %t_libcall.o %t_foo.o %p/Inputs/stub.so -o %t.wasm
5+
# RUN: wasm-ld -mllvm -mattr=-bulk-memory %t_main.o %t_libcall.o %t_foo.o %p/Inputs/stub.so -o %t.wasm
66
# RUN: obj2yaml %t.wasm | FileCheck %s
77

88
# The function `func_with_libcall` will generate an undefined reference to

0 commit comments

Comments
 (0)