Created
March 11, 2020 13:09
-
-
Save kateinoigakukun/8e32c6047425e66cdbc89b01c16b9a0d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128" | |
target triple = "wasm32-unknown-wasi" | |
define i32 @_start() { | |
entry: | |
call swiftcc void @foo() | |
ret i32 0 | |
} | |
define swiftcc void @foo() { | |
entry: | |
%0 = alloca i64 | |
store i64 1, i64* %0 | |
ret void | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment