From 2e25e896fb67dd49474b79685241985afd5b6851 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Fri, 8 Dec 2017 18:37:44 +0000 Subject: [WebAssembly] Improve wasm test cases Add test for weakly defined symbols with the same name Improve test for call-indirect to include the same call in two different objects. This lays the ground work to improve the output via de-duplicating the indirect call table: https://reviews.llvm.org/D40989 Also make all tests consistently pass -mtriple rather than declaring in the sources. Differential Revision: https://reviews.llvm.org/D41024 llvm-svn: 320172 --- lld/test/wasm/stack-pointer.ll | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lld/test/wasm/stack-pointer.ll') diff --git a/lld/test/wasm/stack-pointer.ll b/lld/test/wasm/stack-pointer.ll index a443f510306..cec0099f429 100644 --- a/lld/test/wasm/stack-pointer.ll +++ b/lld/test/wasm/stack-pointer.ll @@ -1,10 +1,7 @@ -; RUN: llc -filetype=obj %s -o %t.o +; RUN: llc -filetype=obj -mtriple=wasm32-unknown-uknown-wasm %s -o %t.o ; RUN: lld -flavor wasm --emit-relocs -o %t.wasm %t.o ; RUN: obj2yaml %t.wasm | FileCheck %s -target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128" -target triple = "wasm32-unknown-unknown-wasm" - ; Function Attrs: nounwind define hidden i32 @_start() local_unnamed_addr { entry: -- cgit v1.2.1