[AArch64][SME2] Add multi-vector saturating doubling multiply high intrinsics
[llvm-project.git] / lld / test / wasm / lto / thinlto-thin-archive-collision.ll
blobd1000b3711364d76365646df2da1b4382109b1d7
1 ; Copied from lld/test/ELF/lto/thinlto-thin-archive-collision.ll
3 ; RUN: rm -fr %t && mkdir %t && cd %t
4 ; RUN: mkdir thinlto-archives thinlto-archives/a thinlto-archives/b
5 ; RUN: opt -thinlto-bc -o thinlto-archives/main.o %s
6 ; RUN: opt -thinlto-bc -o thinlto-archives/a/thin.o %S/Inputs/thin1.ll
7 ; RUN: opt -thinlto-bc -o thinlto-archives/b/thin.o %S/Inputs/thin2.ll
8 ; RUN: llvm-ar qcT thinlto-archives/thin.a thinlto-archives/a/thin.o thinlto-archives/b/thin.o
9 ; RUN: wasm-ld thinlto-archives/main.o thinlto-archives/thin.a -o thinlto-archives/main.exe --save-temps
10 ; RUN: FileCheck %s < thinlto-archives/main.exe.resolution.txt
12 ; CHECK: thinlto-archives/main.o
13 ; CHECK: thinlto-archives/thin.a(thin.o at {{[1-9][0-9]+}})
14 ; CHECK-NEXT: -r=thinlto-archives/thin.a(thin.o at {{[1-9][0-9]+}}),foo,p
15 ; CHECK: thinlto-archives/thin.a(thin.o at {{[1-9][0-9]+}})
16 ; CHECK-NEXT: -r=thinlto-archives/thin.a(thin.o at {{[1-9][0-9]+}}),blah,p
18 target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-n32:64-S128"
19 target triple = "wasm32-unknown-unknown"
21 declare i32 @blah(i32 %meh)
22 declare i32 @foo(i32 %goo)
24 define i32 @_start() {
25   call i32 @foo(i32 0)
26   call i32 @blah(i32 0)
27   ret i32 0