Skip to content

Instantly share code, notes, and snippets.

/*
* This is a RANDOMLY GENERATED PROGRAM.
*
* Generator: csmith 2.2.0
* Git version: bf42ffd
* Options: --no-volatiles --no-packed-struct
* Seed: 4217199412
*/
#include "csmith.h"
@kripken
kripken / diff
Created February 24, 2014 22:20
llvm 3.2 vs 3.3 issue
--- 3_2/sm-f32_primes.cpp.js 2014-02-24 14:13:42.053423482 -0800
+++ fastcomp/sm-f32_primes.cpp.js 2014-02-24 14:15:16.769421681 -0800
@@ -5448,21 +5448,21 @@
var _emscripten_memcpy_big=env._emscripten_memcpy_big;
var _fflush=env._fflush;
var _sqrtf=env._sqrtf;
var tempFloat = Math_fround(0);
// EMSCRIPTEN_START_FUNCS
function runPostSets() {}
@kripken
kripken / allocafuzz
Created March 4, 2014 19:36
alloca fuzz
/*
* This is a RANDOMLY GENERATED PROGRAM.
*
* Generator: csmith 2.2.0
* Git version: bf42ffd
* Options: --no-volatiles --no-packed-struct
* Seed: 2289079100
*/
#include "csmith.h"
//
// t28863.c
// Generated by Moh's fuzzer on Sun Apr 13 21:57:25 2014
//
// Intel Corporation
//
#include <stdio.h>
#define N 100
<!doctype html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Emscripten-Generated Code</title>
<style>
body {
font-family: arial;
margin: 0;
DEBUG root: PYTHON not defined in ~/.emscripten, using "/usr/bin/python2"
/media/alon/2f9a30d7-6124-42d9-87c5-3c80cb70ec54/home/alon/Dev/emscripten/emcc -DLIBSASS_VERSION="\"3.1.0-dirty\"" -fPIC -c -o cencode.o cencode.c
DEBUG root: PYTHON not defined in ~/.emscripten, using "/usr/bin/python2"
WARNING root: invocation: /media/alon/2f9a30d7-6124-42d9-87c5-3c80cb70ec54/home/alon/Dev/emscripten/emcc -DLIBSASS_VERSION="3.1.0-dirty" -fPIC -c -o cencode.o cencode.c (in /media/alon/2f9a30d7-6124-42d9-87c5-3c80cb70ec54/home/alon/Downloads/temp/21/sass.js/libsass/libsass)
INFO root: (Emscripten: Running sanity checks)
DEBUG root: compiling to bitcode
DEBUG root: emcc step "parse arguments and setup" took 0.00 seconds
DEBUG root: compiling source file: cencode.c
DEBUG root: running: /home/alon/Dev/fastcomp/build/Release+Asserts/bin/clang -target asmjs-unknown-emscripten -D__EMSCRIPTEN_major__=1 -D__EMSCRIPTEN_minor__=29 -D__EMS
From 56b78d937b91aa597193be1c5a0d681d2df0e5e7 Mon Sep 17 00:00:00 2001
From: Alessandro Pignotti <a.pignotti@sssup.it>
Date: Tue, 16 Jun 2015 16:55:33 +0200
Subject: [PATCH] Add Cheerp support to test runner
---
cheerptrampoline.cpp | 43 +++++
tests/box2d/Benchmark.cpp | 26 ++-
.../box2d/Box2D/Collision/Shapes/b2ChainShape.cpp | 11 +-
.../box2d/Box2D/Collision/Shapes/b2CircleShape.cpp | 3 +-
diff --git a/src/parseTools.js b/src/parseTools.js
index 7d62b34..c90391f 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -405,15 +405,15 @@ function parseLLVMSegment(segment) {
function cleanSegment(segment) {
while (segment.length >= 2 && ['noalias', 'sret', 'nocapture', 'nest', 'zeroext', 'signext'].indexOf(segment[1].text) != -1) {
segment.splice(1, 1);
}
return segment;
diff --git a/src/intertyper.js b/src/intertyper.js
index 74f38e3..9fd03bb 100644
--- a/src/intertyper.js
+++ b/src/intertyper.js
@@ -615,15 +615,16 @@ function intertyper(data, parseFunctions, baseLineNum) {
}
while (item.tokens[1].text in LLVM.PARAM_ATTR || item.tokens[1].text in LLVM.CALLING_CONVENTIONS) {
item.tokens.splice(1, 1);
}
item.type = item.tokens[1].text;
@kripken
kripken / gist:1343182
Created November 6, 2011 17:04
Response to JavaScript/Emscripten Skinning Benchmarks by Chad Austin
# A response to
# http://chadaustin.me/2011/11/digging-into-javascript-performance-part-2/
# C++
$ g++ -Wall -O2 -o skinning_test_no_simd skinning_test_no_simd.cpp
$ ./skinning_test_no_simd
Skinned vertices per second: 19730000, blah=0.000000