Skip to content

Instantly share code, notes, and snippets.

View kateinoigakukun's full-sized avatar

Yuta Saito kateinoigakukun

View GitHub Profile
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() {
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() {
target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
target triple = "wasm32-unknown-wasi"
define swiftcc void @foo(i32, i32) {
ret void
}
@data = global i8* bitcast (void (i32, i32)* @foo to i8*)
define swiftcc void @bar(i8* %input) {
%1 = load i8*, i8** @data
This file has been truncated, but you can view the full file.
; ModuleID = '/var/folders/36/f44c1x4d081f4l5zmx_68x5w0000gn/T/Builtins-2ef819.bc'
source_filename = "/var/folders/36/f44c1x4d081f4l5zmx_68x5w0000gn/T/Builtins-2ef819.bc"
target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
target triple = "wasm32-unknown-wasi"
%T14StdlibUnittest9TestSuiteC = type <{ %swift.refcounted }>
%swift.refcounted = type { %swift.type*, i32 }
%swift.type = type { i32 }
%TSi = type <{ i32 }>
%swift.full_boxmetadata = type { void (%swift.refcounted*)*, i8**, %swift.type, i32, i8* }
wasm-DEVELOPMENT-SNAPSHOT-2020-03-05-a
This file has been truncated, but you can view the full file.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Xunit Viewer</title>
<meta name="title" content="Xunit Viewer">
<meta content="https://github.io/lukejpreston/xunit-view/logo.png" property="og:image">
<link href="https://github.io/lukejpreston/xunit-view/favicon.ico" rel="shortcut icon">
<meta name="description" content="1496 Skipped, 3465 Passed, 121 Failure"">
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8" ?>
<testsuites>
<testsuite name="Swift(wasi-wasm32)" tests="4926" failures="137" skipped="1567">
<testcase classname="Swift(wasi-wasm32).stdlib" name="NumericParsing.swift.gyb" time="259.99">
<failure ><![CDATA[Script:
--
: 'RUN: at line 13'; rm -rf "/home/katei/swiftwasm-source/build/Ninja-ReleaseAssert+stdlib-DebugAssert/swift-linux-x86_64/test-wasi-wasm32/stdlib/Output/NumericParsing.swift.gyb.tmp" && mkdir -p "/home/katei/swiftwasm-source/build/Ninja-ReleaseAssert+stdlib-DebugAssert/swift-linux-x86_64/test-wasi-wasm32/stdlib/Output/NumericParsing.swift.gyb.tmp"
: 'RUN: at line 14'; '/usr/bin/python' /home/katei/swiftwasm-source/swift/utils/gyb.py -DCMAKE_SIZEOF_VOID_P=32 /home/katei/swiftwasm-source/swift/test/stdlib/NumericParsing.swift.gyb -o /home/katei/swiftwasm-source/build/Ninja-ReleaseAssert+stdlib-DebugAssert/swift-linux-x86_64/test-wasi-wasm32/stdlib/Output/NumericParsing.swift.gyb.tmp/NumericParsing.swift
: 'RUN: at line 15'; '/usr/bin/python' /home/ka
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8" ?>
<testsuites>
<testsuite name="Swift(wasi-wasm32)" tests="4926" failures="137" skipped="1567">
<testcase classname="Swift(wasi-wasm32).stdlib" name="NumericParsing.swift.gyb" time="259.99">
<failure ><![CDATA[Script:
--
: 'RUN: at line 13'; rm -rf "/home/katei/swiftwasm-source/build/Ninja-ReleaseAssert+stdlib-DebugAssert/swift-linux-x86_64/test-wasi-wasm32/stdlib/Output/NumericParsing.swift.gyb.tmp" && mkdir -p "/home/katei/swiftwasm-source/build/Ninja-ReleaseAssert+stdlib-DebugAssert/swift-linux-x86_64/test-wasi-wasm32/stdlib/Output/NumericParsing.swift.gyb.tmp"
: 'RUN: at line 14'; '/usr/bin/python' /home/katei/swiftwasm-source/swift/utils/gyb.py -DCMAKE_SIZEOF_VOID_P=32 /home/katei/swiftwasm-source/swift/test/stdlib/NumericParsing.swift.gyb -o /home/katei/swiftwasm-source/build/Ninja-ReleaseAssert+stdlib-DebugAssert/swift-linux-x86_64/test-wasi-wasm32/stdlib/Output/NumericParsing.swift.gyb.tmp/NumericParsing.swift
: 'RUN: at line 15'; '/usr/bin/python' /home/ka
This file has been truncated, but you can view the full file.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Xunit Viewer</title>
<meta name="title" content="Xunit Viewer">
<meta content="https://github.io/lukejpreston/xunit-view/logo.png" property="og:image">
<link href="https://github.io/lukejpreston/xunit-view/favicon.ico" rel="shortcut icon">
<meta name="description" content="1476 Skipped, 3418 Passed, 143 Failure"">
#include <stdlib.h>
int load_ptr(void *ptr) {
int *int_ptr = (int *)ptr;
return *int_ptr;
}
int main(void) {
return load_ptr(NULL);
}