internal/cabi: fix arch arm
This commit is contained in:
26
internal/cabi/_testdata/arch/wasm32/demo.ll
Normal file
26
internal/cabi/_testdata/arch/wasm32/demo.ll
Normal file
@@ -0,0 +1,26 @@
|
||||
; ModuleID = '../../wrap/demo.c'
|
||||
source_filename = "../../wrap/demo.c"
|
||||
target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-f128:64-n32:64-S128-ni:1:10:20"
|
||||
target triple = "wasm32-unknown-emscripten"
|
||||
|
||||
%struct.st1 = type { i32, i32 }
|
||||
|
||||
; Function Attrs: noinline nounwind optnone
|
||||
define hidden void @fn1(%struct.st1* noalias sret(%struct.st1) align 4 %0, %struct.st1* noundef byval(%struct.st1) align 4 %1) #0 {
|
||||
%3 = bitcast %struct.st1* %0 to i8*
|
||||
%4 = bitcast %struct.st1* %1 to i8*
|
||||
call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %3, i8* align 4 %4, i32 8, i1 false)
|
||||
ret void
|
||||
}
|
||||
|
||||
; Function Attrs: argmemonly nofree nounwind willreturn
|
||||
declare void @llvm.memcpy.p0i8.p0i8.i32(i8* noalias nocapture writeonly, i8* noalias nocapture readonly, i32, i1 immarg) #1
|
||||
|
||||
attributes #0 = { noinline nounwind optnone "frame-pointer"="none" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" }
|
||||
attributes #1 = { argmemonly nofree nounwind willreturn }
|
||||
|
||||
!llvm.module.flags = !{!0}
|
||||
!llvm.ident = !{!1}
|
||||
|
||||
!0 = !{i32 1, !"wchar_size", i32 4}
|
||||
!1 = !{!"Apple clang version 14.0.3 (clang-1403.0.22.14.1)"}
|
||||
Reference in New Issue
Block a user