[InstCombine] Signed saturation patterns
[llvm-core.git] / test / MC / WebAssembly / libcall.ll
blob9f8abba70c0e029f60a541361d6c707735dfbca6
1 ; RUN: llc -filetype=obj %s -o - | obj2yaml | FileCheck %s
3 target triple = "wasm32-unknown-unknown"
5 define hidden void @call_memcpy(i8* align 4 %a, i8* align 4 %b) {
6 entry:
7   tail call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %a, i8* align 4 %b, i32 512, i1 false)
8   ret void
11 declare void @llvm.memcpy.p0i8.p0i8.i32(i8* nocapture writeonly, i8* nocapture readonly, i32, i1)
13 ; CHECK:      --- !WASM
14 ; CHECK-NEXT: FileHeader:
15 ; CHECK-NEXT:   Version:         0x00000001
16 ; CHECK-NEXT: Sections:
17 ; CHECK-NEXT:   - Type:            TYPE
18 ; CHECK-NEXT:     Signatures:
19 ; CHECK-NEXT:       - Index:           0
20 ; CHECK-NEXT:         ParamTypes:
21 ; CHECK-NEXT:           - I32
22 ; CHECK-NEXT:           - I32
23 ; CHECK-NEXT:         ReturnTypes:     []
24 ; CHECK-NEXT:       - Index:           1
25 ; CHECK-NEXT:         ParamTypes:
26 ; CHECK-NEXT:           - I32
27 ; CHECK-NEXT:           - I32
28 ; CHECK-NEXT:           - I32
29 ; CHECK-NEXT:         ReturnTypes:
30 ; CHECK-NEXT:           - I32
31 ; CHECK-NEXT:   - Type:            IMPORT