Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / WebAssembly / libcall.ll
blob8b81f150da892aa74e03f2103512bf81eead1f41
1 ; RUN: llc -filetype=obj %s -o - | obj2yaml | FileCheck %s
3 target triple = "wasm32-unknown-unknown"
5 define hidden void @call_memcpy(ptr align 4 %a, ptr align 4 %b) {
6 entry:
7   tail call void @llvm.memcpy.p0.p0.i32(ptr align 4 %a, ptr align 4 %b, i32 512, i1 false)
8   ret void
11 declare void @llvm.memcpy.p0.p0.i32(ptr nocapture writeonly, ptr nocapture readonly, i32, i1)
13 ; CHECK:      --- !WASM
14 ; CHECK-NEXT: FileHeader:
15 ; CHECK-NEXT:   Version:         0x1
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