Binary mode tweaks

This commit is contained in:
Matt Godbolt
2016-06-13 21:20:30 -05:00
parent b9aca47516
commit 4e89ed2db9
4 changed files with 7 additions and 2 deletions
+1
View File
@@ -1,3 +1,4 @@
isCl=true
compileToAsm=/FAsc
compileToBinary=/FAsc
supportsBinary=true
+4
View File
@@ -12,7 +12,11 @@ int testFunction(int* input, int length) {
|| __has_builtin(__builtin_assume_aligned)
input = static_cast<int*>(__builtin_assume_aligned(input, 64));
#endif
#if _MSC_VER
__assume((length & 63) == 0);
#else
if (length & 63) __builtin_unreachable();
#endif
int sum = 0;
for (int i = 0; i < length; ++i) {
sum += input[i];
+1 -1
View File
@@ -215,7 +215,7 @@
});
}
});
var directive = /^\s*(\.|([_A-Z]+\b))/;
var labelDefinition = /^([a-zA-Z0-9$_.]+):/;
var commentOnly = /^\s*([#@;]|\/\/).*/;
+1 -1
View File
@@ -261,7 +261,7 @@ Compile.prototype.compile = function (source, compiler, options, filters) {
if (!filters.binary) {
compileToAsm = compilerProps("compileToAsm", "-S").split(" ");
} else {
compileToAsm = [];
compileToAsm = compilerProps("compileToBinary", "").split(" ");
}
if (compilerInfo.isCl) {
options = options.concat(['/c', '/Fa' + outputFilename, '/Fo' + outputFilename + ".obj"]);