summaryrefslogtreecommitdiffstats
path: root/lld/test/wasm/stack-pointer.ll
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2017-12-08 18:37:44 +0000
committerSam Clegg <sbc@chromium.org>2017-12-08 18:37:44 +0000
commit2e25e896fb67dd49474b79685241985afd5b6851 (patch)
treeb8209e4964dfd8ce3e3e89bf8a555efac3cbe191 /lld/test/wasm/stack-pointer.ll
parentd4468912b0912c6fb08dc51d05e5a32aecbb7287 (diff)
downloadbcm5719-llvm-2e25e896fb67dd49474b79685241985afd5b6851.tar.gz
bcm5719-llvm-2e25e896fb67dd49474b79685241985afd5b6851.zip
[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
Diffstat (limited to 'lld/test/wasm/stack-pointer.ll')
-rw-r--r--lld/test/wasm/stack-pointer.ll5
1 files changed, 1 insertions, 4 deletions
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:
OpenPOWER on IntegriCloud