diff options
author | Derek Schuff <dschuff@chromium.org> | 2016-06-03 13:53:53 -0700 |
---|---|---|
committer | Derek Schuff <dschuff@chromium.org> | 2016-06-03 13:53:53 -0700 |
commit | 1826f4132d52a1c767f012fad5d1ab3e746e632b (patch) | |
tree | c9418aee9104d189f20d4d6af6fd16f82efd6742 | |
parent | f0e79fc18be7013f43f79317836dc71d623c40d6 (diff) | |
download | binaryen-1826f4132d52a1c767f012fad5d1ab3e746e632b.tar.gz binaryen-1826f4132d52a1c767f012fad5d1ab3e746e632b.tar.bz2 binaryen-1826f4132d52a1c767f012fad5d1ab3e746e632b.zip |
Update waterfall to 7268 (#566)
Also update torture-s tests.
This brings in the .functype directives and causes 2 more tests to pass.
999 files changed, 4051 insertions, 2503 deletions
diff --git a/test/revision b/test/revision index 38f6f3f87..089086295 100644 --- a/test/revision +++ b/test/revision @@ -1 +1 @@ -7246 +7268 diff --git a/test/s2wasm_known_gcc_test_failures.txt b/test/s2wasm_known_gcc_test_failures.txt index b36d482a2..4249e5bc9 100644 --- a/test/s2wasm_known_gcc_test_failures.txt +++ b/test/s2wasm_known_gcc_test_failures.txt @@ -1,11 +1,7 @@ # Expected failures from running s2wasm on the linked GCC torture test output # files. -# Unknown symbol (likely an external symbol). -pr54937.c.s # $exit - # Unknown symbol ($abort, $stdout, $stderr). -921110-1.c.s fprintf-1.c.s gofast.c.s fprintf-chk-1.c.s diff --git a/test/torture-s/20000112-1.c.s b/test/torture-s/20000112-1.c.s index bd594fb02..a2f27a6bd 100644 --- a/test/torture-s/20000112-1.c.s +++ b/test/torture-s/20000112-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20000113-1.c.s b/test/torture-s/20000113-1.c.s index 94bfa8a5f..7cebc9110 100644 --- a/test/torture-s/20000113-1.c.s +++ b/test/torture-s/20000113-1.c.s @@ -56,3 +56,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20000205-1.c.s b/test/torture-s/20000205-1.c.s index ab81edd80..0688ac026 100644 --- a/test/torture-s/20000205-1.c.s +++ b/test/torture-s/20000205-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20000217-1.c.s b/test/torture-s/20000217-1.c.s index 0cb8a90c5..71abd786d 100644 --- a/test/torture-s/20000217-1.c.s +++ b/test/torture-s/20000217-1.c.s @@ -39,3 +39,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20000223-1.c.s b/test/torture-s/20000223-1.c.s index 398906c2a..def96241c 100644 --- a/test/torture-s/20000223-1.c.s +++ b/test/torture-s/20000223-1.c.s @@ -38,3 +38,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20000224-1.c.s b/test/torture-s/20000224-1.c.s index ed8043cfe..edcf9c24a 100644 --- a/test/torture-s/20000224-1.c.s +++ b/test/torture-s/20000224-1.c.s @@ -95,3 +95,4 @@ flag: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20000225-1.c.s b/test/torture-s/20000225-1.c.s index d8b2e03f9..f3c2bf1b8 100644 --- a/test/torture-s/20000225-1.c.s +++ b/test/torture-s/20000225-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20000314-1.c.s b/test/torture-s/20000314-1.c.s index be995e1e5..b6b281585 100644 --- a/test/torture-s/20000314-1.c.s +++ b/test/torture-s/20000314-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20000314-2.c.s b/test/torture-s/20000314-2.c.s index 20d454e3a..b71f84c56 100644 --- a/test/torture-s/20000314-2.c.s +++ b/test/torture-s/20000314-2.c.s @@ -43,3 +43,5 @@ a: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20000314-3.c.s b/test/torture-s/20000314-3.c.s index 2ad7ee872..4118ffebe 100644 --- a/test/torture-s/20000314-3.c.s +++ b/test/torture-s/20000314-3.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20000402-1.c.s b/test/torture-s/20000402-1.c.s index 593f7dd68..037c72b4a 100644 --- a/test/torture-s/20000402-1.c.s +++ b/test/torture-s/20000402-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20000403-1.c.s b/test/torture-s/20000403-1.c.s index 8bcc01728..864fc41e0 100644 --- a/test/torture-s/20000403-1.c.s +++ b/test/torture-s/20000403-1.c.s @@ -84,3 +84,5 @@ bb: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20000412-1.c.s b/test/torture-s/20000412-1.c.s index 62e669313..50745a833 100644 --- a/test/torture-s/20000412-1.c.s +++ b/test/torture-s/20000412-1.c.s @@ -63,3 +63,5 @@ wordlist: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20000412-2.c.s b/test/torture-s/20000412-2.c.s index c57cd15aa..f9d3a249b 100644 --- a/test/torture-s/20000412-2.c.s +++ b/test/torture-s/20000412-2.c.s @@ -73,3 +73,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20000412-3.c.s b/test/torture-s/20000412-3.c.s index 698372f87..36d33e8a1 100644 --- a/test/torture-s/20000412-3.c.s +++ b/test/torture-s/20000412-3.c.s @@ -56,3 +56,4 @@ f: # @f .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20000412-4.c.s b/test/torture-s/20000412-4.c.s index 3ae14d0ea..de9f47086 100644 --- a/test/torture-s/20000412-4.c.s +++ b/test/torture-s/20000412-4.c.s @@ -73,3 +73,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20000412-5.c.s b/test/torture-s/20000412-5.c.s index 54aa2edf2..605f829b7 100644 --- a/test/torture-s/20000412-5.c.s +++ b/test/torture-s/20000412-5.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20000412-6.c.s b/test/torture-s/20000412-6.c.s index 5ee6eb5f2..188f4261d 100644 --- a/test/torture-s/20000412-6.c.s +++ b/test/torture-s/20000412-6.c.s @@ -84,3 +84,5 @@ buf: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20000419-1.c.s b/test/torture-s/20000419-1.c.s index cb4db9fbe..a00092cc1 100644 --- a/test/torture-s/20000419-1.c.s +++ b/test/torture-s/20000419-1.c.s @@ -85,3 +85,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20000422-1.c.s b/test/torture-s/20000422-1.c.s index a281eb0f0..a2945f672 100644 --- a/test/torture-s/20000422-1.c.s +++ b/test/torture-s/20000422-1.c.s @@ -163,3 +163,5 @@ num: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20000503-1.c.s b/test/torture-s/20000503-1.c.s index 43ff69b65..6636ba11a 100644 --- a/test/torture-s/20000503-1.c.s +++ b/test/torture-s/20000503-1.c.s @@ -38,3 +38,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20000511-1.c.s b/test/torture-s/20000511-1.c.s index ffef65ede..eff75135e 100644 --- a/test/torture-s/20000511-1.c.s +++ b/test/torture-s/20000511-1.c.s @@ -36,3 +36,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20000519-1.c.s b/test/torture-s/20000519-1.c.s index 2fc2ea1ca..f96226d10 100644 --- a/test/torture-s/20000519-1.c.s +++ b/test/torture-s/20000519-1.c.s @@ -99,3 +99,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20000519-2.c.s b/test/torture-s/20000519-2.c.s index a09634e7a..72eaa7d1c 100644 --- a/test/torture-s/20000519-2.c.s +++ b/test/torture-s/20000519-2.c.s @@ -36,3 +36,5 @@ x: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20000523-1.c.s b/test/torture-s/20000523-1.c.s index a8baefe65..c49251c0c 100644 --- a/test/torture-s/20000523-1.c.s +++ b/test/torture-s/20000523-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20000528-1.c.s b/test/torture-s/20000528-1.c.s index 41144e11c..dfb442578 100644 --- a/test/torture-s/20000528-1.c.s +++ b/test/torture-s/20000528-1.c.s @@ -47,3 +47,5 @@ s: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20000605-1.c.s b/test/torture-s/20000605-1.c.s index 9faeea71e..1999d9d64 100644 --- a/test/torture-s/20000605-1.c.s +++ b/test/torture-s/20000605-1.c.s @@ -8,25 +8,21 @@ main: # @main .result i32 .local i32 # BB#0: # %for.body.lr.ph.i - i32.const $0=, 0 + i32.const $0=, 256 .LBB0_1: # %for.body.i # =>This Inner Loop Header: Depth=1 loop # label0: - i32.const $push7=, 1 - i32.add $push6=, $0, $pop7 - tee_local $push5=, $0=, $pop6 - i32.const $push4=, 256 - i32.ne $push0=, $pop5, $pop4 - br_if 0, $pop0 # 0: up to label0 + i32.const $push3=, -1 + i32.add $push2=, $0, $pop3 + tee_local $push1=, $0=, $pop2 + br_if 0, $pop1 # 0: up to label0 # BB#2: # %render_image_rgb_a.exit end_loop # label1: block - i32.const $push1=, 256 - i32.ne $push2=, $0, $pop1 - br_if 0, $pop2 # 0: down to label2 + br_if 0, $0 # 0: down to label2 # BB#3: # %if.end - i32.const $push3=, 0 - call exit@FUNCTION, $pop3 + i32.const $push0=, 0 + call exit@FUNCTION, $pop0 unreachable .LBB0_4: # %if.then end_block # label2: @@ -38,3 +34,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20000605-2.c.s b/test/torture-s/20000605-2.c.s index 45c1e41bd..fb6909a9d 100644 --- a/test/torture-s/20000605-2.c.s +++ b/test/torture-s/20000605-2.c.s @@ -78,3 +78,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20000622-1.c.s b/test/torture-s/20000622-1.c.s index 80bb05769..fd833223b 100644 --- a/test/torture-s/20000622-1.c.s +++ b/test/torture-s/20000622-1.c.s @@ -86,3 +86,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20000703-1.c.s b/test/torture-s/20000703-1.c.s index 1e08989f9..8ac04e30b 100644 --- a/test/torture-s/20000703-1.c.s +++ b/test/torture-s/20000703-1.c.s @@ -84,3 +84,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20000706-1.c.s b/test/torture-s/20000706-1.c.s index d0de6d411..4bc6e1461 100644 --- a/test/torture-s/20000706-1.c.s +++ b/test/torture-s/20000706-1.c.s @@ -155,3 +155,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20000706-2.c.s b/test/torture-s/20000706-2.c.s index 0b9fd5414..50f964718 100644 --- a/test/torture-s/20000706-2.c.s +++ b/test/torture-s/20000706-2.c.s @@ -155,3 +155,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20000706-3.c.s b/test/torture-s/20000706-3.c.s index 76275b2d9..e421cea3f 100644 --- a/test/torture-s/20000706-3.c.s +++ b/test/torture-s/20000706-3.c.s @@ -97,3 +97,5 @@ c: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20000706-4.c.s b/test/torture-s/20000706-4.c.s index 43852b867..007cf50ff 100644 --- a/test/torture-s/20000706-4.c.s +++ b/test/torture-s/20000706-4.c.s @@ -98,3 +98,5 @@ c: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20000706-5.c.s b/test/torture-s/20000706-5.c.s index 95b982d7f..a924a7829 100644 --- a/test/torture-s/20000706-5.c.s +++ b/test/torture-s/20000706-5.c.s @@ -131,3 +131,5 @@ c: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20000707-1.c.s b/test/torture-s/20000707-1.c.s index fe6c753a6..637a8eb70 100644 --- a/test/torture-s/20000707-1.c.s +++ b/test/torture-s/20000707-1.c.s @@ -87,3 +87,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20000715-1.c.s b/test/torture-s/20000715-1.c.s index fbea59c77..90c86e514 100644 --- a/test/torture-s/20000715-1.c.s +++ b/test/torture-s/20000715-1.c.s @@ -118,3 +118,4 @@ y: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20000715-2.c.s b/test/torture-s/20000715-2.c.s index a760fd485..2c8d21885 100644 --- a/test/torture-s/20000715-2.c.s +++ b/test/torture-s/20000715-2.c.s @@ -35,3 +35,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20000717-1.c.s b/test/torture-s/20000717-1.c.s index be02f5eaf..35f2b4c53 100644 --- a/test/torture-s/20000717-1.c.s +++ b/test/torture-s/20000717-1.c.s @@ -102,3 +102,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20000717-2.c.s b/test/torture-s/20000717-2.c.s index d1dd7a2b0..c9e4e2e10 100644 --- a/test/torture-s/20000717-2.c.s +++ b/test/torture-s/20000717-2.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20000717-3.c.s b/test/torture-s/20000717-3.c.s index 803853f4f..aea352097 100644 --- a/test/torture-s/20000717-3.c.s +++ b/test/torture-s/20000717-3.c.s @@ -57,3 +57,5 @@ c: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20000717-5.c.s b/test/torture-s/20000717-5.c.s index 6121f015b..cc03898c5 100644 --- a/test/torture-s/20000717-5.c.s +++ b/test/torture-s/20000717-5.c.s @@ -137,3 +137,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20000722-1.c.s b/test/torture-s/20000722-1.c.s index 82b27412f..8632f201f 100644 --- a/test/torture-s/20000722-1.c.s +++ b/test/torture-s/20000722-1.c.s @@ -53,3 +53,5 @@ foo: # @foo .ident "clang version 3.9.0 " + .functype exit, void, i32 + .functype abort, void diff --git a/test/torture-s/20000726-1.c.s b/test/torture-s/20000726-1.c.s index a148d02af..3026848e9 100644 --- a/test/torture-s/20000726-1.c.s +++ b/test/torture-s/20000726-1.c.s @@ -30,3 +30,4 @@ adjust_xy: # @adjust_xy .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20000731-1.c.s b/test/torture-s/20000731-1.c.s index c62c133be..bcbcde59c 100644 --- a/test/torture-s/20000731-1.c.s +++ b/test/torture-s/20000731-1.c.s @@ -40,3 +40,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20000731-2.c.s b/test/torture-s/20000731-2.c.s index 1d67a211a..fddaaf16f 100644 --- a/test/torture-s/20000731-2.c.s +++ b/test/torture-s/20000731-2.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20000801-1.c.s b/test/torture-s/20000801-1.c.s index c7a329d99..74bb18875 100644 --- a/test/torture-s/20000801-1.c.s +++ b/test/torture-s/20000801-1.c.s @@ -84,3 +84,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20000801-2.c.s b/test/torture-s/20000801-2.c.s index 1f9381ba5..7d16f1c0e 100644 --- a/test/torture-s/20000801-2.c.s +++ b/test/torture-s/20000801-2.c.s @@ -92,3 +92,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20000801-3.c.s b/test/torture-s/20000801-3.c.s index f24bbfac2..4b36566ae 100644 --- a/test/torture-s/20000801-3.c.s +++ b/test/torture-s/20000801-3.c.s @@ -37,3 +37,5 @@ s: .ident "clang version 3.9.0 " + .functype exit, void, i32 + .functype abort, void diff --git a/test/torture-s/20000801-4.c.s b/test/torture-s/20000801-4.c.s index cfc4f757d..6cdc5af6e 100644 --- a/test/torture-s/20000801-4.c.s +++ b/test/torture-s/20000801-4.c.s @@ -48,3 +48,4 @@ t: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20000808-1.c.s b/test/torture-s/20000808-1.c.s index a20153d29..1b4e96589 100644 --- a/test/torture-s/20000808-1.c.s +++ b/test/torture-s/20000808-1.c.s @@ -107,3 +107,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20000815-1.c.s b/test/torture-s/20000815-1.c.s index ca5df717e..d3bf24dd6 100644 --- a/test/torture-s/20000815-1.c.s +++ b/test/torture-s/20000815-1.c.s @@ -197,3 +197,4 @@ main: # @main .lcomm table,128,4 .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20000818-1.c.s b/test/torture-s/20000818-1.c.s index 38c98867a..4be4bd509 100644 --- a/test/torture-s/20000818-1.c.s +++ b/test/torture-s/20000818-1.c.s @@ -38,3 +38,4 @@ temporary_obstack: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20000819-1.c.s b/test/torture-s/20000819-1.c.s index 2737b49d9..bfe028fd7 100644 --- a/test/torture-s/20000819-1.c.s +++ b/test/torture-s/20000819-1.c.s @@ -74,3 +74,5 @@ a: .ident "clang version 3.9.0 " + .functype exit, void, i32 + .functype abort, void diff --git a/test/torture-s/20000910-1.c.s b/test/torture-s/20000910-1.c.s index 48b830c0e..6de5b0480 100644 --- a/test/torture-s/20000910-1.c.s +++ b/test/torture-s/20000910-1.c.s @@ -60,3 +60,5 @@ baz: # @baz .ident "clang version 3.9.0 " + .functype exit, void, i32 + .functype abort, void diff --git a/test/torture-s/20000910-2.c.s b/test/torture-s/20000910-2.c.s index ec66e724c..585ed7c85 100644 --- a/test/torture-s/20000910-2.c.s +++ b/test/torture-s/20000910-2.c.s @@ -61,3 +61,6 @@ list: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 + .functype strchr, i32, i32, i32 diff --git a/test/torture-s/20000914-1.c.s b/test/torture-s/20000914-1.c.s index fe7e9f0b2..179b5c348 100644 --- a/test/torture-s/20000914-1.c.s +++ b/test/torture-s/20000914-1.c.s @@ -60,3 +60,6 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype malloc, i32, i32 + .functype exit, void, i32 diff --git a/test/torture-s/20000917-1.c.s b/test/torture-s/20000917-1.c.s index 18c418d33..3e232e452 100644 --- a/test/torture-s/20000917-1.c.s +++ b/test/torture-s/20000917-1.c.s @@ -48,3 +48,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20001011-1.c.s b/test/torture-s/20001011-1.c.s index e9fb6f118..c546c166b 100644 --- a/test/torture-s/20001011-1.c.s +++ b/test/torture-s/20001011-1.c.s @@ -36,3 +36,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype strcmp, i32, i32, i32 diff --git a/test/torture-s/20001013-1.c.s b/test/torture-s/20001013-1.c.s index 71f3c12db..510916f27 100644 --- a/test/torture-s/20001013-1.c.s +++ b/test/torture-s/20001013-1.c.s @@ -68,3 +68,5 @@ z: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20001017-1.c.s b/test/torture-s/20001017-1.c.s index 124583f16..7255e583e 100644 --- a/test/torture-s/20001017-1.c.s +++ b/test/torture-s/20001017-1.c.s @@ -35,3 +35,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20001017-2.c.s b/test/torture-s/20001017-2.c.s index 84aa6cc5f..c250ac853 100644 --- a/test/torture-s/20001017-2.c.s +++ b/test/torture-s/20001017-2.c.s @@ -47,3 +47,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20001024-1.c.s b/test/torture-s/20001024-1.c.s index 2773a560c..134eb8483 100644 --- a/test/torture-s/20001024-1.c.s +++ b/test/torture-s/20001024-1.c.s @@ -63,3 +63,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20001027-1.c.s b/test/torture-s/20001027-1.c.s index 4ccc51b7e..0e8313f19 100644 --- a/test/torture-s/20001027-1.c.s +++ b/test/torture-s/20001027-1.c.s @@ -51,3 +51,5 @@ p: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20001031-1.c.s b/test/torture-s/20001031-1.c.s index 2e8a91b7d..ce2600f6d 100644 --- a/test/torture-s/20001031-1.c.s +++ b/test/torture-s/20001031-1.c.s @@ -84,3 +84,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20001101.c.s b/test/torture-s/20001101.c.s index ab9e6871e..432119435 100644 --- a/test/torture-s/20001101.c.s +++ b/test/torture-s/20001101.c.s @@ -58,3 +58,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20001108-1.c.s b/test/torture-s/20001108-1.c.s index 9dfc14671..809e34aa5 100644 --- a/test/torture-s/20001108-1.c.s +++ b/test/torture-s/20001108-1.c.s @@ -54,3 +54,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20001111-1.c.s b/test/torture-s/20001111-1.c.s index d0041d17f..00ffa5c59 100644 --- a/test/torture-s/20001111-1.c.s +++ b/test/torture-s/20001111-1.c.s @@ -61,3 +61,5 @@ main: # @main .lcomm next_buffer,1,2 .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20001112-1.c.s b/test/torture-s/20001112-1.c.s index fc54eea60..00497f743 100644 --- a/test/torture-s/20001112-1.c.s +++ b/test/torture-s/20001112-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20001121-1.c.s b/test/torture-s/20001121-1.c.s index e1b74eb1d..25ee60564 100644 --- a/test/torture-s/20001121-1.c.s +++ b/test/torture-s/20001121-1.c.s @@ -52,3 +52,4 @@ d: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20001124-1.c.s b/test/torture-s/20001124-1.c.s index 056a33c73..59fa9dd40 100644 --- a/test/torture-s/20001124-1.c.s +++ b/test/torture-s/20001124-1.c.s @@ -59,3 +59,4 @@ f: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20001130-2.c.s b/test/torture-s/20001130-2.c.s index 5e1de824b..5e9acbeb9 100644 --- a/test/torture-s/20001130-2.c.s +++ b/test/torture-s/20001130-2.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20001203-1.c.s b/test/torture-s/20001203-1.c.s index 653bc3326..9599d584f 100644 --- a/test/torture-s/20001203-1.c.s +++ b/test/torture-s/20001203-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20001203-2.c.s b/test/torture-s/20001203-2.c.s index 0933fbd6e..8acb2b567 100644 --- a/test/torture-s/20001203-2.c.s +++ b/test/torture-s/20001203-2.c.s @@ -171,3 +171,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20001221-1.c.s b/test/torture-s/20001221-1.c.s index fbd705ae8..eb73ebf21 100644 --- a/test/torture-s/20001221-1.c.s +++ b/test/torture-s/20001221-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20001228-1.c.s b/test/torture-s/20001228-1.c.s index a8045caf0..d8f176c7a 100644 --- a/test/torture-s/20001228-1.c.s +++ b/test/torture-s/20001228-1.c.s @@ -69,3 +69,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20001229-1.c.s b/test/torture-s/20001229-1.c.s index cf4e0707c..7b050646c 100644 --- a/test/torture-s/20001229-1.c.s +++ b/test/torture-s/20001229-1.c.s @@ -39,3 +39,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20010106-1.c.s b/test/torture-s/20010106-1.c.s index 142c36dfd..48250e94e 100644 --- a/test/torture-s/20010106-1.c.s +++ b/test/torture-s/20010106-1.c.s @@ -57,3 +57,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20010114-1.c.s b/test/torture-s/20010114-1.c.s index 19e7508c3..5d99ce344 100644 --- a/test/torture-s/20010114-1.c.s +++ b/test/torture-s/20010114-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20010116-1.c.s b/test/torture-s/20010116-1.c.s index dde912ae1..c2cef8b53 100644 --- a/test/torture-s/20010116-1.c.s +++ b/test/torture-s/20010116-1.c.s @@ -76,3 +76,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20010118-1.c.s b/test/torture-s/20010118-1.c.s index 815e6cd03..b88d6dd9a 100644 --- a/test/torture-s/20010118-1.c.s +++ b/test/torture-s/20010118-1.c.s @@ -77,3 +77,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20010119-1.c.s b/test/torture-s/20010119-1.c.s index f9eeaad7f..27cb3e23a 100644 --- a/test/torture-s/20010119-1.c.s +++ b/test/torture-s/20010119-1.c.s @@ -40,3 +40,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20010123-1.c.s b/test/torture-s/20010123-1.c.s index c8aece9f3..d4baa16db 100644 --- a/test/torture-s/20010123-1.c.s +++ b/test/torture-s/20010123-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20010129-1.c.s b/test/torture-s/20010129-1.c.s index 4c145cb2c..9becf7d28 100644 --- a/test/torture-s/20010129-1.c.s +++ b/test/torture-s/20010129-1.c.s @@ -204,3 +204,5 @@ bar: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20010206-1.c.s b/test/torture-s/20010206-1.c.s index cd047b397..795fd5f79 100644 --- a/test/torture-s/20010206-1.c.s +++ b/test/torture-s/20010206-1.c.s @@ -29,3 +29,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20010221-1.c.s b/test/torture-s/20010221-1.c.s index b48ca9ae4..11514adaf 100644 --- a/test/torture-s/20010221-1.c.s +++ b/test/torture-s/20010221-1.c.s @@ -55,3 +55,5 @@ n: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20010222-1.c.s b/test/torture-s/20010222-1.c.s index 6fa1f59b7..f95633c42 100644 --- a/test/torture-s/20010222-1.c.s +++ b/test/torture-s/20010222-1.c.s @@ -44,3 +44,5 @@ a: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20010224-1.c.s b/test/torture-s/20010224-1.c.s index 32ab04a4e..81afd3390 100644 --- a/test/torture-s/20010224-1.c.s +++ b/test/torture-s/20010224-1.c.s @@ -162,3 +162,4 @@ bndpsd: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20010325-1.c.s b/test/torture-s/20010325-1.c.s index 7f25688e6..d7ee7424f 100644 --- a/test/torture-s/20010325-1.c.s +++ b/test/torture-s/20010325-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20010329-1.c.s b/test/torture-s/20010329-1.c.s index 5c7cbeedc..5cb41bd32 100644 --- a/test/torture-s/20010329-1.c.s +++ b/test/torture-s/20010329-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20010403-1.c.s b/test/torture-s/20010403-1.c.s index f36b6dbeb..32d2c093b 100644 --- a/test/torture-s/20010403-1.c.s +++ b/test/torture-s/20010403-1.c.s @@ -85,3 +85,5 @@ e: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20010409-1.c.s b/test/torture-s/20010409-1.c.s index 6d184f58b..a82759f8d 100644 --- a/test/torture-s/20010409-1.c.s +++ b/test/torture-s/20010409-1.c.s @@ -132,3 +132,5 @@ a: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20010422-1.c.s b/test/torture-s/20010422-1.c.s index a168d9fad..5c37b3760 100644 --- a/test/torture-s/20010422-1.c.s +++ b/test/torture-s/20010422-1.c.s @@ -34,3 +34,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20010518-1.c.s b/test/torture-s/20010518-1.c.s index b3602ae90..33d775355 100644 --- a/test/torture-s/20010518-1.c.s +++ b/test/torture-s/20010518-1.c.s @@ -41,3 +41,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20010518-2.c.s b/test/torture-s/20010518-2.c.s index 56faa0b23..f10a6bd9a 100644 --- a/test/torture-s/20010518-2.c.s +++ b/test/torture-s/20010518-2.c.s @@ -80,3 +80,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20010520-1.c.s b/test/torture-s/20010520-1.c.s index c0f4011f0..8d73146ca 100644 --- a/test/torture-s/20010520-1.c.s +++ b/test/torture-s/20010520-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20010604-1.c.s b/test/torture-s/20010604-1.c.s index a9d6883cd..4ea1ce9da 100644 --- a/test/torture-s/20010604-1.c.s +++ b/test/torture-s/20010604-1.c.s @@ -54,3 +54,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20010605-2.c.s b/test/torture-s/20010605-2.c.s index 21387bb1c..b1b2662b2 100644 --- a/test/torture-s/20010605-2.c.s +++ b/test/torture-s/20010605-2.c.s @@ -105,3 +105,5 @@ baz: # @baz .ident "clang version 3.9.0 " + .functype exit, void, i32 + .functype abort, void diff --git a/test/torture-s/20010711-1.c.s b/test/torture-s/20010711-1.c.s index cbe2945a1..5e26f2aa5 100644 --- a/test/torture-s/20010711-1.c.s +++ b/test/torture-s/20010711-1.c.s @@ -28,3 +28,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20010723-1.c.s b/test/torture-s/20010723-1.c.s index cab334a00..f8f7bce95 100644 --- a/test/torture-s/20010723-1.c.s +++ b/test/torture-s/20010723-1.c.s @@ -29,3 +29,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20010904-1.c.s b/test/torture-s/20010904-1.c.s index 6dc5705b3..54106ae0e 100644 --- a/test/torture-s/20010904-1.c.s +++ b/test/torture-s/20010904-1.c.s @@ -25,3 +25,4 @@ y: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20010904-2.c.s b/test/torture-s/20010904-2.c.s index 40e905341..f14eae622 100644 --- a/test/torture-s/20010904-2.c.s +++ b/test/torture-s/20010904-2.c.s @@ -25,3 +25,4 @@ y: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20010915-1.c.s b/test/torture-s/20010915-1.c.s index d796c9449..a95511eb4 100644 --- a/test/torture-s/20010915-1.c.s +++ b/test/torture-s/20010915-1.c.s @@ -383,3 +383,6 @@ r.c.0: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 + .functype strcmp, i32, i32, i32 diff --git a/test/torture-s/20010924-1.c.s b/test/torture-s/20010924-1.c.s index 36689a846..4ad63cb49 100644 --- a/test/torture-s/20010924-1.c.s +++ b/test/torture-s/20010924-1.c.s @@ -141,3 +141,4 @@ a4: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20010925-1.c.s b/test/torture-s/20010925-1.c.s index 67a3f92d6..974613f2b 100644 --- a/test/torture-s/20010925-1.c.s +++ b/test/torture-s/20010925-1.c.s @@ -66,3 +66,4 @@ src: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20011008-3.c.s b/test/torture-s/20011008-3.c.s index 27fc07967..dc17a9939 100644 --- a/test/torture-s/20011008-3.c.s +++ b/test/torture-s/20011008-3.c.s @@ -26,8 +26,8 @@ __db_txnlist_lsnadd: # @__db_txnlist_lsnadd i32.const $push7=, 1 i32.and $4=, $3, $pop7 i32.const $3=, 0 - i32.const $push1=, 12 - i32.add $5=, $1, $pop1 + i32.const $push0=, 12 + i32.add $5=, $1, $pop0 .LBB1_1: # %for.cond # =>This Inner Loop Header: Depth=1 loop # label0: @@ -41,8 +41,8 @@ __db_txnlist_lsnadd: # @__db_txnlist_lsnadd .LBB1_3: # %cond.end # in Loop: Header=BB1_1 Depth=1 end_block # label2: - i32.ge_s $push2=, $3, $6 - br_if 1, $pop2 # 1: down to label1 + i32.ge_s $push1=, $3, $6 + br_if 1, $pop1 # 1: down to label1 # BB#4: # %for.body # in Loop: Header=BB1_1 Depth=1 i32.const $push8=, 1 @@ -50,13 +50,13 @@ __db_txnlist_lsnadd: # @__db_txnlist_lsnadd br 0 # 0: up to label0 .LBB1_5: # %for.end35 end_loop # label1: - i32.const $push3=, 20 - i32.add $push4=, $1, $pop3 - i32.load $push5=, 0($pop4) - i64.load $push6=, 0($pop5):p2align=2 - i64.store $drop=, 0($2):p2align=2, $pop6 - i32.add $push0=, $0, $3 - # fallthrough-return: $pop0 + i32.const $push2=, 20 + i32.add $push3=, $1, $pop2 + i32.load $push4=, 0($pop3) + i64.load $push5=, 0($pop4):p2align=2 + i64.store $drop=, 0($2):p2align=2, $pop5 + i32.add $push6=, $0, $3 + # fallthrough-return: $pop6 .endfunc .Lfunc_end1: .size __db_txnlist_lsnadd, .Lfunc_end1-__db_txnlist_lsnadd @@ -77,3 +77,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20011019-1.c.s b/test/torture-s/20011019-1.c.s index 0f12014d0..aa20b8e0d 100644 --- a/test/torture-s/20011019-1.c.s +++ b/test/torture-s/20011019-1.c.s @@ -55,3 +55,4 @@ x: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20011024-1.c.s b/test/torture-s/20011024-1.c.s index d77012614..4957d30ca 100644 --- a/test/torture-s/20011024-1.c.s +++ b/test/torture-s/20011024-1.c.s @@ -56,3 +56,5 @@ buf: .ident "clang version 3.9.0 " + .functype abort, void + .functype strcmp, i32, i32, i32 diff --git a/test/torture-s/20011109-1.c.s b/test/torture-s/20011109-1.c.s index 99dd7822b..fa8955ab8 100644 --- a/test/torture-s/20011109-1.c.s +++ b/test/torture-s/20011109-1.c.s @@ -117,3 +117,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20011109-2.c.s b/test/torture-s/20011109-2.c.s index 15d11bbea..6ff60c2e7 100644 --- a/test/torture-s/20011109-2.c.s +++ b/test/torture-s/20011109-2.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20011113-1.c.s b/test/torture-s/20011113-1.c.s index 780f52e06..39dbd7d06 100644 --- a/test/torture-s/20011113-1.c.s +++ b/test/torture-s/20011113-1.c.s @@ -150,3 +150,5 @@ t: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20011114-1.c.s b/test/torture-s/20011114-1.c.s index 89014ce90..dd2150b90 100644 --- a/test/torture-s/20011114-1.c.s +++ b/test/torture-s/20011114-1.c.s @@ -30,3 +30,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20011115-1.c.s b/test/torture-s/20011115-1.c.s index 33981d2b6..944554ee8 100644 --- a/test/torture-s/20011115-1.c.s +++ b/test/torture-s/20011115-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20011121-1.c.s b/test/torture-s/20011121-1.c.s index aa36010d1..580d13468 100644 --- a/test/torture-s/20011121-1.c.s +++ b/test/torture-s/20011121-1.c.s @@ -25,3 +25,4 @@ s1: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20011126-1.c.s b/test/torture-s/20011126-1.c.s index eff83f829..cbfacadf9 100644 --- a/test/torture-s/20011126-1.c.s +++ b/test/torture-s/20011126-1.c.s @@ -35,3 +35,4 @@ a: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20011126-2.c.s b/test/torture-s/20011126-2.c.s index a9ef202cb..b1cb9662c 100644 --- a/test/torture-s/20011126-2.c.s +++ b/test/torture-s/20011126-2.c.s @@ -6,117 +6,124 @@ .type main,@function main: # @main .result i32 - .local i32, i32, i32, i32, i32, i32, i32 + .local i32, i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - i32.const $4=, .L.str - i32.const $push10=, 0 - i32.load $push11=, __stack_pointer($pop10) - i32.const $push12=, 16 - i32.sub $push15=, $pop11, $pop12 - i32.const $push13=, 12 - i32.add $push14=, $pop15, $pop13 - copy_local $3=, $pop14 + i32.const $5=, .L.str + i32.const $push9=, 0 + i32.load $push10=, __stack_pointer($pop9) + i32.const $push11=, 16 + i32.sub $push14=, $pop10, $pop11 + i32.const $push12=, 12 + i32.add $push13=, $pop14, $pop12 + copy_local $4=, $pop13 .LBB0_1: # %while.body.outer.outer.i # =>This Loop Header: Depth=1 # Child Loop BB0_2 Depth 2 - # Child Loop BB0_3 Depth 3 - # Child Loop BB0_8 Depth 2 + # Child Loop BB0_4 Depth 3 + # Child Loop BB0_9 Depth 2 loop # label0: - copy_local $0=, $3 - copy_local $push20=, $4 - tee_local $push19=, $6=, $pop20 - i32.load8_u $push18=, 0($pop19) - tee_local $push17=, $4=, $pop18 - copy_local $3=, $pop17 + copy_local $1=, $4 + copy_local $push19=, $5 + tee_local $push18=, $0=, $pop19 + i32.load8_u $push17=, 0($pop18) + tee_local $push16=, $2=, $pop17 + copy_local $5=, $pop16 .LBB0_2: # %while.body.outer.i # Parent Loop BB0_1 Depth=1 # => This Loop Header: Depth=2 - # Child Loop BB0_3 Depth 3 + # Child Loop BB0_4 Depth 3 block block block loop # label5: - copy_local $5=, $6 - i32.const $push22=, 255 - i32.and $push0=, $3, $pop22 - i32.const $push21=, 97 - i32.ne $push1=, $pop0, $pop21 + i32.const $push21=, 255 + i32.and $push0=, $5, $pop21 + i32.const $push20=, 97 + i32.ne $push1=, $pop0, $pop20 br_if 2, $pop1 # 2: down to label4 -.LBB0_3: # %while.cond2.i +# BB#3: # %while.cond2.i.preheader + # in Loop: Header=BB0_2 Depth=2 + i32.const $5=, 0 + copy_local $6=, $0 +.LBB0_4: # %while.cond2.i # Parent Loop BB0_1 Depth=1 # Parent Loop BB0_2 Depth=2 # => This Inner Loop Header: Depth=3 loop # label7: copy_local $push30=, $5 - tee_local $push29=, $1=, $pop30 + tee_local $push29=, $7=, $pop30 i32.const $push28=, 1 - i32.add $push27=, $pop29, $pop28 - tee_local $push26=, $5=, $pop27 - i32.load8_u $push25=, 0($pop26) - tee_local $push24=, $3=, $pop25 - i32.const $push23=, 120 - i32.eq $push2=, $pop24, $pop23 + i32.add $5=, $pop29, $pop28 + copy_local $push27=, $6 + tee_local $push26=, $3=, $pop27 + i32.const $push25=, 1 + i32.add $6=, $pop26, $pop25 + i32.load8_u $push24=, 1($3) + tee_local $push23=, $4=, $pop24 + i32.const $push22=, 120 + i32.eq $push2=, $pop23, $pop22 br_if 0, $pop2 # 0: up to label7 -# BB#4: # %while.cond2.i +# BB#5: # %while.cond2.i # in Loop: Header=BB0_2 Depth=2 end_loop # label8: i32.const $push31=, 98 - i32.eq $push3=, $3, $pop31 + i32.eq $push3=, $4, $pop31 br_if 3, $pop3 # 3: down to label3 -# BB#5: # %while.cond11.preheader.i +# BB#6: # %while.cond11.preheader.i # in Loop: Header=BB0_2 Depth=2 - i32.const $3=, 97 - i32.ge_u $push5=, $6, $5 + i32.const $5=, 97 + i32.ge_u $push5=, $0, $6 br_if 0, $pop5 # 0: up to label5 -# BB#6: # %while.body14.i.preheader +# BB#7: # %while.body14.i.preheader # in Loop: Header=BB0_1 Depth=1 end_loop # label6: - i32.store8 $drop=, 0($0), $4 + i32.store8 $drop=, 0($1), $2 i32.const $push33=, 1 - i32.add $3=, $0, $pop33 + i32.add $4=, $1, $pop33 i32.const $push32=, 1 - i32.add $4=, $6, $pop32 - i32.ge_u $push6=, $6, $1 + i32.add $5=, $0, $pop32 + i32.ge_u $push6=, $0, $3 br_if 3, $pop6 # 3: up to label0 -# BB#7: # %while.body14.while.body14_crit_edge.i.preheader +# BB#8: # %while.body14.while.body14_crit_edge.i.preheader # in Loop: Header=BB0_1 Depth=1 i32.const $push34=, 0 - i32.sub $2=, $pop34, $6 - i32.add $4=, $0, $1 -.LBB0_8: # %while.body14.while.body14_crit_edge.i + i32.sub $0=, $pop34, $0 + i32.add $3=, $1, $3 +.LBB0_9: # %while.body14.while.body14_crit_edge.i # Parent Loop BB0_1 Depth=1 # => This Inner Loop Header: Depth=2 loop # label9: + i32.load8_u $push7=, 0($5) + i32.store8 $drop=, 0($4), $pop7 + i32.const $push39=, 1 + i32.add $4=, $4, $pop39 i32.const $push38=, 1 - i32.add $push37=, $6, $pop38 - tee_local $push36=, $6=, $pop37 - i32.load8_u $push7=, 0($pop36) - i32.store8 $drop=, 0($3), $pop7 - i32.const $push35=, 1 - i32.add $3=, $3, $pop35 - i32.ne $push8=, $1, $6 - br_if 0, $pop8 # 0: up to label9 + i32.add $5=, $5, $pop38 + i32.const $push37=, -1 + i32.add $push36=, $7, $pop37 + tee_local $push35=, $7=, $pop36 + br_if 0, $pop35 # 0: up to label9 br 4 # 4: down to label2 -.LBB0_9: # %while.body.i +.LBB0_10: # %while.body.i # =>This Inner Loop Header: Depth=1 end_loop # label10: end_block # label4: loop # label11: br 0 # 0: up to label11 -.LBB0_10: # %test.exit +.LBB0_11: # %test.exit end_loop # label12: end_block # label3: i32.const $push4=, 0 return $pop4 -.LBB0_11: # %while.body.outer.outer.i.loopexit +.LBB0_12: # %while.body.outer.outer.i.loopexit # in Loop: Header=BB0_1 Depth=1 end_block # label2: - i32.add $push9=, $4, $2 - i32.const $push16=, 1 - i32.add $3=, $pop9, $pop16 - copy_local $4=, $5 + i32.add $push8=, $3, $0 + i32.const $push15=, 1 + i32.add $4=, $pop8, $pop15 + copy_local $5=, $6 br 0 # 0: up to label0 -.LBB0_12: +.LBB0_13: end_loop # label1: .endfunc .Lfunc_end0: diff --git a/test/torture-s/20011128-1.c.s b/test/torture-s/20011128-1.c.s index 73071b870..3f5d1a6bf 100644 --- a/test/torture-s/20011128-1.c.s +++ b/test/torture-s/20011128-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20011217-1.c.s b/test/torture-s/20011217-1.c.s index 69220cb64..babe807b2 100644 --- a/test/torture-s/20011217-1.c.s +++ b/test/torture-s/20011217-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20011219-1.c.s b/test/torture-s/20011219-1.c.s index f31390902..1d684ef36 100644 --- a/test/torture-s/20011219-1.c.s +++ b/test/torture-s/20011219-1.c.s @@ -59,3 +59,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20011223-1.c.s b/test/torture-s/20011223-1.c.s index 086331553..4363c79bf 100644 --- a/test/torture-s/20011223-1.c.s +++ b/test/torture-s/20011223-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20020103-1.c.s b/test/torture-s/20020103-1.c.s index ee00bd427..2466bd8ab 100644 --- a/test/torture-s/20020103-1.c.s +++ b/test/torture-s/20020103-1.c.s @@ -46,3 +46,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20020107-1.c.s b/test/torture-s/20020107-1.c.s index d0d3931a9..e8b9ce8fa 100644 --- a/test/torture-s/20020107-1.c.s +++ b/test/torture-s/20020107-1.c.s @@ -58,3 +58,5 @@ buf: .ident "clang version 3.9.0 " + .functype exit, void, i32 + .functype abort, void diff --git a/test/torture-s/20020108-1.c.s b/test/torture-s/20020108-1.c.s index 2bbac98b6..3cf55e80c 100644 --- a/test/torture-s/20020108-1.c.s +++ b/test/torture-s/20020108-1.c.s @@ -2571,3 +2571,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20020118-1.c.s b/test/torture-s/20020118-1.c.s index f94d2f006..e22c949fe 100644 --- a/test/torture-s/20020118-1.c.s +++ b/test/torture-s/20020118-1.c.s @@ -88,3 +88,4 @@ n: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20020127-1.c.s b/test/torture-s/20020127-1.c.s index 26ccbd702..e3ed52588 100644 --- a/test/torture-s/20020127-1.c.s +++ b/test/torture-s/20020127-1.c.s @@ -35,3 +35,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20020129-1.c.s b/test/torture-s/20020129-1.c.s index ad1e8ee96..4bbc980b2 100644 --- a/test/torture-s/20020129-1.c.s +++ b/test/torture-s/20020129-1.c.s @@ -123,3 +123,5 @@ x: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20020201-1.c.s b/test/torture-s/20020201-1.c.s index 7ba7889e7..6ab07c8d1 100644 --- a/test/torture-s/20020201-1.c.s +++ b/test/torture-s/20020201-1.c.s @@ -149,3 +149,5 @@ Lx: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20020206-1.c.s b/test/torture-s/20020206-1.c.s index 92a96f272..8bc3ea820 100644 --- a/test/torture-s/20020206-1.c.s +++ b/test/torture-s/20020206-1.c.s @@ -77,3 +77,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20020206-2.c.s b/test/torture-s/20020206-2.c.s index a39bc669e..c202484b0 100644 --- a/test/torture-s/20020206-2.c.s +++ b/test/torture-s/20020206-2.c.s @@ -40,3 +40,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20020213-1.c.s b/test/torture-s/20020213-1.c.s index dc082a8e6..404751154 100644 --- a/test/torture-s/20020213-1.c.s +++ b/test/torture-s/20020213-1.c.s @@ -85,3 +85,4 @@ b: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20020215-1.c.s b/test/torture-s/20020215-1.c.s index 8edb81cef..6a990040f 100644 --- a/test/torture-s/20020215-1.c.s +++ b/test/torture-s/20020215-1.c.s @@ -43,3 +43,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20020216-1.c.s b/test/torture-s/20020216-1.c.s index cf2904024..e51a2eaca 100644 --- a/test/torture-s/20020216-1.c.s +++ b/test/torture-s/20020216-1.c.s @@ -55,3 +55,5 @@ c: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20020219-1.c.s b/test/torture-s/20020219-1.c.s index cf4f27b29..92bc0c2f0 100644 --- a/test/torture-s/20020219-1.c.s +++ b/test/torture-s/20020219-1.c.s @@ -29,3 +29,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20020225-1.c.s b/test/torture-s/20020225-1.c.s index f1b201d27..70fefb16a 100644 --- a/test/torture-s/20020225-1.c.s +++ b/test/torture-s/20020225-1.c.s @@ -32,3 +32,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20020225-2.c.s b/test/torture-s/20020225-2.c.s index b4955e0f1..0f854eeb4 100644 --- a/test/torture-s/20020225-2.c.s +++ b/test/torture-s/20020225-2.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20020226-1.c.s b/test/torture-s/20020226-1.c.s index c78e276c4..344036397 100644 --- a/test/torture-s/20020226-1.c.s +++ b/test/torture-s/20020226-1.c.s @@ -265,3 +265,5 @@ shift2: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20020227-1.c.s b/test/torture-s/20020227-1.c.s index 8c06d2a40..dc03135e8 100644 --- a/test/torture-s/20020227-1.c.s +++ b/test/torture-s/20020227-1.c.s @@ -61,3 +61,5 @@ f2: # @f2 .ident "clang version 3.9.0 " + .functype exit, void, i32 + .functype abort, void diff --git a/test/torture-s/20020307-1.c.s b/test/torture-s/20020307-1.c.s index 607e4f0f5..c5365b322 100644 --- a/test/torture-s/20020307-1.c.s +++ b/test/torture-s/20020307-1.c.s @@ -683,3 +683,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20020314-1.c.s b/test/torture-s/20020314-1.c.s index 308bb3f61..41e84e6f1 100644 --- a/test/torture-s/20020314-1.c.s +++ b/test/torture-s/20020314-1.c.s @@ -46,3 +46,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20020320-1.c.s b/test/torture-s/20020320-1.c.s index 18eb09a91..366224c92 100644 --- a/test/torture-s/20020320-1.c.s +++ b/test/torture-s/20020320-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20020328-1.c.s b/test/torture-s/20020328-1.c.s index d0baff575..4039edbe9 100644 --- a/test/torture-s/20020328-1.c.s +++ b/test/torture-s/20020328-1.c.s @@ -60,3 +60,5 @@ b: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20020402-1.c.s b/test/torture-s/20020402-1.c.s index 5c0f6a96f..32f0724d1 100644 --- a/test/torture-s/20020402-1.c.s +++ b/test/torture-s/20020402-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20020404-1.c.s b/test/torture-s/20020404-1.c.s index a3b1cbe11..a591ec75b 100644 --- a/test/torture-s/20020404-1.c.s +++ b/test/torture-s/20020404-1.c.s @@ -32,3 +32,4 @@ main: # @main .lcomm bfd_make_section_anyway.foo_section,32,3 .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20020406-1.c.s b/test/torture-s/20020406-1.c.s index 30750badc..16f27fddf 100644 --- a/test/torture-s/20020406-1.c.s +++ b/test/torture-s/20020406-1.c.s @@ -296,3 +296,7 @@ main: # @main .ident "clang version 3.9.0 " + .functype malloc, i32, i32 + .functype calloc, i32, i32, i32 + .functype printf, i32, i32 + .functype abort, void diff --git a/test/torture-s/20020411-1.c.s b/test/torture-s/20020411-1.c.s index 25114ccbf..e97085b71 100644 --- a/test/torture-s/20020411-1.c.s +++ b/test/torture-s/20020411-1.c.s @@ -30,3 +30,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20020413-1.c.s b/test/torture-s/20020413-1.c.s index 91faa5f1a..2dec19d0d 100644 --- a/test/torture-s/20020413-1.c.s +++ b/test/torture-s/20020413-1.c.s @@ -286,3 +286,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20020418-1.c.s b/test/torture-s/20020418-1.c.s index 15cab0b23..83bde7476 100644 --- a/test/torture-s/20020418-1.c.s +++ b/test/torture-s/20020418-1.c.s @@ -64,3 +64,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20020423-1.c.s b/test/torture-s/20020423-1.c.s index 1e53e4702..50adac3b2 100644 --- a/test/torture-s/20020423-1.c.s +++ b/test/torture-s/20020423-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20020506-1.c.s b/test/torture-s/20020506-1.c.s index 50d87df27..1ce05435d 100644 --- a/test/torture-s/20020506-1.c.s +++ b/test/torture-s/20020506-1.c.s @@ -295,3 +295,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20020508-1.c.s b/test/torture-s/20020508-1.c.s index 92aef4543..9ea91cf3c 100644 --- a/test/torture-s/20020508-1.c.s +++ b/test/torture-s/20020508-1.c.s @@ -265,3 +265,5 @@ shift2: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20020508-2.c.s b/test/torture-s/20020508-2.c.s index b9f6d8e37..abef3f357 100644 --- a/test/torture-s/20020508-2.c.s +++ b/test/torture-s/20020508-2.c.s @@ -291,3 +291,5 @@ shift2: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20020508-3.c.s b/test/torture-s/20020508-3.c.s index 8eb4bc838..2d50dbb1a 100644 --- a/test/torture-s/20020508-3.c.s +++ b/test/torture-s/20020508-3.c.s @@ -291,3 +291,5 @@ shift2: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20020510-1.c.s b/test/torture-s/20020510-1.c.s index 59b937310..1c2f43aad 100644 --- a/test/torture-s/20020510-1.c.s +++ b/test/torture-s/20020510-1.c.s @@ -151,3 +151,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20020529-1.c.s b/test/torture-s/20020529-1.c.s index 4336354fe..89c7e6106 100644 --- a/test/torture-s/20020529-1.c.s +++ b/test/torture-s/20020529-1.c.s @@ -7,10 +7,10 @@ foo: # @foo .param i32, i32, i32, i32 .result i32 - .local i32, i32, i32 + .local i32, i32 # BB#0: # %entry - i32.const $push7=, 0 - i32.load $6=, f1.beenhere($pop7) + i32.const $push11=, 0 + i32.load $4=, f1.beenhere($pop11) i32.const $push2=, 8 i32.add $5=, $0, $pop2 .LBB0_1: # %for.cond @@ -18,25 +18,24 @@ foo: # @foo block block loop # label2: - i32.const $push11=, 1 - i32.add $4=, $6, $pop11 - i32.const $push10=, 2 - i32.ge_s $push0=, $6, $pop10 + i32.const $push14=, 2 + i32.ge_s $push0=, $4, $pop14 br_if 3, $pop0 # 3: down to label0 # BB#2: # %f1.exit # in Loop: Header=BB0_1 Depth=1 - i32.const $push12=, 1 - i32.eq $push1=, $6, $pop12 + i32.const $push15=, 1 + i32.eq $push1=, $4, $pop15 br_if 2, $pop1 # 2: down to label1 # BB#3: # %if.end # in Loop: Header=BB0_1 Depth=1 - copy_local $6=, $4 + i32.const $push16=, 1 + i32.add $4=, $4, $pop16 br_if 0, $1 # 0: up to label2 # BB#4: # %if.end3 # in Loop: Header=BB0_1 Depth=1 - i32.const $push13=, 0 - i32.store $6=, f1.beenhere($pop13), $4 - i32.store16 $4=, 0($5), $3 + i32.const $push17=, 0 + i32.store $drop=, f1.beenhere($pop17), $4 + i32.store16 $drop=, 0($5), $3 i32.load $push3=, 0($0) br_if 1, $pop3 # 1: down to label3 # BB#5: # %if.end8 @@ -44,11 +43,10 @@ foo: # @foo br_if 1, $2 # 1: down to label3 # BB#6: # %for.cond.outer.backedge # in Loop: Header=BB0_1 Depth=1 - i32.const $push9=, 16 - i32.shl $push4=, $4, $pop9 - i32.const $push8=, 16 - i32.shr_s $3=, $pop4, $pop8 - copy_local $6=, $6 + i32.const $push13=, 16 + i32.shl $push4=, $3, $pop13 + i32.const $push12=, 16 + i32.shr_s $3=, $pop4, $pop12 br 0 # 0: up to label2 .LBB0_7: # %if.then10 end_loop # label3: @@ -56,14 +54,18 @@ foo: # @foo unreachable .LBB0_8: # %if.then end_block # label1: - i32.const $push5=, 0 - i32.store $drop=, f1.beenhere($pop5), $4 - i32.const $push14=, 0 - return $pop14 + i32.const $push7=, 0 + i32.const $push5=, 1 + i32.add $push6=, $4, $pop5 + i32.store $drop=, f1.beenhere($pop7), $pop6 + i32.const $push18=, 0 + return $pop18 .LBB0_9: # %if.then.i end_block # label0: - i32.const $push6=, 0 - i32.store $drop=, f1.beenhere($pop6), $4 + i32.const $push10=, 0 + i32.const $push8=, 1 + i32.add $push9=, $4, $pop8 + i32.store $drop=, f1.beenhere($pop10), $pop9 call abort@FUNCTION unreachable .endfunc @@ -120,68 +122,69 @@ f2: # @f2 .type main,@function main: # @main .result i32 - .local i32, i32, i32, i32, i32 + .local i32, i32, i32, i32 # BB#0: # %entry - i32.const $4=, 23 - i32.const $push11=, 0 - i32.const $push8=, 0 - i32.load $push9=, __stack_pointer($pop8) - i32.const $push10=, 16 - i32.sub $push12=, $pop9, $pop10 - i32.store $push18=, __stack_pointer($pop11), $pop12 - tee_local $push17=, $1=, $pop18 - i32.const $push16=, 23 - i32.store16 $drop=, 8($pop17), $pop16 - i32.const $push0=, 0 - i32.store $push15=, 0($1), $pop0 - tee_local $push14=, $0=, $pop15 - i32.load $3=, f1.beenhere($pop14) + i32.const $3=, 23 + i32.const $push15=, 0 + i32.const $push12=, 0 + i32.load $push13=, __stack_pointer($pop12) + i32.const $push14=, 16 + i32.sub $push16=, $pop13, $pop14 + i32.store $push22=, __stack_pointer($pop15), $pop16 + tee_local $push21=, $1=, $pop22 + i32.const $push20=, 23 + i32.store16 $drop=, 8($pop21), $pop20 + i32.const $push1=, 0 + i32.store $push19=, 0($1), $pop1 + tee_local $push18=, $0=, $pop19 + i32.load $2=, f1.beenhere($pop18) i32.store $drop=, 4($1), $1 block block - i32.const $push13=, 1 - i32.gt_s $push1=, $3, $pop13 - br_if 0, $pop1 # 0: down to label6 + i32.const $push17=, 1 + i32.gt_s $push2=, $2, $pop17 + br_if 0, $pop2 # 0: down to label6 # BB#1: # %f1.exit.i.preheader - i32.const $push3=, 8 - i32.add $2=, $1, $pop3 + i32.const $push4=, 8 + i32.add $1=, $1, $pop4 .LBB3_2: # %f1.exit.i # =>This Inner Loop Header: Depth=1 block loop # label8: - copy_local $push22=, $3 - tee_local $push21=, $1=, $pop22 - i32.const $push20=, 1 - i32.add $3=, $pop21, $pop20 - i32.const $push19=, 1 - i32.eq $push2=, $1, $pop19 - br_if 2, $pop2 # 2: down to label7 + i32.const $push23=, 1 + i32.eq $push3=, $2, $pop23 + br_if 2, $pop3 # 2: down to label7 # BB#3: # %if.end.i # in Loop: Header=BB3_2 Depth=1 - i32.const $4=, 0 - i32.const $push24=, 0 - i32.store16 $drop=, 0($2), $pop24 - i32.const $push23=, 1 - i32.le_s $push4=, $3, $pop23 - br_if 0, $pop4 # 0: up to label8 + i32.const $3=, 0 + i32.const $push28=, 0 + i32.store16 $drop=, 0($1), $pop28 + i32.const $push27=, 1 + i32.add $push26=, $2, $pop27 + tee_local $push25=, $2=, $pop26 + i32.const $push24=, 1 + i32.le_s $push5=, $pop25, $pop24 + br_if 0, $pop5 # 0: up to label8 # BB#4: # %if.then.i.i.loopexit end_loop # label9: - i32.const $push25=, 2 - i32.add $1=, $1, $pop25 - i32.const $push5=, 0 - i32.store $drop=, f1.beenhere($pop5), $3 + i32.const $push6=, 0 + i32.store $push0=, f1.beenhere($pop6), $2 + i32.const $push7=, 1 + i32.add $2=, $pop0, $pop7 br 2 # 2: down to label5 .LBB3_5: # %foo.exit end_block # label7: - i32.const $push26=, 0 - i32.store $drop=, f1.beenhere($pop26), $3 + i32.const $push29=, 0 + i32.const $push8=, 1 + i32.add $push9=, $2, $pop8 + i32.store $drop=, f1.beenhere($pop29), $pop9 block - i32.const $push6=, 65535 - i32.and $push7=, $4, $pop6 - br_if 0, $pop7 # 0: down to label10 + i32.const $push10=, 65535 + i32.and $push11=, $3, $pop10 + br_if 0, $pop11 # 0: down to label10 # BB#6: # %if.end - i32.const $push27=, 0 - call exit@FUNCTION, $pop27 + i32.const $push30=, 0 + call exit@FUNCTION, $pop30 unreachable .LBB3_7: # %if.then end_block # label10: @@ -189,11 +192,11 @@ main: # @main unreachable .LBB3_8: end_block # label6: - i32.const $push28=, 1 - i32.add $1=, $3, $pop28 + i32.const $push31=, 1 + i32.add $2=, $2, $pop31 .LBB3_9: # %if.then.i.i end_block # label5: - i32.store $drop=, f1.beenhere($0), $1 + i32.store $drop=, f1.beenhere($0), $2 call abort@FUNCTION unreachable .endfunc @@ -204,3 +207,5 @@ main: # @main .lcomm f1.beenhere,4,2 .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20020611-1.c.s b/test/torture-s/20020611-1.c.s index 596f181d1..cbf44a737 100644 --- a/test/torture-s/20020611-1.c.s +++ b/test/torture-s/20020611-1.c.s @@ -78,3 +78,5 @@ k: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20020614-1.c.s b/test/torture-s/20020614-1.c.s index 3f517cb70..6c3a823c5 100644 --- a/test/torture-s/20020614-1.c.s +++ b/test/torture-s/20020614-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20020615-1.c.s b/test/torture-s/20020615-1.c.s index b71448409..a1448d9ea 100644 --- a/test/torture-s/20020615-1.c.s +++ b/test/torture-s/20020615-1.c.s @@ -169,3 +169,5 @@ main.gsf: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20020716-1.c.s b/test/torture-s/20020716-1.c.s index f1b99e8b9..b4236976d 100644 --- a/test/torture-s/20020716-1.c.s +++ b/test/torture-s/20020716-1.c.s @@ -46,3 +46,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20020805-1.c.s b/test/torture-s/20020805-1.c.s index a3805a5d6..22ca9df58 100644 --- a/test/torture-s/20020805-1.c.s +++ b/test/torture-s/20020805-1.c.s @@ -58,3 +58,5 @@ n: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20020810-1.c.s b/test/torture-s/20020810-1.c.s index fe0b73aef..5e0d443d8 100644 --- a/test/torture-s/20020810-1.c.s +++ b/test/torture-s/20020810-1.c.s @@ -85,3 +85,4 @@ R: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20020819-1.c.s b/test/torture-s/20020819-1.c.s index 75fcd2f3c..fc30618a9 100644 --- a/test/torture-s/20020819-1.c.s +++ b/test/torture-s/20020819-1.c.s @@ -29,3 +29,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20020911-1.c.s b/test/torture-s/20020911-1.c.s index c685c71c7..39a2d8a9a 100644 --- a/test/torture-s/20020911-1.c.s +++ b/test/torture-s/20020911-1.c.s @@ -45,3 +45,4 @@ c: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20020920-1.c.s b/test/torture-s/20020920-1.c.s index 647b1eacf..04d4ce99a 100644 --- a/test/torture-s/20020920-1.c.s +++ b/test/torture-s/20020920-1.c.s @@ -32,3 +32,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20021010-1.c.s b/test/torture-s/20021010-1.c.s index 57bddcded..620bccae7 100644 --- a/test/torture-s/20021010-1.c.s +++ b/test/torture-s/20021010-1.c.s @@ -29,3 +29,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20021010-2.c.s b/test/torture-s/20021010-2.c.s index 0531d3d67..e844ff858 100644 --- a/test/torture-s/20021010-2.c.s +++ b/test/torture-s/20021010-2.c.s @@ -86,3 +86,5 @@ global_saveRect: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20021011-1.c.s b/test/torture-s/20021011-1.c.s index dcb88b6d9..3184b73ec 100644 --- a/test/torture-s/20021011-1.c.s +++ b/test/torture-s/20021011-1.c.s @@ -225,3 +225,5 @@ buf: .ident "clang version 3.9.0 " + .functype strcmp, i32, i32, i32 + .functype abort, void diff --git a/test/torture-s/20021015-1.c.s b/test/torture-s/20021015-1.c.s index 278d08537..22219cb2f 100644 --- a/test/torture-s/20021015-1.c.s +++ b/test/torture-s/20021015-1.c.s @@ -59,3 +59,4 @@ g_list: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20021024-1.c.s b/test/torture-s/20021024-1.c.s index 2d87e64e0..7c3810986 100644 --- a/test/torture-s/20021024-1.c.s +++ b/test/torture-s/20021024-1.c.s @@ -120,3 +120,4 @@ m: .lcomm main.r,512,4 .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20021111-1.c.s b/test/torture-s/20021111-1.c.s index 7b987173b..bebeebd29 100644 --- a/test/torture-s/20021111-1.c.s +++ b/test/torture-s/20021111-1.c.s @@ -63,3 +63,5 @@ main: # @main .lcomm aim_callhandler.i,4,2 .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20021113-1.c.s b/test/torture-s/20021113-1.c.s index 374651507..2ba334baa 100644 --- a/test/torture-s/20021113-1.c.s +++ b/test/torture-s/20021113-1.c.s @@ -32,3 +32,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20021118-1.c.s b/test/torture-s/20021118-1.c.s index b85fac1cd..df5d8d2cd 100644 --- a/test/torture-s/20021118-1.c.s +++ b/test/torture-s/20021118-1.c.s @@ -31,3 +31,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20021118-2.c.s b/test/torture-s/20021118-2.c.s index ca5a0e3da..9d9e343d5 100644 --- a/test/torture-s/20021118-2.c.s +++ b/test/torture-s/20021118-2.c.s @@ -139,3 +139,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20021118-3.c.s b/test/torture-s/20021118-3.c.s index acd649e81..b04e0638e 100644 --- a/test/torture-s/20021118-3.c.s +++ b/test/torture-s/20021118-3.c.s @@ -45,3 +45,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20021120-1.c.s b/test/torture-s/20021120-1.c.s index bb8db5415..4999216ad 100644 --- a/test/torture-s/20021120-1.c.s +++ b/test/torture-s/20021120-1.c.s @@ -668,3 +668,5 @@ gf: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20021120-2.c.s b/test/torture-s/20021120-2.c.s index 48a8f2ab6..b12d413f5 100644 --- a/test/torture-s/20021120-2.c.s +++ b/test/torture-s/20021120-2.c.s @@ -58,3 +58,4 @@ g2: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20021120-3.c.s b/test/torture-s/20021120-3.c.s index 227d9969b..c1a756a65 100644 --- a/test/torture-s/20021120-3.c.s +++ b/test/torture-s/20021120-3.c.s @@ -70,3 +70,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype sprintf, i32, i32, i32 + .functype exit, void, i32 diff --git a/test/torture-s/20021127-1.c.s b/test/torture-s/20021127-1.c.s index 00ef59f78..751709894 100644 --- a/test/torture-s/20021127-1.c.s +++ b/test/torture-s/20021127-1.c.s @@ -38,3 +38,4 @@ a: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20021204-1.c.s b/test/torture-s/20021204-1.c.s index 5a531aa5d..bda43a0bd 100644 --- a/test/torture-s/20021204-1.c.s +++ b/test/torture-s/20021204-1.c.s @@ -55,3 +55,5 @@ z: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20030105-1.c.s b/test/torture-s/20030105-1.c.s index ab250323d..aaffa0a83 100644 --- a/test/torture-s/20030105-1.c.s +++ b/test/torture-s/20030105-1.c.s @@ -39,3 +39,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20030109-1.c.s b/test/torture-s/20030109-1.c.s index 493f4cca6..b2a0ea196 100644 --- a/test/torture-s/20030109-1.c.s +++ b/test/torture-s/20030109-1.c.s @@ -36,3 +36,4 @@ x: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20030117-1.c.s b/test/torture-s/20030117-1.c.s index 99f93e4fb..2aa85f550 100644 --- a/test/torture-s/20030117-1.c.s +++ b/test/torture-s/20030117-1.c.s @@ -53,3 +53,4 @@ bar: # @bar .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20030120-1.c.s b/test/torture-s/20030120-1.c.s index b1509c451..fe03df7f8 100644 --- a/test/torture-s/20030120-1.c.s +++ b/test/torture-s/20030120-1.c.s @@ -65,3 +65,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20030125-1.c.s b/test/torture-s/20030125-1.c.s index bca3f5071..ce5d4a722 100644 --- a/test/torture-s/20030125-1.c.s +++ b/test/torture-s/20030125-1.c.s @@ -117,3 +117,4 @@ sinf: # @sinf .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20030128-1.c.s b/test/torture-s/20030128-1.c.s index 18f0a5617..8b785d038 100644 --- a/test/torture-s/20030128-1.c.s +++ b/test/torture-s/20030128-1.c.s @@ -52,3 +52,5 @@ y: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20030209-1.c.s b/test/torture-s/20030209-1.c.s index 5390ae22b..0c15e6b32 100644 --- a/test/torture-s/20030209-1.c.s +++ b/test/torture-s/20030209-1.c.s @@ -28,3 +28,4 @@ x: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20030218-1.c.s b/test/torture-s/20030218-1.c.s index bc7db16cb..c3d25fc67 100644 --- a/test/torture-s/20030218-1.c.s +++ b/test/torture-s/20030218-1.c.s @@ -57,3 +57,4 @@ q: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20030221-1.c.s b/test/torture-s/20030221-1.c.s index 43b557368..48f597ec9 100644 --- a/test/torture-s/20030221-1.c.s +++ b/test/torture-s/20030221-1.c.s @@ -53,3 +53,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype strlen, i32, i32 + .functype abort, void diff --git a/test/torture-s/20030222-1.c.s b/test/torture-s/20030222-1.c.s index 1a1840347..55cabea64 100644 --- a/test/torture-s/20030222-1.c.s +++ b/test/torture-s/20030222-1.c.s @@ -63,3 +63,5 @@ val: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20030313-1.c.s b/test/torture-s/20030313-1.c.s index 714e1cc82..ce24f2ef3 100644 --- a/test/torture-s/20030313-1.c.s +++ b/test/torture-s/20030313-1.c.s @@ -143,3 +143,5 @@ x: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20030606-1.c.s b/test/torture-s/20030606-1.c.s index 0026a088c..be0b23820 100644 --- a/test/torture-s/20030606-1.c.s +++ b/test/torture-s/20030606-1.c.s @@ -45,3 +45,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20030714-1.c.s b/test/torture-s/20030714-1.c.s index 39d366ad6..86b72d4d1 100644 --- a/test/torture-s/20030714-1.c.s +++ b/test/torture-s/20030714-1.c.s @@ -194,3 +194,4 @@ g__style: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20030715-1.c.s b/test/torture-s/20030715-1.c.s index 9cc2d954b..4f7a65c5e 100644 --- a/test/torture-s/20030715-1.c.s +++ b/test/torture-s/20030715-1.c.s @@ -93,3 +93,4 @@ ap_standalone: .ident "clang version 3.9.0 " + .functype strcmp, i32, i32, i32 diff --git a/test/torture-s/20030821-1.c.s b/test/torture-s/20030821-1.c.s index 6ace7daba..8a3150782 100644 --- a/test/torture-s/20030821-1.c.s +++ b/test/torture-s/20030821-1.c.s @@ -40,3 +40,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20030828-1.c.s b/test/torture-s/20030828-1.c.s index aaf1b31d7..1502ed98d 100644 --- a/test/torture-s/20030828-1.c.s +++ b/test/torture-s/20030828-1.c.s @@ -56,3 +56,4 @@ p: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20030828-2.c.s b/test/torture-s/20030828-2.c.s index 68a6ebf47..6bd4af07f 100644 --- a/test/torture-s/20030828-2.c.s +++ b/test/torture-s/20030828-2.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20030903-1.c.s b/test/torture-s/20030903-1.c.s index 5f57fcf2c..cfbe13eec 100644 --- a/test/torture-s/20030903-1.c.s +++ b/test/torture-s/20030903-1.c.s @@ -46,3 +46,4 @@ y: # @y .lcomm test,4,2 .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20030909-1.c.s b/test/torture-s/20030909-1.c.s index 2e80cb5eb..6e30fdaac 100644 --- a/test/torture-s/20030909-1.c.s +++ b/test/torture-s/20030909-1.c.s @@ -48,3 +48,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20030910-1.c.s b/test/torture-s/20030910-1.c.s index 01a527c47..5e0582252 100644 --- a/test/torture-s/20030910-1.c.s +++ b/test/torture-s/20030910-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20030913-1.c.s b/test/torture-s/20030913-1.c.s index 9cc7f54a9..9118ee726 100644 --- a/test/torture-s/20030913-1.c.s +++ b/test/torture-s/20030913-1.c.s @@ -56,3 +56,4 @@ glob: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20030914-1.c.s b/test/torture-s/20030914-1.c.s index dcda08ff4..99131244e 100644 --- a/test/torture-s/20030914-1.c.s +++ b/test/torture-s/20030914-1.c.s @@ -344,3 +344,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20030914-2.c.s b/test/torture-s/20030914-2.c.s index bcd31e73a..47da0d3c0 100644 --- a/test/torture-s/20030914-2.c.s +++ b/test/torture-s/20030914-2.c.s @@ -66,3 +66,5 @@ gs: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20030916-1.c.s b/test/torture-s/20030916-1.c.s index 298e0086c..e2a460170 100644 --- a/test/torture-s/20030916-1.c.s +++ b/test/torture-s/20030916-1.c.s @@ -128,3 +128,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20030928-1.c.s b/test/torture-s/20030928-1.c.s index d5bbd1bbc..2d03f7859 100644 --- a/test/torture-s/20030928-1.c.s +++ b/test/torture-s/20030928-1.c.s @@ -117,3 +117,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20031010-1.c.s b/test/torture-s/20031010-1.c.s index 96930fe4f..902d60194 100644 --- a/test/torture-s/20031010-1.c.s +++ b/test/torture-s/20031010-1.c.s @@ -61,3 +61,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20031012-1.c.s b/test/torture-s/20031012-1.c.s index c1c0402c4..916422176 100644 --- a/test/torture-s/20031012-1.c.s +++ b/test/torture-s/20031012-1.c.s @@ -42,3 +42,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype strlen, i32, i32 + .functype abort, void diff --git a/test/torture-s/20031020-1.c.s b/test/torture-s/20031020-1.c.s index dc44e3b23..7b7d5bdf2 100644 --- a/test/torture-s/20031020-1.c.s +++ b/test/torture-s/20031020-1.c.s @@ -40,3 +40,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20031201-1.c.s b/test/torture-s/20031201-1.c.s index a399710be..df61e1ce8 100644 --- a/test/torture-s/20031201-1.c.s +++ b/test/torture-s/20031201-1.c.s @@ -125,3 +125,5 @@ main: # @main .lcomm f0.washere,4,2 .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20031204-1.c.s b/test/torture-s/20031204-1.c.s index 733d4c364..1cc9d0100 100644 --- a/test/torture-s/20031204-1.c.s +++ b/test/torture-s/20031204-1.c.s @@ -21,93 +21,111 @@ in_aton: # @in_aton root_nfs_parse_addr: # @root_nfs_parse_addr .param i32 .result i32 - .local i32, i32, i32, i32, i32 + .local i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry i32.const $1=, 0 - copy_local $3=, $0 + copy_local $4=, $0 .LBB1_1: # %while.cond1.preheader # =>This Loop Header: Depth=1 # Child Loop BB1_2 Depth 2 block - loop # label1: - copy_local $4=, $3 + block + loop # label2: + i32.const $5=, 0 + copy_local $6=, $4 .LBB1_2: # %while.cond1 # Parent Loop BB1_1 Depth=1 # => This Inner Loop Header: Depth=2 - loop # label3: - copy_local $push24=, $4 - tee_local $push23=, $5=, $pop24 - i32.const $push22=, 1 - i32.add $4=, $pop23, $pop22 - i32.load8_u $push21=, 0($5) - tee_local $push20=, $2=, $pop21 - i32.const $push19=, -48 - i32.add $push0=, $pop20, $pop19 - i32.const $push18=, 255 - i32.and $push1=, $pop0, $pop18 - i32.const $push17=, 10 - i32.lt_u $push2=, $pop1, $pop17 - br_if 0, $pop2 # 0: up to label3 + loop # label4: + copy_local $push30=, $6 + tee_local $push29=, $7=, $pop30 + i32.const $push28=, 1 + i32.add $6=, $pop29, $pop28 + i32.add $3=, $4, $5 + i32.const $push27=, 1 + i32.add $push26=, $5, $pop27 + tee_local $push25=, $2=, $pop26 + copy_local $5=, $pop25 + i32.load8_u $push24=, 0($3) + tee_local $push23=, $3=, $pop24 + i32.const $push22=, -48 + i32.add $push1=, $pop23, $pop22 + i32.const $push21=, 255 + i32.and $push2=, $pop1, $pop21 + i32.const $push20=, 10 + i32.lt_u $push3=, $pop2, $pop20 + br_if 0, $pop3 # 0: up to label4 # BB#3: # %while.end # in Loop: Header=BB1_1 Depth=1 - end_loop # label4: - i32.eq $push3=, $5, $3 - br_if 1, $pop3 # 1: down to label2 + end_loop # label5: + i32.const $push31=, 1 + i32.eq $push4=, $2, $pop31 + br_if 1, $pop4 # 1: down to label3 # BB#4: # %lor.lhs.false # in Loop: Header=BB1_1 Depth=1 - i32.sub $push4=, $5, $3 - i32.const $push25=, 3 - i32.gt_s $push5=, $pop4, $pop25 - br_if 2, $pop5 # 2: down to label0 + i32.add $push35=, $4, $2 + tee_local $push34=, $5=, $pop35 + i32.const $push33=, -1 + i32.add $push0=, $pop34, $pop33 + i32.sub $push5=, $pop0, $4 + i32.const $push32=, 4 + i32.ge_s $push6=, $pop5, $pop32 + br_if 2, $pop6 # 2: down to label1 # BB#5: # %if.end # in Loop: Header=BB1_1 Depth=1 - copy_local $3=, $4 - i32.const $push31=, 3 - i32.eq $push6=, $1, $pop31 - i32.const $push30=, 255 - i32.and $push7=, $2, $pop30 - i32.const $push29=, 46 - i32.eq $push8=, $pop7, $pop29 - i32.or $push9=, $pop6, $pop8 - i32.add $push28=, $pop9, $1 - tee_local $push27=, $1=, $pop28 - i32.const $push26=, 4 - i32.lt_s $push10=, $pop27, $pop26 - br_if 0, $pop10 # 0: up to label1 - br 2 # 2: down to label0 + copy_local $4=, $5 + i32.const $push41=, 3 + i32.eq $push7=, $1, $pop41 + i32.const $push40=, 255 + i32.and $push8=, $3, $pop40 + i32.const $push39=, 46 + i32.eq $push9=, $pop8, $pop39 + i32.or $push10=, $pop7, $pop9 + i32.add $push38=, $pop10, $1 + tee_local $push37=, $1=, $pop38 + i32.const $push36=, 4 + i32.lt_s $push11=, $pop37, $pop36 + br_if 0, $pop11 # 0: up to label2 + br 3 # 3: down to label0 .LBB1_6: - end_loop # label2: - copy_local $5=, $3 -.LBB1_7: # %while.end25 + end_loop # label3: + copy_local $7=, $4 + br 1 # 1: down to label0 +.LBB1_7: # %lor.lhs.false.while.end25_crit_edge + end_block # label1: + i32.add $push12=, $4, $2 + i32.const $push13=, -1 + i32.add $7=, $pop12, $pop13 +.LBB1_8: # %while.end25 end_block # label0: - i32.const $4=, -1 - block - i32.const $push11=, 4 - i32.ne $push12=, $1, $pop11 - br_if 0, $pop12 # 0: down to label5 -# BB#8: # %land.lhs.true + i32.const $5=, -1 block - i32.load8_u $push33=, 0($5) - tee_local $push32=, $2=, $pop33 - i32.eqz $push34=, $pop32 - br_if 0, $pop34 # 0: down to label6 + i32.const $push14=, 4 + i32.ne $push15=, $1, $pop14 + br_if 0, $pop15 # 0: down to label6 # BB#9: # %land.lhs.true - i32.const $push13=, 58 - i32.ne $push14=, $2, $pop13 - br_if 1, $pop14 # 1: down to label5 -# BB#10: # %if.then39 - i32.const $push15=, 0 - i32.store8 $drop=, 0($5), $pop15 - i32.const $push16=, 1 - i32.add $5=, $5, $pop16 -.LBB1_11: # %if.end41 + block + i32.load8_u $push43=, 0($7) + tee_local $push42=, $6=, $pop43 + i32.eqz $push44=, $pop42 + br_if 0, $pop44 # 0: down to label7 +# BB#10: # %land.lhs.true + i32.const $push16=, 58 + i32.ne $push17=, $6, $pop16 + br_if 1, $pop17 # 1: down to label6 +# BB#11: # %if.then39 + i32.const $push18=, 0 + i32.store8 $drop=, 0($7), $pop18 + i32.const $push19=, 1 + i32.add $7=, $7, $pop19 +.LBB1_12: # %if.end41 + end_block # label7: + i32.call $drop=, strcpy@FUNCTION, $0, $7 + i32.const $5=, 168496141 +.LBB1_13: # %if.end43 end_block # label6: - i32.call $drop=, strcpy@FUNCTION, $0, $5 - i32.const $4=, 168496141 -.LBB1_12: # %if.end43 - end_block # label5: - copy_local $push35=, $4 - # fallthrough-return: $pop35 + copy_local $push45=, $5 + # fallthrough-return: $pop45 .endfunc .Lfunc_end1: .size root_nfs_parse_addr, .Lfunc_end1-root_nfs_parse_addr @@ -118,92 +136,110 @@ root_nfs_parse_addr: # @root_nfs_parse_addr .type main,@function main: # @main .result i32 - .local i32, i32, i32, i32, i32 + .local i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry i32.const $0=, 0 - i32.const $2=, main.addr + i32.const $3=, main.addr .LBB2_1: # %while.cond1.preheader.i # =>This Loop Header: Depth=1 # Child Loop BB2_2 Depth 2 block - loop # label8: - copy_local $3=, $2 + block + loop # label10: + i32.const $4=, 0 + copy_local $5=, $3 .LBB2_2: # %while.cond1.i # Parent Loop BB2_1 Depth=1 # => This Inner Loop Header: Depth=2 - loop # label10: - copy_local $push26=, $3 - tee_local $push25=, $4=, $pop26 - i32.const $push24=, 1 - i32.add $3=, $pop25, $pop24 - i32.load8_u $push23=, 0($4) - tee_local $push22=, $1=, $pop23 - i32.const $push21=, -48 - i32.add $push0=, $pop22, $pop21 - i32.const $push20=, 255 - i32.and $push1=, $pop0, $pop20 - i32.const $push19=, 10 - i32.lt_u $push2=, $pop1, $pop19 - br_if 0, $pop2 # 0: up to label10 + loop # label12: + copy_local $push32=, $5 + tee_local $push31=, $6=, $pop32 + i32.const $push30=, 1 + i32.add $5=, $pop31, $pop30 + i32.add $2=, $3, $4 + i32.const $push29=, 1 + i32.add $push28=, $4, $pop29 + tee_local $push27=, $1=, $pop28 + copy_local $4=, $pop27 + i32.load8_u $push26=, 0($2) + tee_local $push25=, $2=, $pop26 + i32.const $push24=, -48 + i32.add $push1=, $pop25, $pop24 + i32.const $push23=, 255 + i32.and $push2=, $pop1, $pop23 + i32.const $push22=, 10 + i32.lt_u $push3=, $pop2, $pop22 + br_if 0, $pop3 # 0: up to label12 # BB#3: # %while.end.i # in Loop: Header=BB2_1 Depth=1 - end_loop # label11: - i32.eq $push3=, $4, $2 - br_if 1, $pop3 # 1: down to label9 + end_loop # label13: + i32.const $push33=, 1 + i32.eq $push4=, $1, $pop33 + br_if 1, $pop4 # 1: down to label11 # BB#4: # %lor.lhs.false.i # in Loop: Header=BB2_1 Depth=1 - i32.sub $push4=, $4, $2 - i32.const $push27=, 3 - i32.gt_s $push5=, $pop4, $pop27 - br_if 2, $pop5 # 2: down to label7 + i32.add $push37=, $3, $1 + tee_local $push36=, $4=, $pop37 + i32.const $push35=, -1 + i32.add $push0=, $pop36, $pop35 + i32.sub $push5=, $pop0, $3 + i32.const $push34=, 4 + i32.ge_s $push6=, $pop5, $pop34 + br_if 2, $pop6 # 2: down to label9 # BB#5: # %if.end.i # in Loop: Header=BB2_1 Depth=1 - copy_local $2=, $3 - i32.const $push33=, 3 - i32.eq $push6=, $0, $pop33 - i32.const $push32=, 255 - i32.and $push7=, $1, $pop32 - i32.const $push31=, 46 - i32.eq $push8=, $pop7, $pop31 - i32.or $push9=, $pop6, $pop8 - i32.add $push30=, $pop9, $0 - tee_local $push29=, $0=, $pop30 - i32.const $push28=, 4 - i32.lt_s $push10=, $pop29, $pop28 - br_if 0, $pop10 # 0: up to label8 - br 2 # 2: down to label7 + copy_local $3=, $4 + i32.const $push43=, 3 + i32.eq $push7=, $0, $pop43 + i32.const $push42=, 255 + i32.and $push8=, $2, $pop42 + i32.const $push41=, 46 + i32.eq $push9=, $pop8, $pop41 + i32.or $push10=, $pop7, $pop9 + i32.add $push40=, $pop10, $0 + tee_local $push39=, $0=, $pop40 + i32.const $push38=, 4 + i32.lt_s $push11=, $pop39, $pop38 + br_if 0, $pop11 # 0: up to label10 + br 3 # 3: down to label8 .LBB2_6: - end_loop # label9: - copy_local $4=, $2 -.LBB2_7: # %while.end25.i - end_block # label7: - block - i32.const $push11=, 4 - i32.ne $push12=, $0, $pop11 - br_if 0, $pop12 # 0: down to label12 -# BB#8: # %land.lhs.true.i + end_loop # label11: + copy_local $6=, $3 + br 1 # 1: down to label8 +.LBB2_7: # %lor.lhs.false.i.while.end25.i_crit_edge + end_block # label9: + i32.add $push12=, $3, $1 + i32.const $push13=, -1 + i32.add $6=, $pop12, $pop13 +.LBB2_8: # %while.end25.i + end_block # label8: block - i32.load8_u $push35=, 0($4) - tee_local $push34=, $3=, $pop35 - i32.eqz $push36=, $pop34 - br_if 0, $pop36 # 0: down to label13 + i32.const $push14=, 4 + i32.ne $push15=, $0, $pop14 + br_if 0, $pop15 # 0: down to label14 # BB#9: # %land.lhs.true.i - i32.const $push13=, 58 - i32.ne $push14=, $3, $pop13 - br_if 1, $pop14 # 1: down to label12 -# BB#10: # %if.then39.i - i32.const $push15=, 0 - i32.store8 $drop=, 0($4), $pop15 - i32.const $push16=, 1 - i32.add $4=, $4, $pop16 -.LBB2_11: # %if.end - end_block # label13: - i32.const $push17=, main.addr - i32.call $drop=, strcpy@FUNCTION, $pop17, $4 + block + i32.load8_u $push45=, 0($6) + tee_local $push44=, $4=, $pop45 + i32.eqz $push46=, $pop44 + br_if 0, $pop46 # 0: down to label15 +# BB#10: # %land.lhs.true.i + i32.const $push16=, 58 + i32.ne $push17=, $4, $pop16 + br_if 1, $pop17 # 1: down to label14 +# BB#11: # %if.then39.i i32.const $push18=, 0 - return $pop18 -.LBB2_12: # %if.then - end_block # label12: + i32.store8 $drop=, 0($6), $pop18 + i32.const $push19=, 1 + i32.add $6=, $6, $pop19 +.LBB2_12: # %if.end + end_block # label15: + i32.const $push20=, main.addr + i32.call $drop=, strcpy@FUNCTION, $pop20, $6 + i32.const $push21=, 0 + return $pop21 +.LBB2_13: # %if.then + end_block # label14: call abort@FUNCTION unreachable .endfunc @@ -219,3 +255,5 @@ main.addr: .ident "clang version 3.9.0 " + .functype strcpy, i32, i32, i32 + .functype abort, void diff --git a/test/torture-s/20031211-1.c.s b/test/torture-s/20031211-1.c.s index 5d92752d5..4e3490028 100644 --- a/test/torture-s/20031211-1.c.s +++ b/test/torture-s/20031211-1.c.s @@ -28,3 +28,4 @@ x: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20031211-2.c.s b/test/torture-s/20031211-2.c.s index 258b6c332..d0a40abf9 100644 --- a/test/torture-s/20031211-2.c.s +++ b/test/torture-s/20031211-2.c.s @@ -38,3 +38,5 @@ foo: # @foo .ident "clang version 3.9.0 " + .functype exit, void, i32 + .functype abort, void diff --git a/test/torture-s/20031216-1.c.s b/test/torture-s/20031216-1.c.s index ede72806e..ff4927922 100644 --- a/test/torture-s/20031216-1.c.s +++ b/test/torture-s/20031216-1.c.s @@ -49,3 +49,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20040208-1.c.s b/test/torture-s/20040208-1.c.s index 49af75f19..b20afcca7 100644 --- a/test/torture-s/20040208-1.c.s +++ b/test/torture-s/20040208-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20040218-1.c.s b/test/torture-s/20040218-1.c.s index 879153652..03cb62df3 100644 --- a/test/torture-s/20040218-1.c.s +++ b/test/torture-s/20040218-1.c.s @@ -108,3 +108,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20040223-1.c.s b/test/torture-s/20040223-1.c.s index 0b7dbe59a..e3e3071da 100644 --- a/test/torture-s/20040223-1.c.s +++ b/test/torture-s/20040223-1.c.s @@ -36,3 +36,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20040319-1.c.s b/test/torture-s/20040319-1.c.s index 221c7d6c9..f3e456b02 100644 --- a/test/torture-s/20040319-1.c.s +++ b/test/torture-s/20040319-1.c.s @@ -35,3 +35,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20040331-1.c.s b/test/torture-s/20040331-1.c.s index 684df5367..95a16c7f9 100644 --- a/test/torture-s/20040331-1.c.s +++ b/test/torture-s/20040331-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20040409-1.c.s b/test/torture-s/20040409-1.c.s index 120d84580..09ec9e655 100644 --- a/test/torture-s/20040409-1.c.s +++ b/test/torture-s/20040409-1.c.s @@ -239,3 +239,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20040409-2.c.s b/test/torture-s/20040409-2.c.s index 49ad6b099..ecf8d515b 100644 --- a/test/torture-s/20040409-2.c.s +++ b/test/torture-s/20040409-2.c.s @@ -419,3 +419,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20040409-3.c.s b/test/torture-s/20040409-3.c.s index d1dea454e..20d1f0055 100644 --- a/test/torture-s/20040409-3.c.s +++ b/test/torture-s/20040409-3.c.s @@ -239,3 +239,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20040625-1.c.s b/test/torture-s/20040625-1.c.s index 07ba675a4..17af7ea32 100644 --- a/test/torture-s/20040625-1.c.s +++ b/test/torture-s/20040625-1.c.s @@ -59,3 +59,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20040703-1.c.s b/test/torture-s/20040703-1.c.s index 33bf3877f..024828883 100644 --- a/test/torture-s/20040703-1.c.s +++ b/test/torture-s/20040703-1.c.s @@ -356,3 +356,5 @@ num: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20040706-1.c.s b/test/torture-s/20040706-1.c.s index 6a9c873c7..4ef732e1c 100644 --- a/test/torture-s/20040706-1.c.s +++ b/test/torture-s/20040706-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20040707-1.c.s b/test/torture-s/20040707-1.c.s index 619775495..1dba2b2e9 100644 --- a/test/torture-s/20040707-1.c.s +++ b/test/torture-s/20040707-1.c.s @@ -28,3 +28,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20040709-1.c.s b/test/torture-s/20040709-1.c.s index 57cf2910f..ef2b82e38 100644 --- a/test/torture-s/20040709-1.c.s +++ b/test/torture-s/20040709-1.c.s @@ -7615,3 +7615,5 @@ sZ: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20040709-2.c.s b/test/torture-s/20040709-2.c.s index 4898df0e9..7c6ff9e39 100644 --- a/test/torture-s/20040709-2.c.s +++ b/test/torture-s/20040709-2.c.s @@ -6908,3 +6908,5 @@ sZ: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20040805-1.c.s b/test/torture-s/20040805-1.c.s index a78c176f8..31c931779 100644 --- a/test/torture-s/20040805-1.c.s +++ b/test/torture-s/20040805-1.c.s @@ -73,3 +73,5 @@ a: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20040820-1.c.s b/test/torture-s/20040820-1.c.s index f4bd2a2c1..980149b8c 100644 --- a/test/torture-s/20040820-1.c.s +++ b/test/torture-s/20040820-1.c.s @@ -68,3 +68,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20040823-1.c.s b/test/torture-s/20040823-1.c.s index 457d016aa..73595237e 100644 --- a/test/torture-s/20040823-1.c.s +++ b/test/torture-s/20040823-1.c.s @@ -61,3 +61,5 @@ pwarn: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20040831-1.c.s b/test/torture-s/20040831-1.c.s index d92020917..408426fed 100644 --- a/test/torture-s/20040831-1.c.s +++ b/test/torture-s/20040831-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20040917-1.c.s b/test/torture-s/20040917-1.c.s index b88a3a183..32e5f5edf 100644 --- a/test/torture-s/20040917-1.c.s +++ b/test/torture-s/20040917-1.c.s @@ -46,3 +46,4 @@ main: # @main .lcomm test_var,4,2 .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20041011-1.c.s b/test/torture-s/20041011-1.c.s index 3d5688a51..07bd45efc 100644 --- a/test/torture-s/20041011-1.c.s +++ b/test/torture-s/20041011-1.c.s @@ -1973,3 +1973,5 @@ gull: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20041113-1.c.s b/test/torture-s/20041113-1.c.s index 2042359eb..6d2ab9682 100644 --- a/test/torture-s/20041113-1.c.s +++ b/test/torture-s/20041113-1.c.s @@ -110,3 +110,5 @@ a: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20041124-1.c.s b/test/torture-s/20041124-1.c.s index 596e4401c..4cdc92944 100644 --- a/test/torture-s/20041124-1.c.s +++ b/test/torture-s/20041124-1.c.s @@ -74,3 +74,5 @@ gs: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20041126-1.c.s b/test/torture-s/20041126-1.c.s index 0e7b7b69b..2dc7fcc70 100644 --- a/test/torture-s/20041126-1.c.s +++ b/test/torture-s/20041126-1.c.s @@ -136,3 +136,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20041210-1.c.s b/test/torture-s/20041210-1.c.s index dc501f74b..adcd8eab0 100644 --- a/test/torture-s/20041210-1.c.s +++ b/test/torture-s/20041210-1.c.s @@ -55,3 +55,5 @@ x: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20041212-1.c.s b/test/torture-s/20041212-1.c.s index 01a48c645..d443448c7 100644 --- a/test/torture-s/20041212-1.c.s +++ b/test/torture-s/20041212-1.c.s @@ -29,3 +29,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20041213-2.c.s b/test/torture-s/20041213-2.c.s index a0b794231..def62d3a9 100644 --- a/test/torture-s/20041213-2.c.s +++ b/test/torture-s/20041213-2.c.s @@ -74,3 +74,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20041214-1.c.s b/test/torture-s/20041214-1.c.s index 3c884048e..8132ac118 100644 --- a/test/torture-s/20041214-1.c.s +++ b/test/torture-s/20041214-1.c.s @@ -140,3 +140,6 @@ main: # @main .ident "clang version 3.9.0 " + .functype strcpy, i32, i32, i32 + .functype strcmp, i32, i32, i32 + .functype abort, void diff --git a/test/torture-s/20041218-1.c.s b/test/torture-s/20041218-1.c.s index fd493007f..7a7896024 100644 --- a/test/torture-s/20041218-1.c.s +++ b/test/torture-s/20041218-1.c.s @@ -167,3 +167,5 @@ main: # @main .lcomm baz.v,44,2 .ident "clang version 3.9.0 " + .functype exit, void, i32 + .functype abort, void diff --git a/test/torture-s/20050104-1.c.s b/test/torture-s/20050104-1.c.s index d6be4bf8f..2fdb91068 100644 --- a/test/torture-s/20050104-1.c.s +++ b/test/torture-s/20050104-1.c.s @@ -36,3 +36,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20050106-1.c.s b/test/torture-s/20050106-1.c.s index 9b95e8505..75a6b3ee8 100644 --- a/test/torture-s/20050106-1.c.s +++ b/test/torture-s/20050106-1.c.s @@ -35,3 +35,4 @@ u: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20050107-1.c.s b/test/torture-s/20050107-1.c.s index cc854866a..b7c5bfce6 100644 --- a/test/torture-s/20050107-1.c.s +++ b/test/torture-s/20050107-1.c.s @@ -42,3 +42,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20050119-1.c.s b/test/torture-s/20050119-1.c.s index 968d6c82c..98b251f19 100644 --- a/test/torture-s/20050119-1.c.s +++ b/test/torture-s/20050119-1.c.s @@ -61,3 +61,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20050119-2.c.s b/test/torture-s/20050119-2.c.s index a91288777..7c08144b2 100644 --- a/test/torture-s/20050119-2.c.s +++ b/test/torture-s/20050119-2.c.s @@ -45,3 +45,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20050131-1.c.s b/test/torture-s/20050131-1.c.s index 8a10b331d..422121afa 100644 --- a/test/torture-s/20050131-1.c.s +++ b/test/torture-s/20050131-1.c.s @@ -31,3 +31,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20050203-1.c.s b/test/torture-s/20050203-1.c.s index 7011c2002..f277efeef 100644 --- a/test/torture-s/20050203-1.c.s +++ b/test/torture-s/20050203-1.c.s @@ -61,3 +61,5 @@ bar: # @bar .ident "clang version 3.9.0 " + .functype exit, void, i32 + .functype abort, void diff --git a/test/torture-s/20050215-1.c.s b/test/torture-s/20050215-1.c.s index 787b24f33..2e28b0bc2 100644 --- a/test/torture-s/20050215-1.c.s +++ b/test/torture-s/20050215-1.c.s @@ -57,3 +57,4 @@ v: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20050218-1.c.s b/test/torture-s/20050218-1.c.s index b967f43b4..4b9dec25d 100644 --- a/test/torture-s/20050218-1.c.s +++ b/test/torture-s/20050218-1.c.s @@ -159,3 +159,6 @@ a: .ident "clang version 3.9.0 " + .functype strncmp, i32, i32, i32, i32 + .functype strlen, i32, i32 + .functype abort, void diff --git a/test/torture-s/20050224-1.c.s b/test/torture-s/20050224-1.c.s index 0bb485602..c131f769a 100644 --- a/test/torture-s/20050224-1.c.s +++ b/test/torture-s/20050224-1.c.s @@ -178,3 +178,4 @@ f: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20050410-1.c.s b/test/torture-s/20050410-1.c.s index 2ac63b465..debd86ea3 100644 --- a/test/torture-s/20050410-1.c.s +++ b/test/torture-s/20050410-1.c.s @@ -57,3 +57,5 @@ s: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20050502-1.c.s b/test/torture-s/20050502-1.c.s index a8f5c196c..4dc0fed8a 100644 --- a/test/torture-s/20050502-1.c.s +++ b/test/torture-s/20050502-1.c.s @@ -320,3 +320,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype strcmp, i32, i32, i32 + .functype abort, void diff --git a/test/torture-s/20050502-2.c.s b/test/torture-s/20050502-2.c.s index 2e00417cd..8c9c72f8f 100644 --- a/test/torture-s/20050502-2.c.s +++ b/test/torture-s/20050502-2.c.s @@ -113,3 +113,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype memcmp, i32, i32, i32, i32 + .functype abort, void diff --git a/test/torture-s/20050604-1.c.s b/test/torture-s/20050604-1.c.s index 7bb7be0c3..296aeed55 100644 --- a/test/torture-s/20050604-1.c.s +++ b/test/torture-s/20050604-1.c.s @@ -176,3 +176,4 @@ v: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20050613-1.c.s b/test/torture-s/20050613-1.c.s index 70131a67e..27bb3fad9 100644 --- a/test/torture-s/20050613-1.c.s +++ b/test/torture-s/20050613-1.c.s @@ -46,3 +46,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20050713-1.c.s b/test/torture-s/20050713-1.c.s index 3116d1309..138efb4a6 100644 --- a/test/torture-s/20050713-1.c.s +++ b/test/torture-s/20050713-1.c.s @@ -305,3 +305,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20050826-1.c.s b/test/torture-s/20050826-1.c.s index 1df5063ed..21c0fb6f8 100644 --- a/test/torture-s/20050826-1.c.s +++ b/test/torture-s/20050826-1.c.s @@ -199,3 +199,5 @@ a: .ident "clang version 3.9.0 " + .functype memcmp, i32, i32, i32, i32 + .functype abort, void diff --git a/test/torture-s/20050826-2.c.s b/test/torture-s/20050826-2.c.s index cd50ef7d9..71dad3a94 100644 --- a/test/torture-s/20050826-2.c.s +++ b/test/torture-s/20050826-2.c.s @@ -356,3 +356,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20050929-1.c.s b/test/torture-s/20050929-1.c.s index 3d27b2228..273ff5f1f 100644 --- a/test/torture-s/20050929-1.c.s +++ b/test/torture-s/20050929-1.c.s @@ -103,3 +103,4 @@ e: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20051021-1.c.s b/test/torture-s/20051021-1.c.s index 1a6e89e51..c274c09c7 100644 --- a/test/torture-s/20051021-1.c.s +++ b/test/torture-s/20051021-1.c.s @@ -77,3 +77,4 @@ count: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20051110-1.c.s b/test/torture-s/20051110-1.c.s index 1e7f0d993..a6592fe0d 100644 --- a/test/torture-s/20051110-1.c.s +++ b/test/torture-s/20051110-1.c.s @@ -105,3 +105,4 @@ bytes: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20051110-2.c.s b/test/torture-s/20051110-2.c.s index f76602180..be24aaad1 100644 --- a/test/torture-s/20051110-2.c.s +++ b/test/torture-s/20051110-2.c.s @@ -128,3 +128,4 @@ flag: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20051113-1.c.s b/test/torture-s/20051113-1.c.s index b3796509a..568b71d6d 100644 --- a/test/torture-s/20051113-1.c.s +++ b/test/torture-s/20051113-1.c.s @@ -136,3 +136,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype malloc, i32, i32 + .functype abort, void diff --git a/test/torture-s/20051215-1.c.s b/test/torture-s/20051215-1.c.s index 7832170d7..ced0585c5 100644 --- a/test/torture-s/20051215-1.c.s +++ b/test/torture-s/20051215-1.c.s @@ -77,3 +77,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20060102-1.c.s b/test/torture-s/20060102-1.c.s index 207f71b7e..73e0c1e9a 100644 --- a/test/torture-s/20060102-1.c.s +++ b/test/torture-s/20060102-1.c.s @@ -63,3 +63,4 @@ one: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20060110-1.c.s b/test/torture-s/20060110-1.c.s index 159f1f5ec..03e3febfb 100644 --- a/test/torture-s/20060110-1.c.s +++ b/test/torture-s/20060110-1.c.s @@ -62,3 +62,4 @@ b: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20060110-2.c.s b/test/torture-s/20060110-2.c.s index 99dec9a34..552c86dc4 100644 --- a/test/torture-s/20060110-2.c.s +++ b/test/torture-s/20060110-2.c.s @@ -79,3 +79,4 @@ c: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20060127-1.c.s b/test/torture-s/20060127-1.c.s index 286be5c3b..07770dd77 100644 --- a/test/torture-s/20060127-1.c.s +++ b/test/torture-s/20060127-1.c.s @@ -53,3 +53,4 @@ a: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20060420-1.c.s b/test/torture-s/20060420-1.c.s index 77e10b6d2..3f389cf2e 100644 --- a/test/torture-s/20060420-1.c.s +++ b/test/torture-s/20060420-1.c.s @@ -456,3 +456,4 @@ buffer: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20060905-1.c.s b/test/torture-s/20060905-1.c.s index a84a28201..5f2f9c248 100644 --- a/test/torture-s/20060905-1.c.s +++ b/test/torture-s/20060905-1.c.s @@ -72,3 +72,4 @@ g: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20060930-1.c.s b/test/torture-s/20060930-1.c.s index 3b65f79a0..a90c576b4 100644 --- a/test/torture-s/20060930-1.c.s +++ b/test/torture-s/20060930-1.c.s @@ -80,3 +80,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20060930-2.c.s b/test/torture-s/20060930-2.c.s index 8da670a51..5d85b0003 100644 --- a/test/torture-s/20060930-2.c.s +++ b/test/torture-s/20060930-2.c.s @@ -66,3 +66,4 @@ t: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20061101-1.c.s b/test/torture-s/20061101-1.c.s index f1652cacd..452656edc 100644 --- a/test/torture-s/20061101-1.c.s +++ b/test/torture-s/20061101-1.c.s @@ -81,3 +81,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20061101-2.c.s b/test/torture-s/20061101-2.c.s index e299a2884..ebab53ed8 100644 --- a/test/torture-s/20061101-2.c.s +++ b/test/torture-s/20061101-2.c.s @@ -81,3 +81,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20070201-1.c.s b/test/torture-s/20070201-1.c.s index 9b4d33cd6..89f41f718 100644 --- a/test/torture-s/20070201-1.c.s +++ b/test/torture-s/20070201-1.c.s @@ -70,3 +70,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype sprintf, i32, i32, i32 diff --git a/test/torture-s/20070424-1.c.s b/test/torture-s/20070424-1.c.s index 30933d125..8d799bcb5 100644 --- a/test/torture-s/20070424-1.c.s +++ b/test/torture-s/20070424-1.c.s @@ -61,3 +61,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 + .functype abort, void diff --git a/test/torture-s/20070517-1.c.s b/test/torture-s/20070517-1.c.s index b21a5573e..340f1ca29 100644 --- a/test/torture-s/20070517-1.c.s +++ b/test/torture-s/20070517-1.c.s @@ -61,3 +61,4 @@ get_kind: # @get_kind .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20070614-1.c.s b/test/torture-s/20070614-1.c.s index a2c9c5ac2..704296735 100644 --- a/test/torture-s/20070614-1.c.s +++ b/test/torture-s/20070614-1.c.s @@ -120,3 +120,4 @@ v: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20070623-1.c.s b/test/torture-s/20070623-1.c.s index 42197ef66..628e4346b 100644 --- a/test/torture-s/20070623-1.c.s +++ b/test/torture-s/20070623-1.c.s @@ -311,3 +311,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20071011-1.c.s b/test/torture-s/20071011-1.c.s index 56bce5f46..726c669ee 100644 --- a/test/torture-s/20071011-1.c.s +++ b/test/torture-s/20071011-1.c.s @@ -39,3 +39,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20071018-1.c.s b/test/torture-s/20071018-1.c.s index 1b8d87601..43f665b54 100644 --- a/test/torture-s/20071018-1.c.s +++ b/test/torture-s/20071018-1.c.s @@ -65,3 +65,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype __builtin_malloc, i32 + .functype abort, void diff --git a/test/torture-s/20071029-1.c.s b/test/torture-s/20071029-1.c.s index 153c0b910..c2bfce173 100644 --- a/test/torture-s/20071029-1.c.s +++ b/test/torture-s/20071029-1.c.s @@ -132,3 +132,5 @@ test.i: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20071030-1.c.s b/test/torture-s/20071030-1.c.s index 4aabb5b66..ece890a84 100644 --- a/test/torture-s/20071030-1.c.s +++ b/test/torture-s/20071030-1.c.s @@ -144,3 +144,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20071108-1.c.s b/test/torture-s/20071108-1.c.s index 34e15daf1..d8ab8f83a 100644 --- a/test/torture-s/20071108-1.c.s +++ b/test/torture-s/20071108-1.c.s @@ -106,3 +106,4 @@ main: # @main .lcomm foo.s,12,2 .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20071120-1.c.s b/test/torture-s/20071120-1.c.s index 4218d43f9..72925c1cc 100644 --- a/test/torture-s/20071120-1.c.s +++ b/test/torture-s/20071120-1.c.s @@ -128,3 +128,5 @@ gt_pch_rs_gt_cp_semantics_h: .lcomm deferred_access_stack,4,2 .ident "clang version 3.9.0 " + .functype abort, void + .functype __builtin_malloc, i32 diff --git a/test/torture-s/20071202-1.c.s b/test/torture-s/20071202-1.c.s index 25872e32c..68c223489 100644 --- a/test/torture-s/20071202-1.c.s +++ b/test/torture-s/20071202-1.c.s @@ -187,3 +187,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20071211-1.c.s b/test/torture-s/20071211-1.c.s index 8e08ad9ed..b21663364 100644 --- a/test/torture-s/20071211-1.c.s +++ b/test/torture-s/20071211-1.c.s @@ -59,3 +59,4 @@ sv: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20071213-1.c.s b/test/torture-s/20071213-1.c.s index 31853439e..8badaf20d 100644 --- a/test/torture-s/20071213-1.c.s +++ b/test/torture-s/20071213-1.c.s @@ -247,3 +247,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20071216-1.c.s b/test/torture-s/20071216-1.c.s index 17ac8e871..f2baf8b4a 100644 --- a/test/torture-s/20071216-1.c.s +++ b/test/torture-s/20071216-1.c.s @@ -109,3 +109,4 @@ main: # @main .lcomm x,4,2 .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20071219-1.c.s b/test/torture-s/20071219-1.c.s index 881e211f0..7fc9abf2e 100644 --- a/test/torture-s/20071219-1.c.s +++ b/test/torture-s/20071219-1.c.s @@ -354,3 +354,4 @@ p: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20080222-1.c.s b/test/torture-s/20080222-1.c.s index 31037a60a..c8a74458c 100644 --- a/test/torture-s/20080222-1.c.s +++ b/test/torture-s/20080222-1.c.s @@ -48,3 +48,4 @@ space: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20080424-1.c.s b/test/torture-s/20080424-1.c.s index 1de91bb56..4728b7d47 100644 --- a/test/torture-s/20080424-1.c.s +++ b/test/torture-s/20080424-1.c.s @@ -88,3 +88,4 @@ g: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20080502-1.c.s b/test/torture-s/20080502-1.c.s index 954072c11..2be1929fb 100644 --- a/test/torture-s/20080502-1.c.s +++ b/test/torture-s/20080502-1.c.s @@ -65,3 +65,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20080506-2.c.s b/test/torture-s/20080506-2.c.s index 8ac1366a2..ec8364d6c 100644 --- a/test/torture-s/20080506-2.c.s +++ b/test/torture-s/20080506-2.c.s @@ -66,3 +66,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20080519-1.c.s b/test/torture-s/20080519-1.c.s index 84259b905..f558b95ab 100644 --- a/test/torture-s/20080519-1.c.s +++ b/test/torture-s/20080519-1.c.s @@ -164,3 +164,4 @@ reg_class_contents: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20080522-1.c.s b/test/torture-s/20080522-1.c.s index dcbf54943..f90f4ad52 100644 --- a/test/torture-s/20080522-1.c.s +++ b/test/torture-s/20080522-1.c.s @@ -111,3 +111,4 @@ main: # @main .lcomm i,4,2 .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20080604-1.c.s b/test/torture-s/20080604-1.c.s index 399d20c06..e5e1a9527 100644 --- a/test/torture-s/20080604-1.c.s +++ b/test/torture-s/20080604-1.c.s @@ -91,3 +91,4 @@ x: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20080813-1.c.s b/test/torture-s/20080813-1.c.s index 473b05320..85aec9884 100644 --- a/test/torture-s/20080813-1.c.s +++ b/test/torture-s/20080813-1.c.s @@ -48,3 +48,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20081103-1.c.s b/test/torture-s/20081103-1.c.s index 278d22d57..57ddbeeb8 100644 --- a/test/torture-s/20081103-1.c.s +++ b/test/torture-s/20081103-1.c.s @@ -72,3 +72,5 @@ A: .ident "clang version 3.9.0 " + .functype memcmp, i32, i32, i32, i32 + .functype abort, void diff --git a/test/torture-s/20081117-1.c.s b/test/torture-s/20081117-1.c.s index ab419a4a8..4ad8763b4 100644 --- a/test/torture-s/20081117-1.c.s +++ b/test/torture-s/20081117-1.c.s @@ -76,3 +76,4 @@ s: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20081218-1.c.s b/test/torture-s/20081218-1.c.s index a7061c704..7b404d4d3 100644 --- a/test/torture-s/20081218-1.c.s +++ b/test/torture-s/20081218-1.c.s @@ -131,3 +131,4 @@ a: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20090113-2.c.s b/test/torture-s/20090113-2.c.s index 8f51651f5..b46c47cfc 100644 --- a/test/torture-s/20090113-2.c.s +++ b/test/torture-s/20090113-2.c.s @@ -356,3 +356,4 @@ bitmap_zero_bits: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20090527-1.c.s b/test/torture-s/20090527-1.c.s index 16635346c..a87e2530e 100644 --- a/test/torture-s/20090527-1.c.s +++ b/test/torture-s/20090527-1.c.s @@ -59,3 +59,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20090711-1.c.s b/test/torture-s/20090711-1.c.s index a3250171d..8550976db 100644 --- a/test/torture-s/20090711-1.c.s +++ b/test/torture-s/20090711-1.c.s @@ -41,3 +41,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20090814-1.c.s b/test/torture-s/20090814-1.c.s index b0721a6d3..5e7385693 100644 --- a/test/torture-s/20090814-1.c.s +++ b/test/torture-s/20090814-1.c.s @@ -83,3 +83,4 @@ a: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20091229-1.c.s b/test/torture-s/20091229-1.c.s index f0c9fd8c0..ed87e5c73 100644 --- a/test/torture-s/20091229-1.c.s +++ b/test/torture-s/20091229-1.c.s @@ -30,3 +30,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/20100316-1.c.s b/test/torture-s/20100316-1.c.s index a717813e4..8e12418d7 100644 --- a/test/torture-s/20100316-1.c.s +++ b/test/torture-s/20100316-1.c.s @@ -60,3 +60,4 @@ f: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20100416-1.c.s b/test/torture-s/20100416-1.c.s index cb5803311..4b7a42c46 100644 --- a/test/torture-s/20100416-1.c.s +++ b/test/torture-s/20100416-1.c.s @@ -123,3 +123,4 @@ tests: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20100827-1.c.s b/test/torture-s/20100827-1.c.s index de14254e9..82c928134 100644 --- a/test/torture-s/20100827-1.c.s +++ b/test/torture-s/20100827-1.c.s @@ -76,3 +76,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20101011-1.c.s b/test/torture-s/20101011-1.c.s index a568b5078..9e39f3ad4 100644 --- a/test/torture-s/20101011-1.c.s +++ b/test/torture-s/20101011-1.c.s @@ -41,3 +41,6 @@ k: .ident "clang version 3.9.0 " + .functype exit, void, i32 + .functype signal, i32, i32, i32 + .functype abort, void diff --git a/test/torture-s/20101013-1.c.s b/test/torture-s/20101013-1.c.s index e928a2058..022977c54 100644 --- a/test/torture-s/20101013-1.c.s +++ b/test/torture-s/20101013-1.c.s @@ -75,3 +75,4 @@ build_int_cst: # @build_int_cst .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20101025-1.c.s b/test/torture-s/20101025-1.c.s index 44e88c513..24e12f17f 100644 --- a/test/torture-s/20101025-1.c.s +++ b/test/torture-s/20101025-1.c.s @@ -80,3 +80,5 @@ g_6: .lcomm g_7,4,2 .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20111208-1.c.s b/test/torture-s/20111208-1.c.s index 625baaee7..3ed1f7ea7 100644 --- a/test/torture-s/20111208-1.c.s +++ b/test/torture-s/20111208-1.c.s @@ -156,3 +156,5 @@ a: .ident "clang version 3.9.0 " + .functype strlen, i32, i32 + .functype abort, void diff --git a/test/torture-s/20111227-1.c.s b/test/torture-s/20111227-1.c.s index ab69cc30c..5575a969a 100644 --- a/test/torture-s/20111227-1.c.s +++ b/test/torture-s/20111227-1.c.s @@ -74,3 +74,4 @@ v: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20111227-2.c.s b/test/torture-s/20111227-2.c.s index 57997f29d..554071a36 100644 --- a/test/torture-s/20111227-2.c.s +++ b/test/torture-s/20111227-2.c.s @@ -156,3 +156,4 @@ l: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20111227-3.c.s b/test/torture-s/20111227-3.c.s index f43b1c489..5a43e4257 100644 --- a/test/torture-s/20111227-3.c.s +++ b/test/torture-s/20111227-3.c.s @@ -156,3 +156,4 @@ l: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20120111-1.c.s b/test/torture-s/20120111-1.c.s index 5b56f178a..3b0caa671 100644 --- a/test/torture-s/20120111-1.c.s +++ b/test/torture-s/20120111-1.c.s @@ -43,3 +43,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20120207-1.c.s b/test/torture-s/20120207-1.c.s index 55c6946d7..5f2f83238 100644 --- a/test/torture-s/20120207-1.c.s +++ b/test/torture-s/20120207-1.c.s @@ -51,3 +51,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20120427-1.c.s b/test/torture-s/20120427-1.c.s index c12a71812..f6b9e075b 100644 --- a/test/torture-s/20120427-1.c.s +++ b/test/torture-s/20120427-1.c.s @@ -48,204 +48,214 @@ sreal_compare: # @sreal_compare .type main,@function main: # @main .result i32 - .local i32, i32 -# BB#0: # %land.lhs.true.1 + .local i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 +# BB#0: # %entry + i32.const $6=, 0 + i32.const $push47=, 0 + i32.load $5=, a+16($pop47) + i32.const $push46=, 0 + i32.load $4=, a+20($pop46) + i32.const $push45=, 0 + i32.load $3=, a+8($pop45) + i32.const $push44=, 0 + i32.load $2=, a+12($pop44) + i32.const $push43=, 0 + i32.load $1=, a($pop43) + i32.const $push42=, 0 + i32.load $0=, a+4($pop42) +.LBB1_1: # %if.end + # =>This Inner Loop Header: Depth=1 + loop # label1: + i32.const $push52=, 3 + i32.shl $push51=, $6, $pop52 + tee_local $push50=, $7=, $pop51 + i32.const $push49=, a + i32.add $8=, $pop50, $pop49 + i32.const $push48=, a+4 + i32.add $7=, $7, $pop48 block - i32.const $push0=, 0 - i32.load $push60=, a+4($pop0) - tee_local $push59=, $0=, $pop60 - i32.const $push58=, 0 - i32.load $push57=, a+12($pop58) - tee_local $push56=, $1=, $pop57 - i32.gt_s $push1=, $pop59, $pop56 - br_if 0, $pop1 # 0: down to label1 -# BB#1: # %if.end.i.1 block - i32.lt_s $push2=, $0, $1 - br_if 0, $pop2 # 0: down to label2 -# BB#2: # %if.end6.i.1 - i32.const $push3=, 0 - i32.load $push5=, a($pop3) - i32.const $push61=, 0 - i32.load $push4=, a+8($pop61) - i32.ge_u $push6=, $pop5, $pop4 - br_if 1, $pop6 # 1: down to label1 -.LBB1_3: # %land.lhs.true.2 - end_block # label2: - i32.const $push7=, 0 - i32.load $push66=, a+4($pop7) - tee_local $push65=, $0=, $pop66 - i32.const $push64=, 0 - i32.load $push63=, a+20($pop64) - tee_local $push62=, $1=, $pop63 - i32.gt_s $push8=, $pop65, $pop62 - br_if 0, $pop8 # 0: down to label1 -# BB#4: # %if.end.i.2 block - i32.lt_s $push9=, $0, $1 - br_if 0, $pop9 # 0: down to label3 -# BB#5: # %if.end6.i.2 - i32.const $push10=, 0 - i32.load $push12=, a($pop10) - i32.const $push67=, 0 - i32.load $push11=, a+16($pop67) - i32.ge_u $push13=, $pop12, $pop11 - br_if 1, $pop13 # 1: down to label1 -.LBB1_6: # %land.lhs.true16.189 - end_block # label3: block - i32.const $push73=, 0 - i32.load $push72=, a+12($pop73) - tee_local $push71=, $0=, $pop72 - i32.const $push70=, 0 - i32.load $push69=, a+4($pop70) - tee_local $push68=, $1=, $pop69 - i32.gt_s $push14=, $pop71, $pop68 - br_if 0, $pop14 # 0: down to label4 -# BB#7: # %if.end.i45.191 - i32.lt_s $push15=, $0, $1 - br_if 1, $pop15 # 1: down to label1 -# BB#8: # %if.end6.i49.193 - i32.const $push16=, 0 - i32.load $push18=, a+8($pop16) - i32.const $push74=, 0 - i32.load $push17=, a($pop74) - i32.le_u $push19=, $pop18, $pop17 - br_if 1, $pop19 # 1: down to label1 -.LBB1_9: # %land.lhs.true.2.1 - end_block # label4: - i32.const $push80=, 0 - i32.load $push79=, a+12($pop80) - tee_local $push78=, $0=, $pop79 - i32.const $push77=, 0 - i32.load $push76=, a+20($pop77) - tee_local $push75=, $1=, $pop76 - i32.gt_s $push20=, $pop78, $pop75 - br_if 0, $pop20 # 0: down to label1 -# BB#10: # %if.end.i.2.1 block - i32.lt_s $push21=, $0, $1 - br_if 0, $pop21 # 0: down to label5 -# BB#11: # %if.end6.i.2.1 - i32.const $push22=, 0 - i32.load $push24=, a+8($pop22) - i32.const $push81=, 0 - i32.load $push23=, a+16($pop81) - i32.ge_u $push25=, $pop24, $pop23 - br_if 1, $pop25 # 1: down to label1 -.LBB1_12: # %land.lhs.true16.2107 - end_block # label5: block - i32.const $push87=, 0 - i32.load $push86=, a+20($pop87) - tee_local $push85=, $0=, $pop86 - i32.const $push84=, 0 - i32.load $push83=, a+4($pop84) - tee_local $push82=, $1=, $pop83 - i32.gt_s $push26=, $pop85, $pop82 - br_if 0, $pop26 # 0: down to label6 -# BB#13: # %if.end.i45.2109 - i32.lt_s $push27=, $0, $1 - br_if 1, $pop27 # 1: down to label1 -# BB#14: # %if.end6.i49.2111 - i32.const $push28=, 0 - i32.load $push30=, a+16($pop28) - i32.const $push88=, 0 - i32.load $push29=, a($pop88) - i32.le_u $push31=, $pop30, $pop29 - br_if 1, $pop31 # 1: down to label1 -.LBB1_15: # %land.lhs.true16.1.2 - end_block # label6: block - i32.const $push94=, 0 - i32.load $push93=, a+20($pop94) - tee_local $push92=, $0=, $pop93 - i32.const $push91=, 0 - i32.load $push90=, a+12($pop91) - tee_local $push89=, $1=, $pop90 - i32.gt_s $push32=, $pop92, $pop89 - br_if 0, $pop32 # 0: down to label7 -# BB#16: # %if.end.i45.1.2 - i32.lt_s $push33=, $0, $1 - br_if 1, $pop33 # 1: down to label1 -# BB#17: # %if.end6.i49.1.2 - i32.const $push34=, 0 - i32.load $push36=, a+16($pop34) - i32.const $push95=, 0 - i32.load $push35=, a+8($pop95) - i32.le_u $push37=, $pop36, $pop35 - br_if 1, $pop37 # 1: down to label1 -.LBB1_18: # %land.lhs.true16.3 - end_block # label7: block - i32.const $push101=, 0 - i32.load $push100=, a+28($pop101) - tee_local $push99=, $0=, $pop100 - i32.const $push98=, 0 - i32.load $push97=, a+4($pop98) - tee_local $push96=, $1=, $pop97 - i32.gt_s $push38=, $pop99, $pop96 - br_if 0, $pop38 # 0: down to label8 -# BB#19: # %if.end.i45.3 - i32.lt_s $push39=, $0, $1 - br_if 1, $pop39 # 1: down to label1 -# BB#20: # %if.end6.i49.3 - i32.const $push40=, 0 - i32.load $push42=, a+24($pop40) - i32.const $push102=, 0 - i32.load $push41=, a($pop102) - i32.le_u $push43=, $pop42, $pop41 - br_if 1, $pop43 # 1: down to label1 -.LBB1_21: # %land.lhs.true16.1.3 - end_block # label8: block - i32.const $push108=, 0 - i32.load $push107=, a+28($pop108) - tee_local $push106=, $0=, $pop107 - i32.const $push105=, 0 - i32.load $push104=, a+12($pop105) - tee_local $push103=, $1=, $pop104 - i32.gt_s $push44=, $pop106, $pop103 - br_if 0, $pop44 # 0: down to label9 -# BB#22: # %if.end.i45.1.3 - i32.lt_s $push45=, $0, $1 - br_if 1, $pop45 # 1: down to label1 -# BB#23: # %if.end6.i49.1.3 - i32.const $push46=, 0 - i32.load $push48=, a+24($pop46) - i32.const $push109=, 0 - i32.load $push47=, a+8($pop109) - i32.le_u $push49=, $pop48, $pop47 - br_if 1, $pop49 # 1: down to label1 -.LBB1_24: # %land.lhs.true16.2.3 - end_block # label9: + i32.eqz $push74=, $6 + br_if 0, $pop74 # 0: down to label11 +# BB#2: # %if.end14 + # in Loop: Header=BB1_1 Depth=1 + i32.const $push53=, 1 + i32.lt_s $push0=, $6, $pop53 + br_if 1, $pop0 # 1: down to label10 +# BB#3: # %land.lhs.true16 + # in Loop: Header=BB1_1 Depth=1 block - i32.const $push115=, 0 - i32.load $push114=, a+28($pop115) - tee_local $push113=, $0=, $pop114 - i32.const $push112=, 0 - i32.load $push111=, a+20($pop112) - tee_local $push110=, $1=, $pop111 - i32.gt_s $push50=, $pop113, $pop110 - br_if 0, $pop50 # 0: down to label10 -# BB#25: # %if.end.i45.2.3 - i32.lt_s $push51=, $0, $1 - br_if 1, $pop51 # 1: down to label1 -# BB#26: # %if.end6.i49.2.3 - i32.const $push52=, 0 - i32.load $push54=, a+24($pop52) - i32.const $push116=, 0 - i32.load $push53=, a+16($pop116) - i32.le_u $push55=, $pop54, $pop53 - br_if 1, $pop55 # 1: down to label1 -.LBB1_27: # %for.inc.2.3 + i32.load $push55=, 0($7) + tee_local $push54=, $9=, $pop55 + i32.gt_s $push1=, $pop54, $0 + br_if 0, $pop1 # 0: down to label12 +# BB#4: # %if.end.i45 + # in Loop: Header=BB1_1 Depth=1 + i32.lt_s $push2=, $9, $0 + br_if 8, $pop2 # 8: down to label4 +# BB#5: # %if.end6.i49 + # in Loop: Header=BB1_1 Depth=1 + i32.load $push3=, 0($8) + i32.le_u $push4=, $pop3, $1 + br_if 8, $pop4 # 8: down to label4 +.LBB1_6: # %if.end.1 + # in Loop: Header=BB1_1 Depth=1 + end_block # label12: + i32.const $push56=, 1 + i32.ne $push5=, $6, $pop56 + br_if 2, $pop5 # 2: down to label9 +# BB#7: # %land.lhs.true8.1 + # in Loop: Header=BB1_1 Depth=1 + i32.load $push24=, 0($7) + i32.ne $push25=, $pop24, $2 + br_if 6, $pop25 # 6: down to label5 +# BB#8: # %if.end6.i63.1 + # in Loop: Header=BB1_1 Depth=1 + i32.load $push26=, 0($8) + i32.eq $push27=, $pop26, $3 + br_if 3, $pop27 # 3: down to label8 + br 6 # 6: down to label5 +.LBB1_9: # %land.lhs.true8 + # in Loop: Header=BB1_1 Depth=1 + end_block # label11: + i32.load $push28=, 0($7) + i32.ne $push29=, $pop28, $0 + br_if 5, $pop29 # 5: down to label5 +# BB#10: # %if.end6.i63 + # in Loop: Header=BB1_1 Depth=1 + i32.load $push30=, 0($8) + i32.ne $push31=, $pop30, $1 + br_if 5, $pop31 # 5: down to label5 +.LBB1_11: # %land.lhs.true.1 + # in Loop: Header=BB1_1 Depth=1 end_block # label10: - i32.const $push117=, 0 - return $pop117 -.LBB1_28: # %if.then21 - end_block # label1: + i32.load $push58=, 0($7) + tee_local $push57=, $9=, $pop58 + i32.gt_s $push32=, $pop57, $2 + br_if 3, $pop32 # 3: down to label6 +# BB#12: # %if.end.i.1 + # in Loop: Header=BB1_1 Depth=1 + i32.lt_s $push33=, $9, $2 + br_if 1, $pop33 # 1: down to label8 +# BB#13: # %if.end6.i.1 + # in Loop: Header=BB1_1 Depth=1 + i32.load $push34=, 0($8) + i32.lt_u $push35=, $pop34, $3 + br_if 1, $pop35 # 1: down to label8 + br 3 # 3: down to label6 +.LBB1_14: # %if.end14.1 + # in Loop: Header=BB1_1 Depth=1 + end_block # label9: + i32.const $push59=, 2 + i32.lt_s $push6=, $6, $pop59 + br_if 0, $pop6 # 0: down to label8 +# BB#15: # %land.lhs.true16.1 + # in Loop: Header=BB1_1 Depth=1 + block + i32.load $push61=, 0($7) + tee_local $push60=, $9=, $pop61 + i32.gt_s $push7=, $pop60, $2 + br_if 0, $pop7 # 0: down to label13 +# BB#16: # %if.end.i45.1 + # in Loop: Header=BB1_1 Depth=1 + i32.lt_s $push8=, $9, $2 + br_if 5, $pop8 # 5: down to label4 +# BB#17: # %if.end6.i49.1 + # in Loop: Header=BB1_1 Depth=1 + i32.load $push9=, 0($8) + i32.le_u $push10=, $pop9, $3 + br_if 5, $pop10 # 5: down to label4 +.LBB1_18: # %if.end.2 + # in Loop: Header=BB1_1 Depth=1 + end_block # label13: + i32.const $push62=, 2 + i32.ne $push11=, $6, $pop62 + br_if 1, $pop11 # 1: down to label7 +# BB#19: # %land.lhs.true8.2 + # in Loop: Header=BB1_1 Depth=1 + i32.load $push20=, 0($7) + i32.ne $push21=, $pop20, $4 + br_if 3, $pop21 # 3: down to label5 +# BB#20: # %if.end6.i63.2 + # in Loop: Header=BB1_1 Depth=1 + i32.const $6=, 3 + i32.load $push22=, 0($8) + i32.eq $push23=, $pop22, $5 + br_if 6, $pop23 # 6: up to label1 + br 3 # 3: down to label5 +.LBB1_21: # %land.lhs.true.2 + # in Loop: Header=BB1_1 Depth=1 + end_block # label8: + i32.load $push64=, 0($7) + tee_local $push63=, $7=, $pop64 + i32.gt_s $push36=, $pop63, $4 + br_if 1, $pop36 # 1: down to label6 +# BB#22: # %if.end.i.2 + # in Loop: Header=BB1_1 Depth=1 + i32.lt_s $push37=, $7, $4 + br_if 4, $pop37 # 4: down to label3 +# BB#23: # %if.end6.i.2 + # in Loop: Header=BB1_1 Depth=1 + i32.load $push38=, 0($8) + i32.ge_u $push39=, $pop38, $5 + br_if 1, $pop39 # 1: down to label6 + br 4 # 4: down to label3 +.LBB1_24: # %if.end14.2 + # in Loop: Header=BB1_1 Depth=1 + end_block # label7: + i32.const $push69=, 3 + i32.lt_s $push12=, $6, $pop69 + br_if 3, $pop12 # 3: down to label3 +# BB#25: # %land.lhs.true16.2 + i32.load $push73=, 0($7) + tee_local $push72=, $6=, $pop73 + i32.const $push13=, 0 + i32.load $push71=, a+20($pop13) + tee_local $push70=, $7=, $pop71 + i32.gt_s $push14=, $pop72, $pop70 + br_if 5, $pop14 # 5: down to label2 +# BB#26: # %if.end.i45.2 + i32.lt_s $push15=, $6, $7 + br_if 2, $pop15 # 2: down to label4 +# BB#27: # %if.end6.i49.2 + i32.load $push18=, 0($8) + i32.const $push16=, 0 + i32.load $push17=, a+16($pop16) + i32.le_u $push19=, $pop18, $pop17 + br_if 2, $pop19 # 2: down to label4 + br 5 # 5: down to label2 +.LBB1_28: # %if.then + end_block # label6: call abort@FUNCTION unreachable +.LBB1_29: # %if.then13 + end_block # label5: + call abort@FUNCTION + unreachable +.LBB1_30: # %if.then21 + end_block # label4: + call abort@FUNCTION + unreachable +.LBB1_31: # %for.inc.2 + # in Loop: Header=BB1_1 Depth=1 + end_block # label3: + i32.const $push68=, 1 + i32.add $push67=, $6, $pop68 + tee_local $push66=, $6=, $pop67 + i32.const $push65=, 4 + i32.lt_s $push40=, $pop66, $pop65 + br_if 0, $pop40 # 0: up to label1 +.LBB1_32: # %for.end25 + end_loop # label2: + i32.const $push41=, 0 + # fallthrough-return: $pop41 .endfunc .Lfunc_end1: .size main, .Lfunc_end1-main @@ -267,3 +277,4 @@ a: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20120427-2.c.s b/test/torture-s/20120427-2.c.s index 4e7ac27b8..d881a3836 100644 --- a/test/torture-s/20120427-2.c.s +++ b/test/torture-s/20120427-2.c.s @@ -48,204 +48,214 @@ sreal_compare: # @sreal_compare .type main,@function main: # @main .result i32 - .local i32, i32 -# BB#0: # %land.lhs.true.1 + .local i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 +# BB#0: # %entry + i32.const $6=, 0 + i32.const $push47=, 0 + i32.load $5=, a+16($pop47) + i32.const $push46=, 0 + i32.load $4=, a+20($pop46) + i32.const $push45=, 0 + i32.load $3=, a+8($pop45) + i32.const $push44=, 0 + i32.load $2=, a+12($pop44) + i32.const $push43=, 0 + i32.load $1=, a($pop43) + i32.const $push42=, 0 + i32.load $0=, a+4($pop42) +.LBB1_1: # %if.end + # =>This Inner Loop Header: Depth=1 + loop # label1: + i32.const $push52=, 3 + i32.shl $push51=, $6, $pop52 + tee_local $push50=, $7=, $pop51 + i32.const $push49=, a + i32.add $8=, $pop50, $pop49 + i32.const $push48=, a+4 + i32.add $7=, $7, $pop48 block - i32.const $push0=, 0 - i32.load $push60=, a+4($pop0) - tee_local $push59=, $0=, $pop60 - i32.const $push58=, 0 - i32.load $push57=, a+12($pop58) - tee_local $push56=, $1=, $pop57 - i32.gt_s $push1=, $pop59, $pop56 - br_if 0, $pop1 # 0: down to label1 -# BB#1: # %if.end.i.1 block - i32.lt_s $push2=, $0, $1 - br_if 0, $pop2 # 0: down to label2 -# BB#2: # %if.end6.i.1 - i32.const $push3=, 0 - i32.load $push5=, a($pop3) - i32.const $push61=, 0 - i32.load $push4=, a+8($pop61) - i32.ge_u $push6=, $pop5, $pop4 - br_if 1, $pop6 # 1: down to label1 -.LBB1_3: # %land.lhs.true.2 - end_block # label2: - i32.const $push7=, 0 - i32.load $push66=, a+4($pop7) - tee_local $push65=, $0=, $pop66 - i32.const $push64=, 0 - i32.load $push63=, a+20($pop64) - tee_local $push62=, $1=, $pop63 - i32.gt_s $push8=, $pop65, $pop62 - br_if 0, $pop8 # 0: down to label1 -# BB#4: # %if.end.i.2 block - i32.lt_s $push9=, $0, $1 - br_if 0, $pop9 # 0: down to label3 -# BB#5: # %if.end6.i.2 - i32.const $push10=, 0 - i32.load $push12=, a($pop10) - i32.const $push67=, 0 - i32.load $push11=, a+16($pop67) - i32.ge_u $push13=, $pop12, $pop11 - br_if 1, $pop13 # 1: down to label1 -.LBB1_6: # %land.lhs.true16.189 - end_block # label3: block - i32.const $push73=, 0 - i32.load $push72=, a+12($pop73) - tee_local $push71=, $0=, $pop72 - i32.const $push70=, 0 - i32.load $push69=, a+4($pop70) - tee_local $push68=, $1=, $pop69 - i32.gt_s $push14=, $pop71, $pop68 - br_if 0, $pop14 # 0: down to label4 -# BB#7: # %if.end.i45.191 - i32.lt_s $push15=, $0, $1 - br_if 1, $pop15 # 1: down to label1 -# BB#8: # %if.end6.i49.193 - i32.const $push16=, 0 - i32.load $push18=, a+8($pop16) - i32.const $push74=, 0 - i32.load $push17=, a($pop74) - i32.le_u $push19=, $pop18, $pop17 - br_if 1, $pop19 # 1: down to label1 -.LBB1_9: # %land.lhs.true.2.1 - end_block # label4: - i32.const $push80=, 0 - i32.load $push79=, a+12($pop80) - tee_local $push78=, $0=, $pop79 - i32.const $push77=, 0 - i32.load $push76=, a+20($pop77) - tee_local $push75=, $1=, $pop76 - i32.gt_s $push20=, $pop78, $pop75 - br_if 0, $pop20 # 0: down to label1 -# BB#10: # %if.end.i.2.1 block - i32.lt_s $push21=, $0, $1 - br_if 0, $pop21 # 0: down to label5 -# BB#11: # %if.end6.i.2.1 - i32.const $push22=, 0 - i32.load $push24=, a+8($pop22) - i32.const $push81=, 0 - i32.load $push23=, a+16($pop81) - i32.ge_u $push25=, $pop24, $pop23 - br_if 1, $pop25 # 1: down to label1 -.LBB1_12: # %land.lhs.true16.2107 - end_block # label5: block - i32.const $push87=, 0 - i32.load $push86=, a+20($pop87) - tee_local $push85=, $0=, $pop86 - i32.const $push84=, 0 - i32.load $push83=, a+4($pop84) - tee_local $push82=, $1=, $pop83 - i32.gt_s $push26=, $pop85, $pop82 - br_if 0, $pop26 # 0: down to label6 -# BB#13: # %if.end.i45.2109 - i32.lt_s $push27=, $0, $1 - br_if 1, $pop27 # 1: down to label1 -# BB#14: # %if.end6.i49.2111 - i32.const $push28=, 0 - i32.load $push30=, a+16($pop28) - i32.const $push88=, 0 - i32.load $push29=, a($pop88) - i32.le_u $push31=, $pop30, $pop29 - br_if 1, $pop31 # 1: down to label1 -.LBB1_15: # %land.lhs.true16.1.2 - end_block # label6: block - i32.const $push94=, 0 - i32.load $push93=, a+20($pop94) - tee_local $push92=, $0=, $pop93 - i32.const $push91=, 0 - i32.load $push90=, a+12($pop91) - tee_local $push89=, $1=, $pop90 - i32.gt_s $push32=, $pop92, $pop89 - br_if 0, $pop32 # 0: down to label7 -# BB#16: # %if.end.i45.1.2 - i32.lt_s $push33=, $0, $1 - br_if 1, $pop33 # 1: down to label1 -# BB#17: # %if.end6.i49.1.2 - i32.const $push34=, 0 - i32.load $push36=, a+16($pop34) - i32.const $push95=, 0 - i32.load $push35=, a+8($pop95) - i32.le_u $push37=, $pop36, $pop35 - br_if 1, $pop37 # 1: down to label1 -.LBB1_18: # %land.lhs.true16.3 - end_block # label7: block - i32.const $push101=, 0 - i32.load $push100=, a+28($pop101) - tee_local $push99=, $0=, $pop100 - i32.const $push98=, 0 - i32.load $push97=, a+4($pop98) - tee_local $push96=, $1=, $pop97 - i32.gt_s $push38=, $pop99, $pop96 - br_if 0, $pop38 # 0: down to label8 -# BB#19: # %if.end.i45.3 - i32.lt_s $push39=, $0, $1 - br_if 1, $pop39 # 1: down to label1 -# BB#20: # %if.end6.i49.3 - i32.const $push40=, 0 - i32.load $push42=, a+24($pop40) - i32.const $push102=, 0 - i32.load $push41=, a($pop102) - i32.le_u $push43=, $pop42, $pop41 - br_if 1, $pop43 # 1: down to label1 -.LBB1_21: # %land.lhs.true16.1.3 - end_block # label8: block - i32.const $push108=, 0 - i32.load $push107=, a+28($pop108) - tee_local $push106=, $0=, $pop107 - i32.const $push105=, 0 - i32.load $push104=, a+12($pop105) - tee_local $push103=, $1=, $pop104 - i32.gt_s $push44=, $pop106, $pop103 - br_if 0, $pop44 # 0: down to label9 -# BB#22: # %if.end.i45.1.3 - i32.lt_s $push45=, $0, $1 - br_if 1, $pop45 # 1: down to label1 -# BB#23: # %if.end6.i49.1.3 - i32.const $push46=, 0 - i32.load $push48=, a+24($pop46) - i32.const $push109=, 0 - i32.load $push47=, a+8($pop109) - i32.le_u $push49=, $pop48, $pop47 - br_if 1, $pop49 # 1: down to label1 -.LBB1_24: # %land.lhs.true16.2.3 - end_block # label9: + i32.eqz $push74=, $6 + br_if 0, $pop74 # 0: down to label11 +# BB#2: # %if.end14 + # in Loop: Header=BB1_1 Depth=1 + i32.const $push53=, 1 + i32.lt_s $push0=, $6, $pop53 + br_if 1, $pop0 # 1: down to label10 +# BB#3: # %land.lhs.true16 + # in Loop: Header=BB1_1 Depth=1 block - i32.const $push115=, 0 - i32.load $push114=, a+28($pop115) - tee_local $push113=, $0=, $pop114 - i32.const $push112=, 0 - i32.load $push111=, a+20($pop112) - tee_local $push110=, $1=, $pop111 - i32.gt_s $push50=, $pop113, $pop110 - br_if 0, $pop50 # 0: down to label10 -# BB#25: # %if.end.i45.2.3 - i32.lt_s $push51=, $0, $1 - br_if 1, $pop51 # 1: down to label1 -# BB#26: # %if.end6.i49.2.3 - i32.const $push52=, 0 - i32.load $push54=, a+24($pop52) - i32.const $push116=, 0 - i32.load $push53=, a+16($pop116) - i32.le_u $push55=, $pop54, $pop53 - br_if 1, $pop55 # 1: down to label1 -.LBB1_27: # %for.inc.2.3 + i32.load $push55=, 0($7) + tee_local $push54=, $9=, $pop55 + i32.gt_s $push1=, $pop54, $0 + br_if 0, $pop1 # 0: down to label12 +# BB#4: # %if.end.i45 + # in Loop: Header=BB1_1 Depth=1 + i32.lt_s $push2=, $9, $0 + br_if 8, $pop2 # 8: down to label4 +# BB#5: # %if.end6.i49 + # in Loop: Header=BB1_1 Depth=1 + i32.load $push3=, 0($8) + i32.le_u $push4=, $pop3, $1 + br_if 8, $pop4 # 8: down to label4 +.LBB1_6: # %if.end.1 + # in Loop: Header=BB1_1 Depth=1 + end_block # label12: + i32.const $push56=, 1 + i32.ne $push5=, $6, $pop56 + br_if 2, $pop5 # 2: down to label9 +# BB#7: # %land.lhs.true8.1 + # in Loop: Header=BB1_1 Depth=1 + i32.load $push24=, 0($7) + i32.ne $push25=, $pop24, $2 + br_if 6, $pop25 # 6: down to label5 +# BB#8: # %if.end6.i63.1 + # in Loop: Header=BB1_1 Depth=1 + i32.load $push26=, 0($8) + i32.eq $push27=, $pop26, $3 + br_if 3, $pop27 # 3: down to label8 + br 6 # 6: down to label5 +.LBB1_9: # %land.lhs.true8 + # in Loop: Header=BB1_1 Depth=1 + end_block # label11: + i32.load $push28=, 0($7) + i32.ne $push29=, $pop28, $0 + br_if 5, $pop29 # 5: down to label5 +# BB#10: # %if.end6.i63 + # in Loop: Header=BB1_1 Depth=1 + i32.load $push30=, 0($8) + i32.ne $push31=, $pop30, $1 + br_if 5, $pop31 # 5: down to label5 +.LBB1_11: # %land.lhs.true.1 + # in Loop: Header=BB1_1 Depth=1 end_block # label10: - i32.const $push117=, 0 - return $pop117 -.LBB1_28: # %if.then21 - end_block # label1: + i32.load $push58=, 0($7) + tee_local $push57=, $9=, $pop58 + i32.gt_s $push32=, $pop57, $2 + br_if 3, $pop32 # 3: down to label6 +# BB#12: # %if.end.i.1 + # in Loop: Header=BB1_1 Depth=1 + i32.lt_s $push33=, $9, $2 + br_if 1, $pop33 # 1: down to label8 +# BB#13: # %if.end6.i.1 + # in Loop: Header=BB1_1 Depth=1 + i32.load $push34=, 0($8) + i32.lt_u $push35=, $pop34, $3 + br_if 1, $pop35 # 1: down to label8 + br 3 # 3: down to label6 +.LBB1_14: # %if.end14.1 + # in Loop: Header=BB1_1 Depth=1 + end_block # label9: + i32.const $push59=, 2 + i32.lt_s $push6=, $6, $pop59 + br_if 0, $pop6 # 0: down to label8 +# BB#15: # %land.lhs.true16.1 + # in Loop: Header=BB1_1 Depth=1 + block + i32.load $push61=, 0($7) + tee_local $push60=, $9=, $pop61 + i32.gt_s $push7=, $pop60, $2 + br_if 0, $pop7 # 0: down to label13 +# BB#16: # %if.end.i45.1 + # in Loop: Header=BB1_1 Depth=1 + i32.lt_s $push8=, $9, $2 + br_if 5, $pop8 # 5: down to label4 +# BB#17: # %if.end6.i49.1 + # in Loop: Header=BB1_1 Depth=1 + i32.load $push9=, 0($8) + i32.le_u $push10=, $pop9, $3 + br_if 5, $pop10 # 5: down to label4 +.LBB1_18: # %if.end.2 + # in Loop: Header=BB1_1 Depth=1 + end_block # label13: + i32.const $push62=, 2 + i32.ne $push11=, $6, $pop62 + br_if 1, $pop11 # 1: down to label7 +# BB#19: # %land.lhs.true8.2 + # in Loop: Header=BB1_1 Depth=1 + i32.load $push20=, 0($7) + i32.ne $push21=, $pop20, $4 + br_if 3, $pop21 # 3: down to label5 +# BB#20: # %if.end6.i63.2 + # in Loop: Header=BB1_1 Depth=1 + i32.const $6=, 3 + i32.load $push22=, 0($8) + i32.eq $push23=, $pop22, $5 + br_if 6, $pop23 # 6: up to label1 + br 3 # 3: down to label5 +.LBB1_21: # %land.lhs.true.2 + # in Loop: Header=BB1_1 Depth=1 + end_block # label8: + i32.load $push64=, 0($7) + tee_local $push63=, $7=, $pop64 + i32.gt_s $push36=, $pop63, $4 + br_if 1, $pop36 # 1: down to label6 +# BB#22: # %if.end.i.2 + # in Loop: Header=BB1_1 Depth=1 + i32.lt_s $push37=, $7, $4 + br_if 4, $pop37 # 4: down to label3 +# BB#23: # %if.end6.i.2 + # in Loop: Header=BB1_1 Depth=1 + i32.load $push38=, 0($8) + i32.ge_u $push39=, $pop38, $5 + br_if 1, $pop39 # 1: down to label6 + br 4 # 4: down to label3 +.LBB1_24: # %if.end14.2 + # in Loop: Header=BB1_1 Depth=1 + end_block # label7: + i32.const $push69=, 3 + i32.lt_s $push12=, $6, $pop69 + br_if 3, $pop12 # 3: down to label3 +# BB#25: # %land.lhs.true16.2 + i32.load $push73=, 0($7) + tee_local $push72=, $6=, $pop73 + i32.const $push13=, 0 + i32.load $push71=, a+20($pop13) + tee_local $push70=, $7=, $pop71 + i32.gt_s $push14=, $pop72, $pop70 + br_if 5, $pop14 # 5: down to label2 +# BB#26: # %if.end.i45.2 + i32.lt_s $push15=, $6, $7 + br_if 2, $pop15 # 2: down to label4 +# BB#27: # %if.end6.i49.2 + i32.load $push18=, 0($8) + i32.const $push16=, 0 + i32.load $push17=, a+16($pop16) + i32.le_u $push19=, $pop18, $pop17 + br_if 2, $pop19 # 2: down to label4 + br 5 # 5: down to label2 +.LBB1_28: # %if.then + end_block # label6: call abort@FUNCTION unreachable +.LBB1_29: # %if.then13 + end_block # label5: + call abort@FUNCTION + unreachable +.LBB1_30: # %if.then21 + end_block # label4: + call abort@FUNCTION + unreachable +.LBB1_31: # %for.inc.2 + # in Loop: Header=BB1_1 Depth=1 + end_block # label3: + i32.const $push68=, 1 + i32.add $push67=, $6, $pop68 + tee_local $push66=, $6=, $pop67 + i32.const $push65=, 4 + i32.lt_s $push40=, $pop66, $pop65 + br_if 0, $pop40 # 0: up to label1 +.LBB1_32: # %for.end25 + end_loop # label2: + i32.const $push41=, 0 + # fallthrough-return: $pop41 .endfunc .Lfunc_end1: .size main, .Lfunc_end1-main @@ -267,3 +277,4 @@ a: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20120615-1.c.s b/test/torture-s/20120615-1.c.s index 452c4d7b9..0e3485af7 100644 --- a/test/torture-s/20120615-1.c.s +++ b/test/torture-s/20120615-1.c.s @@ -45,3 +45,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20120808-1.c.s b/test/torture-s/20120808-1.c.s index f55002ed4..7fdb218ec 100644 --- a/test/torture-s/20120808-1.c.s +++ b/test/torture-s/20120808-1.c.s @@ -161,3 +161,5 @@ cp: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20120817-1.c.s b/test/torture-s/20120817-1.c.s index 6ec559ef5..fea49b14c 100644 --- a/test/torture-s/20120817-1.c.s +++ b/test/torture-s/20120817-1.c.s @@ -56,3 +56,5 @@ foo: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/20120919-1.c.s b/test/torture-s/20120919-1.c.s index 69301b249..3ad52e292 100644 --- a/test/torture-s/20120919-1.c.s +++ b/test/torture-s/20120919-1.c.s @@ -149,3 +149,4 @@ pi: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20121108-1.c.s b/test/torture-s/20121108-1.c.s index 1762a938e..5cf513847 100644 --- a/test/torture-s/20121108-1.c.s +++ b/test/torture-s/20121108-1.c.s @@ -225,3 +225,6 @@ result: .ident "clang version 3.9.0 " + .functype abort, void + .functype printf, i32, i32 + .functype puts, i32, i32 diff --git a/test/torture-s/20140212-1.c.s b/test/torture-s/20140212-1.c.s index 98ff4b621..ead0fadbc 100644 --- a/test/torture-s/20140212-1.c.s +++ b/test/torture-s/20140212-1.c.s @@ -235,3 +235,4 @@ h: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/20140425-1.c.s b/test/torture-s/20140425-1.c.s index e0da53f2b..377e4ab03 100644 --- a/test/torture-s/20140425-1.c.s +++ b/test/torture-s/20140425-1.c.s @@ -56,3 +56,4 @@ set: # @set .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/900409-1.c.s b/test/torture-s/900409-1.c.s index ced25e756..2ef2be84c 100644 --- a/test/torture-s/900409-1.c.s +++ b/test/torture-s/900409-1.c.s @@ -106,3 +106,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/920202-1.c.s b/test/torture-s/920202-1.c.s index 1895ed34e..57c3a9fc4 100644 --- a/test/torture-s/920202-1.c.s +++ b/test/torture-s/920202-1.c.s @@ -29,3 +29,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/920409-1.c.s b/test/torture-s/920409-1.c.s index e00fbaa0c..138a984ba 100644 --- a/test/torture-s/920409-1.c.s +++ b/test/torture-s/920409-1.c.s @@ -29,3 +29,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/920410-1.c.s b/test/torture-s/920410-1.c.s index 1163c0551..c1f03730c 100644 --- a/test/torture-s/920410-1.c.s +++ b/test/torture-s/920410-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/920411-1.c.s b/test/torture-s/920411-1.c.s index aef91292b..92cf36439 100644 --- a/test/torture-s/920411-1.c.s +++ b/test/torture-s/920411-1.c.s @@ -30,3 +30,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/920428-1.c.s b/test/torture-s/920428-1.c.s index e8239e36c..4d50807f4 100644 --- a/test/torture-s/920428-1.c.s +++ b/test/torture-s/920428-1.c.s @@ -45,3 +45,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/920429-1.c.s b/test/torture-s/920429-1.c.s index 311b3bd18..0729f827e 100644 --- a/test/torture-s/920429-1.c.s +++ b/test/torture-s/920429-1.c.s @@ -69,3 +69,4 @@ j: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/920501-1.c.s b/test/torture-s/920501-1.c.s index 37cc0c8e5..9b5df4732 100644 --- a/test/torture-s/920501-1.c.s +++ b/test/torture-s/920501-1.c.s @@ -55,3 +55,4 @@ s: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/920501-2.c.s b/test/torture-s/920501-2.c.s index 56e15f218..093512186 100644 --- a/test/torture-s/920501-2.c.s +++ b/test/torture-s/920501-2.c.s @@ -53,63 +53,63 @@ powmod_ll: # @powmod_ll i64.const $5=, 1 block block - i32.eqz $push20=, $1 - br_if 0, $pop20 # 0: down to label5 + i32.eqz $push21=, $1 + br_if 0, $pop21 # 0: down to label5 # BB#1: # %for.body.preheader - i32.const $3=, -1 + i32.const $3=, 0 copy_local $4=, $1 .LBB1_2: # %for.body # =>This Inner Loop Header: Depth=1 loop # label6: + i32.const $push12=, 1 + i32.add $3=, $3, $pop12 i32.const $push11=, 1 - i32.add $3=, $3, $pop11 - i32.const $push10=, 1 - i32.shr_u $push9=, $4, $pop10 - tee_local $push8=, $4=, $pop9 - br_if 0, $pop8 # 0: up to label6 + i32.shr_u $push10=, $4, $pop11 + tee_local $push9=, $4=, $pop10 + br_if 0, $pop9 # 0: up to label6 # BB#3: # %for.end end_loop # label7: - i32.const $push12=, 1 - i32.lt_s $push0=, $3, $pop12 - br_if 1, $pop0 # 1: down to label4 -# BB#4: # %for.body4.preheader + i32.const $push14=, -1 + i32.add $push0=, $3, $pop14 i32.const $push13=, 1 - i32.add $3=, $3, $pop13 + i32.lt_s $push1=, $pop0, $pop13 + br_if 1, $pop1 # 1: down to label4 +# BB#4: # %for.body4.preheader copy_local $5=, $0 .LBB1_5: # %for.body4 # =>This Inner Loop Header: Depth=1 loop # label8: - i64.mul $push1=, $5, $5 - i64.rem_u $5=, $pop1, $2 + i64.mul $push2=, $5, $5 + i64.rem_u $5=, $pop2, $2 block - i32.const $push15=, 1 - i32.const $push14=, -2 - i32.add $push2=, $3, $pop14 - i32.shl $push3=, $pop15, $pop2 - i32.and $push4=, $pop3, $1 - i32.eqz $push21=, $pop4 - br_if 0, $pop21 # 0: down to label10 + i32.const $push16=, 1 + i32.const $push15=, -2 + i32.add $push3=, $3, $pop15 + i32.shl $push4=, $pop16, $pop3 + i32.and $push5=, $pop4, $1 + i32.eqz $push22=, $pop5 + br_if 0, $pop22 # 0: down to label10 # BB#6: # %if.then5 # in Loop: Header=BB1_5 Depth=1 - i64.mul $push5=, $5, $0 - i64.rem_u $5=, $pop5, $2 + i64.mul $push6=, $5, $0 + i64.rem_u $5=, $pop6, $2 .LBB1_7: # %for.inc9 # in Loop: Header=BB1_5 Depth=1 end_block # label10: - i32.const $push19=, -1 - i32.add $push18=, $3, $pop19 - tee_local $push17=, $3=, $pop18 - i32.const $push16=, 1 - i32.gt_s $push6=, $pop17, $pop16 - br_if 0, $pop6 # 0: up to label8 + i32.const $push20=, -1 + i32.add $push19=, $3, $pop20 + tee_local $push18=, $3=, $pop19 + i32.const $push17=, 1 + i32.gt_s $push7=, $pop18, $pop17 + br_if 0, $pop7 # 0: up to label8 .LBB1_8: # %cleanup end_loop # label9: end_block # label5: return $5 .LBB1_9: end_block # label4: - copy_local $push7=, $0 - # fallthrough-return: $pop7 + copy_local $push8=, $0 + # fallthrough-return: $pop8 .endfunc .Lfunc_end1: .size powmod_ll, .Lfunc_end1-powmod_ll @@ -120,20 +120,20 @@ powmod_ll: # @powmod_ll .type facts,@function facts: # @facts .param i64, i32, i32, i32 - .local i64, i64, i64, i32, i64, i64, i64, i64, i64, i32, i32, i32 + .local i64, i64, i64, i32, i64, i64, i32, i32, i64, i64, i64, i32, i32, i32 # BB#0: # %entry i64.extend_s/i32 $push40=, $1 tee_local $push39=, $4=, $pop40 i64.const $push38=, 1 i64.add $5=, $pop39, $pop38 - i32.const $13=, factab - i32.const $15=, 0 - i32.const $14=, 1 + i32.const $15=, factab + i32.const $17=, 0 + i32.const $16=, 1 i32.const $7=, 1 i64.const $8=, 1 i64.extend_s/i32 $push37=, $2 tee_local $push36=, $9=, $pop37 - copy_local $11=, $pop36 + copy_local $13=, $pop36 .LBB2_1: # %for.body # =>This Loop Header: Depth=1 # Child Loop BB2_3 Depth 2 @@ -144,268 +144,277 @@ facts: # @facts # Child Loop BB2_22 Depth 2 # Child Loop BB2_29 Depth 2 loop # label11: - copy_local $6=, $11 - copy_local $11=, $5 - i64.const $12=, 1 + copy_local $6=, $13 + copy_local $13=, $5 + i64.const $14=, 1 block - i32.eqz $push100=, $3 - br_if 0, $pop100 # 0: down to label13 + i32.eqz $push106=, $3 + br_if 0, $pop106 # 0: down to label13 # BB#2: # %for.body.i.preheader # in Loop: Header=BB2_1 Depth=1 - i32.const $2=, -1 - copy_local $1=, $3 + i32.const $1=, -1 + i32.const $10=, 1 + copy_local $11=, $3 .LBB2_3: # %for.body.i # Parent Loop BB2_1 Depth=1 # => This Inner Loop Header: Depth=2 loop # label14: + copy_local $push47=, $10 + tee_local $push46=, $2=, $pop47 + i32.const $push45=, 1 + i32.add $10=, $pop46, $pop45 i32.const $push44=, 1 - i32.add $2=, $2, $pop44 + i32.add $1=, $1, $pop44 i32.const $push43=, 1 - i32.shr_u $push42=, $1, $pop43 - tee_local $push41=, $1=, $pop42 + i32.shr_u $push42=, $11, $pop43 + tee_local $push41=, $11=, $pop42 br_if 0, $pop41 # 0: up to label14 # BB#4: # %for.end.i # in Loop: Header=BB2_1 Depth=1 end_loop # label15: block block - i32.const $push45=, 1 - i32.lt_s $push0=, $2, $pop45 + i32.const $push48=, 1 + i32.lt_s $push0=, $1, $pop48 br_if 0, $pop0 # 0: down to label17 # BB#5: # %for.body4.i.preheader # in Loop: Header=BB2_1 Depth=1 - i32.const $push46=, 1 - i32.add $2=, $2, $pop46 - copy_local $10=, $6 + copy_local $12=, $6 .LBB2_6: # %for.body4.i # Parent Loop BB2_1 Depth=1 # => This Inner Loop Header: Depth=2 loop # label18: - i64.mul $push1=, $10, $10 - i64.rem_u $10=, $pop1, $0 + i64.mul $push1=, $12, $12 + i64.rem_u $12=, $pop1, $0 block - i32.const $push48=, 1 - i32.const $push47=, -2 - i32.add $push2=, $2, $pop47 - i32.shl $push3=, $pop48, $pop2 + i32.const $push50=, 1 + i32.const $push49=, -2 + i32.add $push2=, $2, $pop49 + i32.shl $push3=, $pop50, $pop2 i32.and $push4=, $pop3, $3 - i32.eqz $push101=, $pop4 - br_if 0, $pop101 # 0: down to label20 + i32.eqz $push107=, $pop4 + br_if 0, $pop107 # 0: down to label20 # BB#7: # %if.then5.i # in Loop: Header=BB2_6 Depth=2 - i64.mul $push5=, $10, $6 - i64.rem_u $10=, $pop5, $0 + i64.mul $push5=, $12, $6 + i64.rem_u $12=, $pop5, $0 .LBB2_8: # %for.inc9.i # in Loop: Header=BB2_6 Depth=2 end_block # label20: - i32.const $push52=, -1 - i32.add $push51=, $2, $pop52 - tee_local $push50=, $2=, $pop51 - i32.const $push49=, 1 - i32.gt_s $push6=, $pop50, $pop49 + i32.const $push54=, -1 + i32.add $push53=, $2, $pop54 + tee_local $push52=, $2=, $pop53 + i32.const $push51=, 1 + i32.gt_s $push6=, $pop52, $pop51 br_if 0, $pop6 # 0: up to label18 br 3 # 3: down to label16 .LBB2_9: # in Loop: Header=BB2_1 Depth=1 end_loop # label19: end_block # label17: - copy_local $10=, $6 + copy_local $12=, $6 .LBB2_10: # %for.body.i114.preheader # in Loop: Header=BB2_1 Depth=1 end_block # label16: - i64.add $11=, $10, $4 - i32.const $2=, -1 - copy_local $1=, $3 + i64.add $13=, $12, $4 + i32.const $1=, -1 + i32.const $10=, 1 + copy_local $11=, $3 .LBB2_11: # %for.body.i114 # Parent Loop BB2_1 Depth=1 # => This Inner Loop Header: Depth=2 loop # label21: - i32.const $push56=, 1 - i32.add $2=, $2, $pop56 - i32.const $push55=, 1 - i32.shr_u $push54=, $1, $pop55 - tee_local $push53=, $1=, $pop54 - br_if 0, $pop53 # 0: up to label21 + copy_local $push61=, $10 + tee_local $push60=, $2=, $pop61 + i32.const $push59=, 1 + i32.add $10=, $pop60, $pop59 + i32.const $push58=, 1 + i32.add $1=, $1, $pop58 + i32.const $push57=, 1 + i32.shr_u $push56=, $11, $pop57 + tee_local $push55=, $11=, $pop56 + br_if 0, $pop55 # 0: up to label21 # BB#12: # %for.end.i116 # in Loop: Header=BB2_1 Depth=1 end_loop # label22: block block - i32.const $push57=, 1 - i32.lt_s $push7=, $2, $pop57 + i32.const $push62=, 1 + i32.lt_s $push7=, $1, $pop62 br_if 0, $pop7 # 0: down to label24 # BB#13: # %for.body4.i125.preheader # in Loop: Header=BB2_1 Depth=1 - i32.const $push58=, 1 - i32.add $2=, $2, $pop58 - copy_local $10=, $9 + copy_local $12=, $9 .LBB2_14: # %for.body4.i125 # Parent Loop BB2_1 Depth=1 # => This Inner Loop Header: Depth=2 loop # label25: - i64.mul $push8=, $10, $10 - i64.rem_u $10=, $pop8, $0 + i64.mul $push8=, $12, $12 + i64.rem_u $12=, $pop8, $0 block - i32.const $push60=, 1 - i32.const $push59=, -2 - i32.add $push9=, $2, $pop59 - i32.shl $push10=, $pop60, $pop9 + i32.const $push64=, 1 + i32.const $push63=, -2 + i32.add $push9=, $2, $pop63 + i32.shl $push10=, $pop64, $pop9 i32.and $push11=, $pop10, $3 - i32.eqz $push102=, $pop11 - br_if 0, $pop102 # 0: down to label27 + i32.eqz $push108=, $pop11 + br_if 0, $pop108 # 0: down to label27 # BB#15: # %if.then5.i128 # in Loop: Header=BB2_14 Depth=2 - i64.mul $push12=, $10, $9 - i64.rem_u $10=, $pop12, $0 + i64.mul $push12=, $12, $9 + i64.rem_u $12=, $pop12, $0 .LBB2_16: # %for.inc9.i131 # in Loop: Header=BB2_14 Depth=2 end_block # label27: - i32.const $push64=, -1 - i32.add $push63=, $2, $pop64 - tee_local $push62=, $2=, $pop63 - i32.const $push61=, 1 - i32.gt_s $push13=, $pop62, $pop61 + i32.const $push68=, -1 + i32.add $push67=, $2, $pop68 + tee_local $push66=, $2=, $pop67 + i32.const $push65=, 1 + i32.gt_s $push13=, $pop66, $pop65 br_if 0, $pop13 # 0: up to label25 br 3 # 3: down to label23 .LBB2_17: # in Loop: Header=BB2_1 Depth=1 end_loop # label26: end_block # label24: - copy_local $10=, $9 + copy_local $12=, $9 .LBB2_18: # %for.body.i88.preheader # in Loop: Header=BB2_1 Depth=1 end_block # label23: - i64.add $12=, $10, $4 - i32.const $2=, -1 - copy_local $1=, $3 + i64.add $14=, $12, $4 + i32.const $1=, -1 + i32.const $10=, 1 + copy_local $11=, $3 .LBB2_19: # %for.body.i88 # Parent Loop BB2_1 Depth=1 # => This Inner Loop Header: Depth=2 loop # label28: - i32.const $push68=, 1 - i32.add $2=, $2, $pop68 - i32.const $push67=, 1 - i32.shr_u $push66=, $1, $pop67 - tee_local $push65=, $1=, $pop66 - br_if 0, $pop65 # 0: up to label28 + copy_local $push75=, $10 + tee_local $push74=, $2=, $pop75 + i32.const $push73=, 1 + i32.add $10=, $pop74, $pop73 + i32.const $push72=, 1 + i32.add $1=, $1, $pop72 + i32.const $push71=, 1 + i32.shr_u $push70=, $11, $pop71 + tee_local $push69=, $11=, $pop70 + br_if 0, $pop69 # 0: up to label28 # BB#20: # %for.end.i90 # in Loop: Header=BB2_1 Depth=1 end_loop # label29: - i32.const $push69=, 1 - i32.lt_s $push14=, $2, $pop69 + i32.const $push76=, 1 + i32.lt_s $push14=, $1, $pop76 br_if 0, $pop14 # 0: down to label13 # BB#21: # %for.body4.i99.preheader # in Loop: Header=BB2_1 Depth=1 - i32.const $push70=, 1 - i32.add $2=, $2, $pop70 - copy_local $10=, $12 + copy_local $12=, $14 .LBB2_22: # %for.body4.i99 # Parent Loop BB2_1 Depth=1 # => This Inner Loop Header: Depth=2 loop # label30: - i64.mul $push15=, $10, $10 - i64.rem_u $10=, $pop15, $0 + i64.mul $push15=, $12, $12 + i64.rem_u $12=, $pop15, $0 block - i32.const $push72=, 1 - i32.const $push71=, -2 - i32.add $push16=, $2, $pop71 - i32.shl $push17=, $pop72, $pop16 + i32.const $push78=, 1 + i32.const $push77=, -2 + i32.add $push16=, $2, $pop77 + i32.shl $push17=, $pop78, $pop16 i32.and $push18=, $pop17, $3 - i32.eqz $push103=, $pop18 - br_if 0, $pop103 # 0: down to label32 + i32.eqz $push109=, $pop18 + br_if 0, $pop109 # 0: down to label32 # BB#23: # %if.then5.i102 # in Loop: Header=BB2_22 Depth=2 - i64.mul $push19=, $10, $12 - i64.rem_u $10=, $pop19, $0 + i64.mul $push19=, $12, $14 + i64.rem_u $12=, $pop19, $0 .LBB2_24: # %for.inc9.i105 # in Loop: Header=BB2_22 Depth=2 end_block # label32: - i32.const $push76=, -1 - i32.add $push75=, $2, $pop76 - tee_local $push74=, $2=, $pop75 - i32.const $push73=, 1 - i32.gt_s $push20=, $pop74, $pop73 + i32.const $push82=, -1 + i32.add $push81=, $2, $pop82 + tee_local $push80=, $2=, $pop81 + i32.const $push79=, 1 + i32.gt_s $push20=, $pop80, $pop79 br_if 0, $pop20 # 0: up to label30 # BB#25: # in Loop: Header=BB2_1 Depth=1 end_loop # label31: - copy_local $12=, $10 + copy_local $14=, $12 .LBB2_26: # %powmod_ll.exit107 # in Loop: Header=BB2_1 Depth=1 end_block # label13: - i64.add $push80=, $12, $4 - tee_local $push79=, $9=, $pop80 - i64.sub $push23=, $11, $pop79 - i64.sub $push22=, $9, $11 - i64.gt_u $push21=, $11, $9 + i64.add $push86=, $14, $4 + tee_local $push85=, $9=, $pop86 + i64.sub $push23=, $13, $pop85 + i64.sub $push22=, $9, $13 + i64.gt_u $push21=, $13, $9 i64.select $push24=, $pop23, $pop22, $pop21 - i64.const $push78=, 4294967295 - i64.and $push25=, $pop24, $pop78 - i64.const $push77=, 4294967295 - i64.and $push26=, $8, $pop77 + i64.const $push84=, 4294967295 + i64.and $push25=, $pop24, $pop84 + i64.const $push83=, 4294967295 + i64.and $push26=, $8, $pop83 i64.mul $push27=, $pop25, $pop26 i64.rem_u $8=, $pop27, $0 block - i32.ne $push28=, $7, $14 + i32.ne $push28=, $7, $16 br_if 0, $pop28 # 0: down to label33 # BB#27: # %if.then19 # in Loop: Header=BB2_1 Depth=1 - i64.const $push82=, 4294967295 - i64.and $10=, $8, $pop82 - i32.const $push81=, 1 - i32.add $15=, $15, $pop81 + i64.const $push88=, 4294967295 + i64.and $12=, $8, $pop88 + i32.const $push87=, 1 + i32.add $17=, $17, $pop87 block i64.eqz $push29=, $0 br_if 0, $pop29 # 0: down to label34 # BB#28: # %if.end.i.preheader # in Loop: Header=BB2_1 Depth=1 - copy_local $12=, $0 + copy_local $14=, $0 .LBB2_29: # %if.end.i # Parent Loop BB2_1 Depth=1 # => This Inner Loop Header: Depth=2 loop # label35: - i64.rem_u $push84=, $10, $12 - tee_local $push83=, $10=, $pop84 - i64.eqz $push30=, $pop83 + i64.rem_u $push90=, $12, $14 + tee_local $push89=, $12=, $pop90 + i64.eqz $push30=, $pop89 br_if 1, $pop30 # 1: down to label36 # BB#30: # %if.end5.i # in Loop: Header=BB2_29 Depth=2 - i64.rem_u $push87=, $12, $10 - tee_local $push86=, $12=, $pop87 - i64.const $push85=, 0 - i64.ne $push31=, $pop86, $pop85 + i64.rem_u $push93=, $14, $12 + tee_local $push92=, $14=, $pop93 + i64.const $push91=, 0 + i64.ne $push31=, $pop92, $pop91 br_if 0, $pop31 # 0: up to label35 br 2 # 2: down to label34 .LBB2_31: # in Loop: Header=BB2_1 Depth=1 end_loop # label36: - copy_local $10=, $12 + copy_local $12=, $14 .LBB2_32: # %gcd_ll.exit # in Loop: Header=BB2_1 Depth=1 end_block # label34: - i32.add $14=, $15, $14 - i32.wrap/i64 $push90=, $10 - tee_local $push89=, $2=, $pop90 - i32.const $push88=, 1 - i32.eq $push32=, $pop89, $pop88 + i32.add $16=, $17, $16 + i32.wrap/i64 $push96=, $12 + tee_local $push95=, $2=, $pop96 + i32.const $push94=, 1 + i32.eq $push32=, $pop95, $pop94 br_if 0, $pop32 # 0: down to label33 # BB#33: # %if.then26 # in Loop: Header=BB2_1 Depth=1 - i32.store $drop=, 0($13), $2 - i64.const $push94=, 4294967295 - i64.and $push33=, $10, $pop94 - i64.div_u $push93=, $0, $pop33 - tee_local $push92=, $0=, $pop93 - i64.const $push91=, 1 - i64.eq $push34=, $pop92, $pop91 + i32.store $drop=, 0($15), $2 + i64.const $push100=, 4294967295 + i64.and $push33=, $12, $pop100 + i64.div_u $push99=, $0, $pop33 + tee_local $push98=, $0=, $pop99 + i64.const $push97=, 1 + i64.eq $push34=, $pop98, $pop97 br_if 2, $pop34 # 2: down to label12 # BB#34: # in Loop: Header=BB2_1 Depth=1 - i32.const $push95=, 4 - i32.add $13=, $13, $pop95 + i32.const $push101=, 4 + i32.add $15=, $15, $pop101 .LBB2_35: # %for.inc # in Loop: Header=BB2_1 Depth=1 end_block # label33: - i32.const $push99=, 1 - i32.add $push98=, $7, $pop99 - tee_local $push97=, $7=, $pop98 - i32.const $push96=, 10000 - i32.lt_s $push35=, $pop97, $pop96 + i32.const $push105=, 1 + i32.add $push104=, $7, $pop105 + tee_local $push103=, $7=, $pop104 + i32.const $push102=, 10000 + i32.lt_s $push35=, $pop103, $pop102 br_if 0, $pop35 # 0: up to label11 .LBB2_36: # %cleanup end_loop # label12: @@ -470,3 +479,5 @@ factab: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/920501-6.c.s b/test/torture-s/920501-6.c.s index 01783548f..87cc348fe 100644 --- a/test/torture-s/920501-6.c.s +++ b/test/torture-s/920501-6.c.s @@ -370,3 +370,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/920501-8.c.s b/test/torture-s/920501-8.c.s index 094651788..c82b6aef6 100644 --- a/test/torture-s/920501-8.c.s +++ b/test/torture-s/920501-8.c.s @@ -176,3 +176,7 @@ buf: .ident "clang version 3.9.0 " + .functype sprintf, i32, i32, i32 + .functype strcmp, i32, i32, i32 + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/920501-9.c.s b/test/torture-s/920501-9.c.s index 4ff8f7cca..69f5ea698 100644 --- a/test/torture-s/920501-9.c.s +++ b/test/torture-s/920501-9.c.s @@ -247,3 +247,7 @@ main: # @main .ident "clang version 3.9.0 " + .functype sprintf, i32, i32, i32 + .functype strcmp, i32, i32, i32 + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/920506-1.c.s b/test/torture-s/920506-1.c.s index 7804eb0c4..abb2c3c27 100644 --- a/test/torture-s/920506-1.c.s +++ b/test/torture-s/920506-1.c.s @@ -35,3 +35,5 @@ l: .ident "clang version 3.9.0 " + .functype exit, void, i32 + .functype abort, void diff --git a/test/torture-s/920520-1.c.s b/test/torture-s/920520-1.c.s index d9099c575..43da08763 100644 --- a/test/torture-s/920520-1.c.s +++ b/test/torture-s/920520-1.c.s @@ -45,3 +45,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/920603-1.c.s b/test/torture-s/920603-1.c.s index d46c73d50..bffe20d72 100644 --- a/test/torture-s/920603-1.c.s +++ b/test/torture-s/920603-1.c.s @@ -38,3 +38,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/920604-1.c.s b/test/torture-s/920604-1.c.s index 88527161e..52f0213a5 100644 --- a/test/torture-s/920604-1.c.s +++ b/test/torture-s/920604-1.c.s @@ -30,3 +30,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/920612-1.c.s b/test/torture-s/920612-1.c.s index 4d1c79a67..3247f65e1 100644 --- a/test/torture-s/920612-1.c.s +++ b/test/torture-s/920612-1.c.s @@ -32,3 +32,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/920618-1.c.s b/test/torture-s/920618-1.c.s index e2b0cf869..71b9bf7e7 100644 --- a/test/torture-s/920618-1.c.s +++ b/test/torture-s/920618-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/920625-1.c.s b/test/torture-s/920625-1.c.s index 72835faea..20ae1aaf1 100644 --- a/test/torture-s/920625-1.c.s +++ b/test/torture-s/920625-1.c.s @@ -342,3 +342,5 @@ ipts: .ident "clang version 3.9.0 " + .functype exit, void, i32 + .functype abort, void diff --git a/test/torture-s/920710-1.c.s b/test/torture-s/920710-1.c.s index 9d0e8ba7e..a2d76c259 100644 --- a/test/torture-s/920710-1.c.s +++ b/test/torture-s/920710-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/920711-1.c.s b/test/torture-s/920711-1.c.s index c84be4b95..4737ffbbe 100644 --- a/test/torture-s/920711-1.c.s +++ b/test/torture-s/920711-1.c.s @@ -30,3 +30,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/920721-1.c.s b/test/torture-s/920721-1.c.s index cd42a0f8e..551b1ba2f 100644 --- a/test/torture-s/920721-1.c.s +++ b/test/torture-s/920721-1.c.s @@ -30,3 +30,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/920721-2.c.s b/test/torture-s/920721-2.c.s index 94aa48a0e..488635ecc 100644 --- a/test/torture-s/920721-2.c.s +++ b/test/torture-s/920721-2.c.s @@ -30,3 +30,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/920721-3.c.s b/test/torture-s/920721-3.c.s index 30b1ce0c8..939783f58 100644 --- a/test/torture-s/920721-3.c.s +++ b/test/torture-s/920721-3.c.s @@ -72,3 +72,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/920726-1.c.s b/test/torture-s/920726-1.c.s index 2593aabb7..1d9a9cad4 100644 --- a/test/torture-s/920726-1.c.s +++ b/test/torture-s/920726-1.c.s @@ -208,3 +208,8 @@ main: # @main .ident "clang version 3.9.0 " + .functype sprintf, i32, i32, i32 + .functype strlen, i32, i32 + .functype strcmp, i32, i32, i32 + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/920730-1.c.s b/test/torture-s/920730-1.c.s index 05e832e23..f88a8b5db 100644 --- a/test/torture-s/920730-1.c.s +++ b/test/torture-s/920730-1.c.s @@ -68,3 +68,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/920731-1.c.s b/test/torture-s/920731-1.c.s index a44f93117..7f4a24f54 100644 --- a/test/torture-s/920731-1.c.s +++ b/test/torture-s/920731-1.c.s @@ -59,3 +59,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/920810-1.c.s b/test/torture-s/920810-1.c.s index e561a7171..554f65167 100644 --- a/test/torture-s/920810-1.c.s +++ b/test/torture-s/920810-1.c.s @@ -39,3 +39,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype malloc, i32, i32 + .functype exit, void, i32 diff --git a/test/torture-s/920812-1.c.s b/test/torture-s/920812-1.c.s index bc1d1c60f..3c86ed5da 100644 --- a/test/torture-s/920812-1.c.s +++ b/test/torture-s/920812-1.c.s @@ -31,3 +31,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/920829-1.c.s b/test/torture-s/920829-1.c.s index 7b604b8e8..907957510 100644 --- a/test/torture-s/920829-1.c.s +++ b/test/torture-s/920829-1.c.s @@ -48,3 +48,5 @@ c3: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/920908-1.c.s b/test/torture-s/920908-1.c.s index 45d38966a..9a6c3161f 100644 --- a/test/torture-s/920908-1.c.s +++ b/test/torture-s/920908-1.c.s @@ -76,3 +76,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/920908-2.c.s b/test/torture-s/920908-2.c.s index 5e9193e1f..9b170a2eb 100644 --- a/test/torture-s/920908-2.c.s +++ b/test/torture-s/920908-2.c.s @@ -34,3 +34,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/920909-1.c.s b/test/torture-s/920909-1.c.s index 409a254c8..57e2af050 100644 --- a/test/torture-s/920909-1.c.s +++ b/test/torture-s/920909-1.c.s @@ -56,3 +56,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/920922-1.c.s b/test/torture-s/920922-1.c.s index 40694de58..51b0df73d 100644 --- a/test/torture-s/920922-1.c.s +++ b/test/torture-s/920922-1.c.s @@ -37,3 +37,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/920929-1.c.s b/test/torture-s/920929-1.c.s index 17857250f..6ac5093df 100644 --- a/test/torture-s/920929-1.c.s +++ b/test/torture-s/920929-1.c.s @@ -31,3 +31,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/921006-1.c.s b/test/torture-s/921006-1.c.s index 7b2c5523f..7251890b5 100644 --- a/test/torture-s/921006-1.c.s +++ b/test/torture-s/921006-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/921007-1.c.s b/test/torture-s/921007-1.c.s index d459e1d59..b64687cf7 100644 --- a/test/torture-s/921007-1.c.s +++ b/test/torture-s/921007-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/921013-1.c.s b/test/torture-s/921013-1.c.s index 106810e54..f8d6cd97e 100644 --- a/test/torture-s/921013-1.c.s +++ b/test/torture-s/921013-1.c.s @@ -54,3 +54,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/921016-1.c.s b/test/torture-s/921016-1.c.s index 5be29a1e9..86421969e 100644 --- a/test/torture-s/921016-1.c.s +++ b/test/torture-s/921016-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/921019-1.c.s b/test/torture-s/921019-1.c.s index 0fc4540e4..924c146fc 100644 --- a/test/torture-s/921019-1.c.s +++ b/test/torture-s/921019-1.c.s @@ -43,3 +43,5 @@ foo: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/921019-2.c.s b/test/torture-s/921019-2.c.s index 00f72dda3..5fb18ba95 100644 --- a/test/torture-s/921019-2.c.s +++ b/test/torture-s/921019-2.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/921029-1.c.s b/test/torture-s/921029-1.c.s index 5f1127dd6..e7edfadcb 100644 --- a/test/torture-s/921029-1.c.s +++ b/test/torture-s/921029-1.c.s @@ -76,3 +76,4 @@ back: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/921104-1.c.s b/test/torture-s/921104-1.c.s index 745b378d1..64878fcdc 100644 --- a/test/torture-s/921104-1.c.s +++ b/test/torture-s/921104-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/921110-1.c.s b/test/torture-s/921110-1.c.s index 2a88a5f86..e62eff8c2 100644 --- a/test/torture-s/921110-1.c.s +++ b/test/torture-s/921110-1.c.s @@ -25,3 +25,5 @@ f: .ident "clang version 3.9.0 " + .functype abort, i32 + .functype exit, void, i32 diff --git a/test/torture-s/921112-1.c.s b/test/torture-s/921112-1.c.s index 135877c5e..7c9dfe252 100644 --- a/test/torture-s/921112-1.c.s +++ b/test/torture-s/921112-1.c.s @@ -68,3 +68,5 @@ v: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/921113-1.c.s b/test/torture-s/921113-1.c.s index 78586c655..d68e58b50 100644 --- a/test/torture-s/921113-1.c.s +++ b/test/torture-s/921113-1.c.s @@ -190,3 +190,5 @@ limit: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/921117-1.c.s b/test/torture-s/921117-1.c.s index 28a0a08d3..e5ed9e723 100644 --- a/test/torture-s/921117-1.c.s +++ b/test/torture-s/921117-1.c.s @@ -86,3 +86,6 @@ cell: .ident "clang version 3.9.0 " + .functype strcmp, i32, i32, i32 + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/921123-1.c.s b/test/torture-s/921123-1.c.s index e34deb012..61db3d48d 100644 --- a/test/torture-s/921123-1.c.s +++ b/test/torture-s/921123-1.c.s @@ -36,3 +36,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/921123-2.c.s b/test/torture-s/921123-2.c.s index 24db85179..4b21d5907 100644 --- a/test/torture-s/921123-2.c.s +++ b/test/torture-s/921123-2.c.s @@ -66,3 +66,4 @@ x: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/921124-1.c.s b/test/torture-s/921124-1.c.s index 5f31c109b..b87670110 100644 --- a/test/torture-s/921124-1.c.s +++ b/test/torture-s/921124-1.c.s @@ -64,3 +64,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/921202-1.c.s b/test/torture-s/921202-1.c.s index 4c12d9144..8d82e3c14 100644 --- a/test/torture-s/921202-1.c.s +++ b/test/torture-s/921202-1.c.s @@ -99,3 +99,4 @@ exxit: # @exxit .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/921202-2.c.s b/test/torture-s/921202-2.c.s index b9cc47b08..e10aad8b0 100644 --- a/test/torture-s/921202-2.c.s +++ b/test/torture-s/921202-2.c.s @@ -34,3 +34,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/921204-1.c.s b/test/torture-s/921204-1.c.s index d91706f61..960c5bd23 100644 --- a/test/torture-s/921204-1.c.s +++ b/test/torture-s/921204-1.c.s @@ -38,3 +38,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/921207-1.c.s b/test/torture-s/921207-1.c.s index 8393ec07a..765046d41 100644 --- a/test/torture-s/921207-1.c.s +++ b/test/torture-s/921207-1.c.s @@ -29,3 +29,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/921208-1.c.s b/test/torture-s/921208-1.c.s index f3b9e9dae..cb4f90c28 100644 --- a/test/torture-s/921208-1.c.s +++ b/test/torture-s/921208-1.c.s @@ -44,3 +44,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/921208-2.c.s b/test/torture-s/921208-2.c.s index 88c5902c1..15e737d1c 100644 --- a/test/torture-s/921208-2.c.s +++ b/test/torture-s/921208-2.c.s @@ -44,3 +44,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/921218-1.c.s b/test/torture-s/921218-1.c.s index 59330ba96..bb2a551e8 100644 --- a/test/torture-s/921218-1.c.s +++ b/test/torture-s/921218-1.c.s @@ -29,3 +29,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/921218-2.c.s b/test/torture-s/921218-2.c.s index 0142df1dd..f538ce276 100644 --- a/test/torture-s/921218-2.c.s +++ b/test/torture-s/921218-2.c.s @@ -29,3 +29,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/930106-1.c.s b/test/torture-s/930106-1.c.s index 94f352cc3..2bf61fe3a 100644 --- a/test/torture-s/930106-1.c.s +++ b/test/torture-s/930106-1.c.s @@ -42,3 +42,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/930111-1.c.s b/test/torture-s/930111-1.c.s index 00cff71b1..43787dccd 100644 --- a/test/torture-s/930111-1.c.s +++ b/test/torture-s/930111-1.c.s @@ -49,3 +49,4 @@ wwrite: # @wwrite .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/930123-1.c.s b/test/torture-s/930123-1.c.s index fb9940f49..a33bceb0c 100644 --- a/test/torture-s/930123-1.c.s +++ b/test/torture-s/930123-1.c.s @@ -32,3 +32,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/930126-1.c.s b/test/torture-s/930126-1.c.s index 3fd0dbc63..da5d93aaf 100644 --- a/test/torture-s/930126-1.c.s +++ b/test/torture-s/930126-1.c.s @@ -60,3 +60,5 @@ main: # @main .lcomm main.i,8,3 .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/930208-1.c.s b/test/torture-s/930208-1.c.s index 0e26d9f9c..e702b3af6 100644 --- a/test/torture-s/930208-1.c.s +++ b/test/torture-s/930208-1.c.s @@ -44,3 +44,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/930406-1.c.s b/test/torture-s/930406-1.c.s index ad52d89ab..5ccd26224 100644 --- a/test/torture-s/930406-1.c.s +++ b/test/torture-s/930406-1.c.s @@ -29,3 +29,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/930408-1.c.s b/test/torture-s/930408-1.c.s index 0569d6eb9..cdabe075f 100644 --- a/test/torture-s/930408-1.c.s +++ b/test/torture-s/930408-1.c.s @@ -65,3 +65,5 @@ s: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/930429-1.c.s b/test/torture-s/930429-1.c.s index 0ebaf12d8..e4f47583c 100644 --- a/test/torture-s/930429-1.c.s +++ b/test/torture-s/930429-1.c.s @@ -31,3 +31,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/930429-2.c.s b/test/torture-s/930429-2.c.s index e0ab84f07..302763b02 100644 --- a/test/torture-s/930429-2.c.s +++ b/test/torture-s/930429-2.c.s @@ -33,3 +33,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/930513-1.c.s b/test/torture-s/930513-1.c.s index 1ae7904f2..f0ca6d661 100644 --- a/test/torture-s/930513-1.c.s +++ b/test/torture-s/930513-1.c.s @@ -91,3 +91,6 @@ buf: .ident "clang version 3.9.0 " + .functype sprintf, i32, i32, i32 + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/930513-2.c.s b/test/torture-s/930513-2.c.s index 1bcfadb3e..02d5cb316 100644 --- a/test/torture-s/930513-2.c.s +++ b/test/torture-s/930513-2.c.s @@ -72,3 +72,5 @@ main: # @main .lcomm eq.i,4,2 .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/930518-1.c.s b/test/torture-s/930518-1.c.s index f8997ee48..3b849aba1 100644 --- a/test/torture-s/930518-1.c.s +++ b/test/torture-s/930518-1.c.s @@ -120,3 +120,5 @@ bar: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/930526-1.c.s b/test/torture-s/930526-1.c.s index 1495c287b..dacbdf20e 100644 --- a/test/torture-s/930526-1.c.s +++ b/test/torture-s/930526-1.c.s @@ -31,3 +31,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/930527-1.c.s b/test/torture-s/930527-1.c.s index 59470ad66..ee3c4545d 100644 --- a/test/torture-s/930527-1.c.s +++ b/test/torture-s/930527-1.c.s @@ -33,3 +33,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/930529-1.c.s b/test/torture-s/930529-1.c.s index 1f6a0796d..79fdbe92e 100644 --- a/test/torture-s/930529-1.c.s +++ b/test/torture-s/930529-1.c.s @@ -30,3 +30,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/930603-1.c.s b/test/torture-s/930603-1.c.s index 082f90858..6ebb7583d 100644 --- a/test/torture-s/930603-1.c.s +++ b/test/torture-s/930603-1.c.s @@ -78,3 +78,4 @@ f: # @f .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/930603-2.c.s b/test/torture-s/930603-2.c.s index 6950befe5..1d9a98015 100644 --- a/test/torture-s/930603-2.c.s +++ b/test/torture-s/930603-2.c.s @@ -61,3 +61,5 @@ w: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/930603-3.c.s b/test/torture-s/930603-3.c.s index 16be6f23f..e7d053958 100644 --- a/test/torture-s/930603-3.c.s +++ b/test/torture-s/930603-3.c.s @@ -52,3 +52,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/930608-1.c.s b/test/torture-s/930608-1.c.s index 44fbb08f4..65247d88b 100644 --- a/test/torture-s/930608-1.c.s +++ b/test/torture-s/930608-1.c.s @@ -40,3 +40,4 @@ a: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/930614-1.c.s b/test/torture-s/930614-1.c.s index ff3592200..8cc730695 100644 --- a/test/torture-s/930614-1.c.s +++ b/test/torture-s/930614-1.c.s @@ -32,3 +32,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/930614-2.c.s b/test/torture-s/930614-2.c.s index 22b365d0c..dfc244834 100644 --- a/test/torture-s/930614-2.c.s +++ b/test/torture-s/930614-2.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/930621-1.c.s b/test/torture-s/930621-1.c.s index c55c3e6fb..d80f907b8 100644 --- a/test/torture-s/930621-1.c.s +++ b/test/torture-s/930621-1.c.s @@ -29,3 +29,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/930622-1.c.s b/test/torture-s/930622-1.c.s index fd3457554..d7f7146fa 100644 --- a/test/torture-s/930622-1.c.s +++ b/test/torture-s/930622-1.c.s @@ -79,3 +79,4 @@ b: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/930622-2.c.s b/test/torture-s/930622-2.c.s index da2f5944a..a3dfbef65 100644 --- a/test/torture-s/930622-2.c.s +++ b/test/torture-s/930622-2.c.s @@ -63,3 +63,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/930628-1.c.s b/test/torture-s/930628-1.c.s index cb6eef32e..a77e5987f 100644 --- a/test/torture-s/930628-1.c.s +++ b/test/torture-s/930628-1.c.s @@ -143,3 +143,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/930630-1.c.s b/test/torture-s/930630-1.c.s index 64cd9bf6b..fd63a4851 100644 --- a/test/torture-s/930630-1.c.s +++ b/test/torture-s/930630-1.c.s @@ -38,3 +38,5 @@ f: # @f .ident "clang version 3.9.0 " + .functype exit, void, i32 + .functype abort, void diff --git a/test/torture-s/930702-1.c.s b/test/torture-s/930702-1.c.s index 14ad9090b..56a87213a 100644 --- a/test/torture-s/930702-1.c.s +++ b/test/torture-s/930702-1.c.s @@ -42,3 +42,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/930713-1.c.s b/test/torture-s/930713-1.c.s index 40c1be1e0..6e22fb055 100644 --- a/test/torture-s/930713-1.c.s +++ b/test/torture-s/930713-1.c.s @@ -30,3 +30,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/930718-1.c.s b/test/torture-s/930718-1.c.s index 52d38e942..c8f3f7157 100644 --- a/test/torture-s/930718-1.c.s +++ b/test/torture-s/930718-1.c.s @@ -28,3 +28,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/930719-1.c.s b/test/torture-s/930719-1.c.s index 0999ca79c..48b0012a0 100644 --- a/test/torture-s/930719-1.c.s +++ b/test/torture-s/930719-1.c.s @@ -53,3 +53,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/930725-1.c.s b/test/torture-s/930725-1.c.s index eaff245af..e3f9b2502 100644 --- a/test/torture-s/930725-1.c.s +++ b/test/torture-s/930725-1.c.s @@ -70,3 +70,4 @@ v: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/930818-1.c.s b/test/torture-s/930818-1.c.s index 33609c0f3..9e867b625 100644 --- a/test/torture-s/930818-1.c.s +++ b/test/torture-s/930818-1.c.s @@ -29,3 +29,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/930916-1.c.s b/test/torture-s/930916-1.c.s index 937a708b1..d54556a5b 100644 --- a/test/torture-s/930916-1.c.s +++ b/test/torture-s/930916-1.c.s @@ -38,3 +38,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/930921-1.c.s b/test/torture-s/930921-1.c.s index 3a7bee9a9..4c520d0c8 100644 --- a/test/torture-s/930921-1.c.s +++ b/test/torture-s/930921-1.c.s @@ -65,3 +65,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/930929-1.c.s b/test/torture-s/930929-1.c.s index e2b8cf8da..866fbf85d 100644 --- a/test/torture-s/930929-1.c.s +++ b/test/torture-s/930929-1.c.s @@ -78,3 +78,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/930930-1.c.s b/test/torture-s/930930-1.c.s index 18583eb5a..4d6659dae 100644 --- a/test/torture-s/930930-1.c.s +++ b/test/torture-s/930930-1.c.s @@ -117,3 +117,5 @@ wm_SPB: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/930930-2.c.s b/test/torture-s/930930-2.c.s index 7ca998721..860c90aae 100644 --- a/test/torture-s/930930-2.c.s +++ b/test/torture-s/930930-2.c.s @@ -70,3 +70,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/931004-1.c.s b/test/torture-s/931004-1.c.s index 3c9c08cb3..afb56f64f 100644 --- a/test/torture-s/931004-1.c.s +++ b/test/torture-s/931004-1.c.s @@ -50,3 +50,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/931004-10.c.s b/test/torture-s/931004-10.c.s index 4deef2ee9..9f1022db5 100644 --- a/test/torture-s/931004-10.c.s +++ b/test/torture-s/931004-10.c.s @@ -135,3 +135,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/931004-11.c.s b/test/torture-s/931004-11.c.s index dbc26e469..87371c015 100644 --- a/test/torture-s/931004-11.c.s +++ b/test/torture-s/931004-11.c.s @@ -142,3 +142,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/931004-12.c.s b/test/torture-s/931004-12.c.s index f6971ab50..af03e90ca 100644 --- a/test/torture-s/931004-12.c.s +++ b/test/torture-s/931004-12.c.s @@ -7,87 +7,89 @@ f: # @f .param i32, i32 .result i32 - .local i32, i32, i32 + .local i32, i32 # BB#0: # %entry - i32.const $push22=, 0 - i32.const $push19=, 0 - i32.load $push20=, __stack_pointer($pop19) - i32.const $push21=, 16 - i32.sub $push26=, $pop20, $pop21 - i32.store $push32=, __stack_pointer($pop22), $pop26 + i32.const $push24=, 0 + i32.const $push21=, 0 + i32.load $push22=, __stack_pointer($pop21) + i32.const $push23=, 16 + i32.sub $push28=, $pop22, $pop23 + i32.store $push34=, __stack_pointer($pop24), $pop28 + tee_local $push33=, $2=, $pop34 + i32.store $push32=, 12($2), $1 tee_local $push31=, $3=, $pop32 - i32.store $push30=, 12($3), $1 - tee_local $push29=, $4=, $pop30 - i32.const $push28=, 4 - i32.add $push1=, $pop29, $pop28 - i32.store $drop=, 12($pop31), $pop1 + i32.const $push30=, 4 + i32.add $push2=, $pop31, $pop30 + i32.store $drop=, 12($pop33), $pop2 block block - i32.const $push27=, 1 - i32.lt_s $push2=, $0, $pop27 - br_if 0, $pop2 # 0: down to label1 + block + i32.const $push29=, 1 + i32.lt_s $push3=, $0, $pop29 + br_if 0, $pop3 # 0: down to label2 # BB#1: # %for.body.preheader - i32.const $push3=, 8 - i32.add $4=, $4, $pop3 - i32.const $1=, 0 + i32.const $push4=, 8 + i32.add $1=, $3, $pop4 + i32.const $3=, 0 .LBB0_2: # %for.body # =>This Inner Loop Header: Depth=1 - loop # label2: + loop # label3: i32.const $push36=, 10 - i32.add $push4=, $1, $pop36 - copy_local $push35=, $4 - tee_local $push34=, $4=, $pop35 - i32.const $push33=, -8 - i32.add $push5=, $pop34, $pop33 - i32.load8_s $push6=, 0($pop5) - i32.ne $push7=, $pop4, $pop6 - br_if 3, $pop7 # 3: down to label0 + i32.add $push5=, $3, $pop36 + i32.const $push35=, -8 + i32.add $push6=, $1, $pop35 + i32.load8_s $push7=, 0($pop6) + i32.ne $push8=, $pop5, $pop7 + br_if 3, $pop8 # 3: down to label1 # BB#3: # %if.end # in Loop: Header=BB0_2 Depth=1 i32.const $push38=, 20 - i32.add $push9=, $1, $pop38 + i32.add $push10=, $3, $pop38 i32.const $push37=, -7 - i32.add $push10=, $4, $pop37 - i32.load8_s $push11=, 0($pop10) - i32.ne $push12=, $pop9, $pop11 - br_if 3, $pop12 # 3: down to label0 + i32.add $push11=, $1, $pop37 + i32.load8_s $push12=, 0($pop11) + i32.ne $push13=, $pop10, $pop12 + br_if 3, $pop13 # 3: down to label1 # BB#4: # %if.end9 # in Loop: Header=BB0_2 Depth=1 i32.const $push40=, 30 - i32.add $push13=, $1, $pop40 + i32.add $push14=, $3, $pop40 i32.const $push39=, -6 - i32.add $push8=, $4, $pop39 - i32.load8_s $push0=, 0($pop8) - i32.ne $push14=, $pop13, $pop0 - br_if 3, $pop14 # 3: down to label0 + i32.add $push9=, $1, $pop39 + i32.load8_s $push1=, 0($pop9) + i32.ne $push15=, $pop14, $pop1 + br_if 4, $pop15 # 4: down to label0 # BB#5: # %for.cond # in Loop: Header=BB0_2 Depth=1 - i32.store $push46=, 12($3), $4 - tee_local $push45=, $2=, $pop46 + i32.store $push0=, 12($2), $1 i32.const $push44=, 4 - i32.add $4=, $pop45, $pop44 + i32.add $1=, $pop0, $pop44 i32.const $push43=, 1 - i32.add $push42=, $1, $pop43 - tee_local $push41=, $1=, $pop42 - i32.lt_s $push15=, $pop41, $0 - br_if 0, $pop15 # 0: up to label2 -# BB#6: - end_loop # label3: - i32.const $push47=, -4 - i32.add $1=, $2, $pop47 + i32.add $push42=, $3, $pop43 + tee_local $push41=, $3=, $pop42 + i32.lt_s $push16=, $pop41, $0 + br_if 0, $pop16 # 0: up to label3 +# BB#6: # %for.end.loopexit + end_loop # label4: + i32.const $push17=, -8 + i32.add $1=, $1, $pop17 .LBB0_7: # %for.end - end_block # label1: - i32.load $push16=, 0($1) - i32.const $push17=, 123 - i32.ne $push18=, $pop16, $pop17 - br_if 0, $pop18 # 0: down to label0 + end_block # label2: + i32.load $push18=, 0($1) + i32.const $push19=, 123 + i32.ne $push20=, $pop18, $pop19 + br_if 0, $pop20 # 0: down to label1 # BB#8: # %if.end22 - i32.const $push25=, 0 - i32.const $push23=, 16 - i32.add $push24=, $3, $pop23 - i32.store $drop=, __stack_pointer($pop25), $pop24 + i32.const $push27=, 0 + i32.const $push25=, 16 + i32.add $push26=, $2, $pop25 + i32.store $drop=, __stack_pointer($pop27), $pop26 return $1 -.LBB0_9: # %if.then14 +.LBB0_9: # %if.then21 + end_block # label1: + call abort@FUNCTION + unreachable +.LBB0_10: # %if.then14 end_block # label0: call abort@FUNCTION unreachable @@ -175,3 +177,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/931004-13.c.s b/test/torture-s/931004-13.c.s index 67431b6c3..414f598f9 100644 --- a/test/torture-s/931004-13.c.s +++ b/test/torture-s/931004-13.c.s @@ -149,3 +149,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/931004-14.c.s b/test/torture-s/931004-14.c.s index 2c942ade5..5bf5614c0 100644 --- a/test/torture-s/931004-14.c.s +++ b/test/torture-s/931004-14.c.s @@ -7,96 +7,98 @@ f: # @f .param i32, i32 .result i32 - .local i32, i32, i32 + .local i32, i32 # BB#0: # %entry - i32.const $push26=, 0 - i32.const $push23=, 0 - i32.load $push24=, __stack_pointer($pop23) - i32.const $push25=, 16 - i32.sub $push30=, $pop24, $pop25 - i32.store $push36=, __stack_pointer($pop26), $pop30 + i32.const $push28=, 0 + i32.const $push25=, 0 + i32.load $push26=, __stack_pointer($pop25) + i32.const $push27=, 16 + i32.sub $push32=, $pop26, $pop27 + i32.store $push38=, __stack_pointer($pop28), $pop32 + tee_local $push37=, $2=, $pop38 + i32.store $push36=, 12($2), $1 tee_local $push35=, $3=, $pop36 - i32.store $push34=, 12($3), $1 - tee_local $push33=, $4=, $pop34 - i32.const $push32=, 4 - i32.add $push2=, $pop33, $pop32 - i32.store $drop=, 12($pop35), $pop2 + i32.const $push34=, 4 + i32.add $push3=, $pop35, $pop34 + i32.store $drop=, 12($pop37), $pop3 block block - i32.const $push31=, 1 - i32.lt_s $push3=, $0, $pop31 - br_if 0, $pop3 # 0: down to label1 + block + i32.const $push33=, 1 + i32.lt_s $push4=, $0, $pop33 + br_if 0, $pop4 # 0: down to label2 # BB#1: # %for.body.preheader - i32.const $push4=, 8 - i32.add $4=, $4, $pop4 - i32.const $1=, 0 + i32.const $push5=, 8 + i32.add $1=, $3, $pop5 + i32.const $3=, 0 .LBB0_2: # %for.body # =>This Inner Loop Header: Depth=1 - loop # label2: + loop # label3: i32.const $push40=, 10 - i32.add $push5=, $1, $pop40 - copy_local $push39=, $4 - tee_local $push38=, $4=, $pop39 - i32.const $push37=, -8 - i32.add $push6=, $pop38, $pop37 - i32.load8_s $push7=, 0($pop6) - i32.ne $push8=, $pop5, $pop7 - br_if 3, $pop8 # 3: down to label0 + i32.add $push6=, $3, $pop40 + i32.const $push39=, -8 + i32.add $push7=, $1, $pop39 + i32.load8_s $push8=, 0($pop7) + i32.ne $push9=, $pop6, $pop8 + br_if 3, $pop9 # 3: down to label1 # BB#3: # %if.end # in Loop: Header=BB0_2 Depth=1 i32.const $push42=, 20 - i32.add $push11=, $1, $pop42 + i32.add $push12=, $3, $pop42 i32.const $push41=, -7 - i32.add $push12=, $4, $pop41 - i32.load8_s $push13=, 0($pop12) - i32.ne $push14=, $pop11, $pop13 - br_if 3, $pop14 # 3: down to label0 + i32.add $push13=, $1, $pop41 + i32.load8_s $push14=, 0($pop13) + i32.ne $push15=, $pop12, $pop14 + br_if 3, $pop15 # 3: down to label1 # BB#4: # %if.end9 # in Loop: Header=BB0_2 Depth=1 i32.const $push44=, 30 - i32.add $push15=, $1, $pop44 + i32.add $push16=, $3, $pop44 i32.const $push43=, -6 - i32.add $push10=, $4, $pop43 - i32.load8_s $push0=, 0($pop10) - i32.ne $push16=, $pop15, $pop0 - br_if 3, $pop16 # 3: down to label0 + i32.add $push11=, $1, $pop43 + i32.load8_s $push1=, 0($pop11) + i32.ne $push17=, $pop16, $pop1 + br_if 3, $pop17 # 3: down to label1 # BB#5: # %if.end15 # in Loop: Header=BB0_2 Depth=1 i32.const $push46=, 40 - i32.add $push17=, $1, $pop46 + i32.add $push18=, $3, $pop46 i32.const $push45=, -5 - i32.add $push9=, $4, $pop45 - i32.load8_s $push1=, 0($pop9) - i32.ne $push18=, $pop17, $pop1 - br_if 3, $pop18 # 3: down to label0 + i32.add $push10=, $1, $pop45 + i32.load8_s $push2=, 0($pop10) + i32.ne $push19=, $pop18, $pop2 + br_if 4, $pop19 # 4: down to label0 # BB#6: # %for.cond # in Loop: Header=BB0_2 Depth=1 - i32.store $push52=, 12($3), $4 - tee_local $push51=, $2=, $pop52 + i32.store $push0=, 12($2), $1 i32.const $push50=, 4 - i32.add $4=, $pop51, $pop50 + i32.add $1=, $pop0, $pop50 i32.const $push49=, 1 - i32.add $push48=, $1, $pop49 - tee_local $push47=, $1=, $pop48 - i32.lt_s $push19=, $pop47, $0 - br_if 0, $pop19 # 0: up to label2 -# BB#7: - end_loop # label3: - i32.const $push53=, -4 - i32.add $1=, $2, $pop53 + i32.add $push48=, $3, $pop49 + tee_local $push47=, $3=, $pop48 + i32.lt_s $push20=, $pop47, $0 + br_if 0, $pop20 # 0: up to label3 +# BB#7: # %for.end.loopexit + end_loop # label4: + i32.const $push21=, -8 + i32.add $1=, $1, $pop21 .LBB0_8: # %for.end - end_block # label1: - i32.load $push20=, 0($1) - i32.const $push21=, 123 - i32.ne $push22=, $pop20, $pop21 - br_if 0, $pop22 # 0: down to label0 + end_block # label2: + i32.load $push22=, 0($1) + i32.const $push23=, 123 + i32.ne $push24=, $pop22, $pop23 + br_if 0, $pop24 # 0: down to label1 # BB#9: # %if.end28 - i32.const $push29=, 0 - i32.const $push27=, 16 - i32.add $push28=, $3, $pop27 - i32.store $drop=, __stack_pointer($pop29), $pop28 + i32.const $push31=, 0 + i32.const $push29=, 16 + i32.add $push30=, $2, $pop29 + i32.store $drop=, __stack_pointer($pop31), $pop30 return $1 -.LBB0_10: # %if.then20 +.LBB0_10: # %if.then27 + end_block # label1: + call abort@FUNCTION + unreachable +.LBB0_11: # %if.then20 end_block # label0: call abort@FUNCTION unreachable @@ -176,3 +178,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/931004-2.c.s b/test/torture-s/931004-2.c.s index 934a5509a..b0f95dce0 100644 --- a/test/torture-s/931004-2.c.s +++ b/test/torture-s/931004-2.c.s @@ -108,3 +108,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/931004-3.c.s b/test/torture-s/931004-3.c.s index 6da6d174e..8335cda07 100644 --- a/test/torture-s/931004-3.c.s +++ b/test/torture-s/931004-3.c.s @@ -56,3 +56,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/931004-4.c.s b/test/torture-s/931004-4.c.s index 88e236d36..081a7a92d 100644 --- a/test/torture-s/931004-4.c.s +++ b/test/torture-s/931004-4.c.s @@ -103,3 +103,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/931004-5.c.s b/test/torture-s/931004-5.c.s index 7e608a898..57cb1f9be 100644 --- a/test/torture-s/931004-5.c.s +++ b/test/torture-s/931004-5.c.s @@ -98,3 +98,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/931004-6.c.s b/test/torture-s/931004-6.c.s index bf3c2e84c..019e0e705 100644 --- a/test/torture-s/931004-6.c.s +++ b/test/torture-s/931004-6.c.s @@ -133,3 +133,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/931004-7.c.s b/test/torture-s/931004-7.c.s index 29864b56a..022521dd1 100644 --- a/test/torture-s/931004-7.c.s +++ b/test/torture-s/931004-7.c.s @@ -56,3 +56,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/931004-8.c.s b/test/torture-s/931004-8.c.s index 7d4b51301..d7b273e18 100644 --- a/test/torture-s/931004-8.c.s +++ b/test/torture-s/931004-8.c.s @@ -103,3 +103,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/931004-9.c.s b/test/torture-s/931004-9.c.s index 5c74aad0f..7cc708c08 100644 --- a/test/torture-s/931004-9.c.s +++ b/test/torture-s/931004-9.c.s @@ -100,3 +100,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/931005-1.c.s b/test/torture-s/931005-1.c.s index 6b8980385..2b55ede22 100644 --- a/test/torture-s/931005-1.c.s +++ b/test/torture-s/931005-1.c.s @@ -30,3 +30,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/931009-1.c.s b/test/torture-s/931009-1.c.s index 32aa9bf6e..d8100bf3e 100644 --- a/test/torture-s/931009-1.c.s +++ b/test/torture-s/931009-1.c.s @@ -30,3 +30,4 @@ f: # @f .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/931012-1.c.s b/test/torture-s/931012-1.c.s index d95a4a161..6eb5a66e0 100644 --- a/test/torture-s/931012-1.c.s +++ b/test/torture-s/931012-1.c.s @@ -34,3 +34,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/931017-1.c.s b/test/torture-s/931017-1.c.s index ae67bf596..dc798ead1 100644 --- a/test/torture-s/931017-1.c.s +++ b/test/torture-s/931017-1.c.s @@ -89,3 +89,5 @@ v: .ident "clang version 3.9.0 " + .functype exit, void, i32 + .functype abort, void diff --git a/test/torture-s/931018-1.c.s b/test/torture-s/931018-1.c.s index 101b551a2..310c7e564 100644 --- a/test/torture-s/931018-1.c.s +++ b/test/torture-s/931018-1.c.s @@ -56,3 +56,5 @@ a: .ident "clang version 3.9.0 " + .functype exit, void, i32 + .functype abort, void diff --git a/test/torture-s/931031-1.c.s b/test/torture-s/931031-1.c.s index 80d82a6f3..5bd4e8201 100644 --- a/test/torture-s/931031-1.c.s +++ b/test/torture-s/931031-1.c.s @@ -37,3 +37,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/931102-1.c.s b/test/torture-s/931102-1.c.s index ad6bd48ac..fcc6672f1 100644 --- a/test/torture-s/931102-1.c.s +++ b/test/torture-s/931102-1.c.s @@ -55,3 +55,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/931102-2.c.s b/test/torture-s/931102-2.c.s index 0d71f29e7..975273257 100644 --- a/test/torture-s/931102-2.c.s +++ b/test/torture-s/931102-2.c.s @@ -55,3 +55,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/931110-1.c.s b/test/torture-s/931110-1.c.s index 361d50638..446fb484b 100644 --- a/test/torture-s/931110-1.c.s +++ b/test/torture-s/931110-1.c.s @@ -85,3 +85,4 @@ x: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/931110-2.c.s b/test/torture-s/931110-2.c.s index 290b03e63..20ed66bbc 100644 --- a/test/torture-s/931110-2.c.s +++ b/test/torture-s/931110-2.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/931208-1.c.s b/test/torture-s/931208-1.c.s index 1303fc642..ee24ff9f6 100644 --- a/test/torture-s/931208-1.c.s +++ b/test/torture-s/931208-1.c.s @@ -29,3 +29,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/931228-1.c.s b/test/torture-s/931228-1.c.s index 67bec2472..91065ed2d 100644 --- a/test/torture-s/931228-1.c.s +++ b/test/torture-s/931228-1.c.s @@ -30,3 +30,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/940115-1.c.s b/test/torture-s/940115-1.c.s index af37d5bbc..7a84ceec6 100644 --- a/test/torture-s/940115-1.c.s +++ b/test/torture-s/940115-1.c.s @@ -30,3 +30,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/940122-1.c.s b/test/torture-s/940122-1.c.s index 4778227ff..93b9be94d 100644 --- a/test/torture-s/940122-1.c.s +++ b/test/torture-s/940122-1.c.s @@ -96,3 +96,5 @@ b: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/941014-1.c.s b/test/torture-s/941014-1.c.s index 4c20be5cc..ebbdc97a4 100644 --- a/test/torture-s/941014-1.c.s +++ b/test/torture-s/941014-1.c.s @@ -31,3 +31,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/941014-2.c.s b/test/torture-s/941014-2.c.s index 3264b4808..4c87efb7f 100644 --- a/test/torture-s/941014-2.c.s +++ b/test/torture-s/941014-2.c.s @@ -108,3 +108,7 @@ main: # @main .ident "clang version 3.9.0 " + .functype malloc, i32, i32 + .functype printf, i32, i32 + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/941015-1.c.s b/test/torture-s/941015-1.c.s index bae1a3f66..7bb9baf45 100644 --- a/test/torture-s/941015-1.c.s +++ b/test/torture-s/941015-1.c.s @@ -52,3 +52,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/941021-1.c.s b/test/torture-s/941021-1.c.s index 242baa4a2..ecc6639e1 100644 --- a/test/torture-s/941021-1.c.s +++ b/test/torture-s/941021-1.c.s @@ -45,3 +45,4 @@ glob_dbl: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/941025-1.c.s b/test/torture-s/941025-1.c.s index fec8bc797..890f340de 100644 --- a/test/torture-s/941025-1.c.s +++ b/test/torture-s/941025-1.c.s @@ -34,3 +34,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/941031-1.c.s b/test/torture-s/941031-1.c.s index e4dd9ee8c..e6c001b59 100644 --- a/test/torture-s/941031-1.c.s +++ b/test/torture-s/941031-1.c.s @@ -35,3 +35,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/941101-1.c.s b/test/torture-s/941101-1.c.s index 578fb6607..9e515feb4 100644 --- a/test/torture-s/941101-1.c.s +++ b/test/torture-s/941101-1.c.s @@ -29,3 +29,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/941110-1.c.s b/test/torture-s/941110-1.c.s index e955fefbe..4d491dab5 100644 --- a/test/torture-s/941110-1.c.s +++ b/test/torture-s/941110-1.c.s @@ -30,3 +30,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/941202-1.c.s b/test/torture-s/941202-1.c.s index cfcd23f81..92c5a57de 100644 --- a/test/torture-s/941202-1.c.s +++ b/test/torture-s/941202-1.c.s @@ -38,3 +38,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/950221-1.c.s b/test/torture-s/950221-1.c.s index 469a20ccb..8796c7811 100644 --- a/test/torture-s/950221-1.c.s +++ b/test/torture-s/950221-1.c.s @@ -125,3 +125,5 @@ filler: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/950322-1.c.s b/test/torture-s/950322-1.c.s index f92c64abe..ea8f2fa94 100644 --- a/test/torture-s/950322-1.c.s +++ b/test/torture-s/950322-1.c.s @@ -42,3 +42,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/950426-1.c.s b/test/torture-s/950426-1.c.s index 3456c94ab..9e0314eb1 100644 --- a/test/torture-s/950426-1.c.s +++ b/test/torture-s/950426-1.c.s @@ -90,3 +90,4 @@ i: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/950426-2.c.s b/test/torture-s/950426-2.c.s index 88df676d4..4aa6867a2 100644 --- a/test/torture-s/950426-2.c.s +++ b/test/torture-s/950426-2.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/950503-1.c.s b/test/torture-s/950503-1.c.s index efaf33ca2..0b38ff0fd 100644 --- a/test/torture-s/950503-1.c.s +++ b/test/torture-s/950503-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/950511-1.c.s b/test/torture-s/950511-1.c.s index 59e99c863..080715dd1 100644 --- a/test/torture-s/950511-1.c.s +++ b/test/torture-s/950511-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/950512-1.c.s b/test/torture-s/950512-1.c.s index 9f0a1b006..c4e32cd7c 100644 --- a/test/torture-s/950512-1.c.s +++ b/test/torture-s/950512-1.c.s @@ -48,3 +48,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/950605-1.c.s b/test/torture-s/950605-1.c.s index 68e38806e..1694d7fbb 100644 --- a/test/torture-s/950605-1.c.s +++ b/test/torture-s/950605-1.c.s @@ -40,3 +40,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/950607-1.c.s b/test/torture-s/950607-1.c.s index 38e76bf3c..486957e60 100644 --- a/test/torture-s/950607-1.c.s +++ b/test/torture-s/950607-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/950607-2.c.s b/test/torture-s/950607-2.c.s index 249d8b60d..baf078687 100644 --- a/test/torture-s/950607-2.c.s +++ b/test/torture-s/950607-2.c.s @@ -59,3 +59,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/950612-1.c.s b/test/torture-s/950612-1.c.s index a695c18e4..7e04531c9 100644 --- a/test/torture-s/950612-1.c.s +++ b/test/torture-s/950612-1.c.s @@ -92,3 +92,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/950621-1.c.s b/test/torture-s/950621-1.c.s index 7e45de479..edd5863d1 100644 --- a/test/torture-s/950621-1.c.s +++ b/test/torture-s/950621-1.c.s @@ -46,3 +46,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/950628-1.c.s b/test/torture-s/950628-1.c.s index 2af8fd79e..3f91b4624 100644 --- a/test/torture-s/950628-1.c.s +++ b/test/torture-s/950628-1.c.s @@ -52,3 +52,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/950704-1.c.s b/test/torture-s/950704-1.c.s index e1c6c6de9..b4512b6b6 100644 --- a/test/torture-s/950704-1.c.s +++ b/test/torture-s/950704-1.c.s @@ -78,3 +78,4 @@ errflag: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/950706-1.c.s b/test/torture-s/950706-1.c.s index 9157ef74d..ae9edf58a 100644 --- a/test/torture-s/950706-1.c.s +++ b/test/torture-s/950706-1.c.s @@ -34,3 +34,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/950710-1.c.s b/test/torture-s/950710-1.c.s index 44ef2ebf0..83ff5ad01 100644 --- a/test/torture-s/950710-1.c.s +++ b/test/torture-s/950710-1.c.s @@ -54,3 +54,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 + .functype abort, void diff --git a/test/torture-s/950714-1.c.s b/test/torture-s/950714-1.c.s index 5a0c3e5f6..3b46ec531 100644 --- a/test/torture-s/950714-1.c.s +++ b/test/torture-s/950714-1.c.s @@ -111,3 +111,5 @@ array: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/950809-1.c.s b/test/torture-s/950809-1.c.s index 4f957d8e3..b79a2f156 100644 --- a/test/torture-s/950809-1.c.s +++ b/test/torture-s/950809-1.c.s @@ -73,3 +73,5 @@ main.sc: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/950906-1.c.s b/test/torture-s/950906-1.c.s index ba4a5c709..65c3fe9af 100644 --- a/test/torture-s/950906-1.c.s +++ b/test/torture-s/950906-1.c.s @@ -46,3 +46,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/950915-1.c.s b/test/torture-s/950915-1.c.s index 97312f4c5..7067a6ef7 100644 --- a/test/torture-s/950915-1.c.s +++ b/test/torture-s/950915-1.c.s @@ -71,3 +71,5 @@ b: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/950929-1.c.s b/test/torture-s/950929-1.c.s index 2aafb1257..817bf659b 100644 --- a/test/torture-s/950929-1.c.s +++ b/test/torture-s/950929-1.c.s @@ -31,3 +31,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/951003-1.c.s b/test/torture-s/951003-1.c.s index f41309c4d..2d92461b7 100644 --- a/test/torture-s/951003-1.c.s +++ b/test/torture-s/951003-1.c.s @@ -43,3 +43,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/951115-1.c.s b/test/torture-s/951115-1.c.s index 7a6e05ea1..90ae37999 100644 --- a/test/torture-s/951115-1.c.s +++ b/test/torture-s/951115-1.c.s @@ -62,3 +62,4 @@ var: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/951204-1.c.s b/test/torture-s/951204-1.c.s index 0b809cbdf..00e644358 100644 --- a/test/torture-s/951204-1.c.s +++ b/test/torture-s/951204-1.c.s @@ -32,3 +32,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/960116-1.c.s b/test/torture-s/960116-1.c.s index 649059883..3215f9242 100644 --- a/test/torture-s/960116-1.c.s +++ b/test/torture-s/960116-1.c.s @@ -45,3 +45,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/960117-1.c.s b/test/torture-s/960117-1.c.s index 3f67d622c..29dc03691 100644 --- a/test/torture-s/960117-1.c.s +++ b/test/torture-s/960117-1.c.s @@ -66,3 +66,4 @@ curval: .lcomm id_space,66,4 .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/960209-1.c.s b/test/torture-s/960209-1.c.s index 23dd7f8ce..a2eb879e7 100644 --- a/test/torture-s/960209-1.c.s +++ b/test/torture-s/960209-1.c.s @@ -82,3 +82,4 @@ a_ptr: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/960215-1.c.s b/test/torture-s/960215-1.c.s index ab904a8c5..8f060afd5 100644 --- a/test/torture-s/960215-1.c.s +++ b/test/torture-s/960215-1.c.s @@ -377,3 +377,5 @@ S: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/960218-1.c.s b/test/torture-s/960218-1.c.s index de0bf8451..431feef76 100644 --- a/test/torture-s/960218-1.c.s +++ b/test/torture-s/960218-1.c.s @@ -69,3 +69,4 @@ glob: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/960219-1.c.s b/test/torture-s/960219-1.c.s index 6165d7427..e684bb4d2 100644 --- a/test/torture-s/960219-1.c.s +++ b/test/torture-s/960219-1.c.s @@ -36,3 +36,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/960301-1.c.s b/test/torture-s/960301-1.c.s index 1bebb0f01..d74ada6d9 100644 --- a/test/torture-s/960301-1.c.s +++ b/test/torture-s/960301-1.c.s @@ -79,3 +79,4 @@ oldfoo: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/960302-1.c.s b/test/torture-s/960302-1.c.s index e4f0f8c00..4d633e02f 100644 --- a/test/torture-s/960302-1.c.s +++ b/test/torture-s/960302-1.c.s @@ -63,3 +63,5 @@ a: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/960311-1.c.s b/test/torture-s/960311-1.c.s index df6e58777..7e94d8a5e 100644 --- a/test/torture-s/960311-1.c.s +++ b/test/torture-s/960311-1.c.s @@ -99,3 +99,4 @@ count: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/960311-2.c.s b/test/torture-s/960311-2.c.s index b392c8b8e..a7857df1e 100644 --- a/test/torture-s/960311-2.c.s +++ b/test/torture-s/960311-2.c.s @@ -99,3 +99,4 @@ count: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/960311-3.c.s b/test/torture-s/960311-3.c.s index 3eaa11385..ee3307de7 100644 --- a/test/torture-s/960311-3.c.s +++ b/test/torture-s/960311-3.c.s @@ -98,3 +98,4 @@ count: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/960312-1.c.s b/test/torture-s/960312-1.c.s index 19fc0e4ea..2ad75e0ce 100644 --- a/test/torture-s/960312-1.c.s +++ b/test/torture-s/960312-1.c.s @@ -81,3 +81,5 @@ main.sc: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/960317-1.c.s b/test/torture-s/960317-1.c.s index 867c6b1df..7f72f389d 100644 --- a/test/torture-s/960317-1.c.s +++ b/test/torture-s/960317-1.c.s @@ -48,3 +48,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/960321-1.c.s b/test/torture-s/960321-1.c.s index eb8875315..42038c16d 100644 --- a/test/torture-s/960321-1.c.s +++ b/test/torture-s/960321-1.c.s @@ -51,3 +51,5 @@ a: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/960326-1.c.s b/test/torture-s/960326-1.c.s index b1ad151ff..5d8892fb3 100644 --- a/test/torture-s/960326-1.c.s +++ b/test/torture-s/960326-1.c.s @@ -42,3 +42,5 @@ s: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/960327-1.c.s b/test/torture-s/960327-1.c.s index 6d29f1022..1028fa224 100644 --- a/test/torture-s/960327-1.c.s +++ b/test/torture-s/960327-1.c.s @@ -103,3 +103,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/960402-1.c.s b/test/torture-s/960402-1.c.s index 3f6e464e2..0941b88b4 100644 --- a/test/torture-s/960402-1.c.s +++ b/test/torture-s/960402-1.c.s @@ -33,3 +33,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/960405-1.c.s b/test/torture-s/960405-1.c.s index 34cab8d60..a21c153e9 100644 --- a/test/torture-s/960405-1.c.s +++ b/test/torture-s/960405-1.c.s @@ -53,3 +53,5 @@ y: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/960416-1.c.s b/test/torture-s/960416-1.c.s index b30c696da..e56b405cb 100644 --- a/test/torture-s/960416-1.c.s +++ b/test/torture-s/960416-1.c.s @@ -156,3 +156,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/960419-1.c.s b/test/torture-s/960419-1.c.s index aa988a770..67369a00e 100644 --- a/test/torture-s/960419-1.c.s +++ b/test/torture-s/960419-1.c.s @@ -36,3 +36,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/960419-2.c.s b/test/torture-s/960419-2.c.s index f9e37ca60..78442c757 100644 --- a/test/torture-s/960419-2.c.s +++ b/test/torture-s/960419-2.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/960512-1.c.s b/test/torture-s/960512-1.c.s index 75a506c28..06873e73d 100644 --- a/test/torture-s/960512-1.c.s +++ b/test/torture-s/960512-1.c.s @@ -33,3 +33,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/960513-1.c.s b/test/torture-s/960513-1.c.s index adfe1131a..63b526723 100644 --- a/test/torture-s/960513-1.c.s +++ b/test/torture-s/960513-1.c.s @@ -167,3 +167,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/960521-1.c.s b/test/torture-s/960521-1.c.s index aaea0ad3b..12b85b863 100644 --- a/test/torture-s/960521-1.c.s +++ b/test/torture-s/960521-1.c.s @@ -134,3 +134,6 @@ b: .ident "clang version 3.9.0 " + .functype malloc, i32, i32 + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/960608-1.c.s b/test/torture-s/960608-1.c.s index 4663c074c..f39aac53a 100644 --- a/test/torture-s/960608-1.c.s +++ b/test/torture-s/960608-1.c.s @@ -32,3 +32,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/960801-1.c.s b/test/torture-s/960801-1.c.s index 18fe04ff2..03eb39d10 100644 --- a/test/torture-s/960801-1.c.s +++ b/test/torture-s/960801-1.c.s @@ -42,3 +42,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/960802-1.c.s b/test/torture-s/960802-1.c.s index 3ab33f550..486bcc9b7 100644 --- a/test/torture-s/960802-1.c.s +++ b/test/torture-s/960802-1.c.s @@ -82,3 +82,4 @@ val: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/960830-1.c.s b/test/torture-s/960830-1.c.s index f73dc6438..6b62fbf5f 100644 --- a/test/torture-s/960830-1.c.s +++ b/test/torture-s/960830-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/960909-1.c.s b/test/torture-s/960909-1.c.s index 6296855c1..9a78328ca 100644 --- a/test/torture-s/960909-1.c.s +++ b/test/torture-s/960909-1.c.s @@ -78,3 +78,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/961004-1.c.s b/test/torture-s/961004-1.c.s index b3d4d1c23..e11248094 100644 --- a/test/torture-s/961004-1.c.s +++ b/test/torture-s/961004-1.c.s @@ -35,3 +35,4 @@ k: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/961017-1.c.s b/test/torture-s/961017-1.c.s index 14791c9c2..335502007 100644 --- a/test/torture-s/961017-1.c.s +++ b/test/torture-s/961017-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/961017-2.c.s b/test/torture-s/961017-2.c.s index e78263663..23d0c8ac1 100644 --- a/test/torture-s/961017-2.c.s +++ b/test/torture-s/961017-2.c.s @@ -27,3 +27,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/961026-1.c.s b/test/torture-s/961026-1.c.s index c7165c1ce..7594c26d1 100644 --- a/test/torture-s/961026-1.c.s +++ b/test/torture-s/961026-1.c.s @@ -31,3 +31,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/961112-1.c.s b/test/torture-s/961112-1.c.s index 838677e41..7f7f7e778 100644 --- a/test/torture-s/961112-1.c.s +++ b/test/torture-s/961112-1.c.s @@ -30,3 +30,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/961122-1.c.s b/test/torture-s/961122-1.c.s index ff50a2d22..bea67bf2f 100644 --- a/test/torture-s/961122-1.c.s +++ b/test/torture-s/961122-1.c.s @@ -72,3 +72,4 @@ acc: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/961122-2.c.s b/test/torture-s/961122-2.c.s index 619c97c1e..edd6b7a03 100644 --- a/test/torture-s/961122-2.c.s +++ b/test/torture-s/961122-2.c.s @@ -30,3 +30,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/961125-1.c.s b/test/torture-s/961125-1.c.s index a0e1a2e78..e3e561bbc 100644 --- a/test/torture-s/961125-1.c.s +++ b/test/torture-s/961125-1.c.s @@ -82,3 +82,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/961206-1.c.s b/test/torture-s/961206-1.c.s index ba156e93c..8cc10b793 100644 --- a/test/torture-s/961206-1.c.s +++ b/test/torture-s/961206-1.c.s @@ -76,3 +76,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/961213-1.c.s b/test/torture-s/961213-1.c.s index 810e7502c..b9dda6976 100644 --- a/test/torture-s/961213-1.c.s +++ b/test/torture-s/961213-1.c.s @@ -59,3 +59,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/961223-1.c.s b/test/torture-s/961223-1.c.s index d65e74f92..cb322baab 100644 --- a/test/torture-s/961223-1.c.s +++ b/test/torture-s/961223-1.c.s @@ -31,3 +31,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/970214-1.c.s b/test/torture-s/970214-1.c.s index ad543eebd..e9247a384 100644 --- a/test/torture-s/970214-1.c.s +++ b/test/torture-s/970214-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/970214-2.c.s b/test/torture-s/970214-2.c.s index eaadc76d0..5e20d403d 100644 --- a/test/torture-s/970214-2.c.s +++ b/test/torture-s/970214-2.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/970217-1.c.s b/test/torture-s/970217-1.c.s index 0901f6022..636e7617d 100644 --- a/test/torture-s/970217-1.c.s +++ b/test/torture-s/970217-1.c.s @@ -31,3 +31,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/970923-1.c.s b/test/torture-s/970923-1.c.s index 02e66da80..c944c65b4 100644 --- a/test/torture-s/970923-1.c.s +++ b/test/torture-s/970923-1.c.s @@ -44,3 +44,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/980205.c.s b/test/torture-s/980205.c.s index 15f243e2b..9a3bfba67 100644 --- a/test/torture-s/980205.c.s +++ b/test/torture-s/980205.c.s @@ -75,3 +75,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/980223.c.s b/test/torture-s/980223.c.s index a5d21c43d..760060bd9 100644 --- a/test/torture-s/980223.c.s +++ b/test/torture-s/980223.c.s @@ -167,3 +167,4 @@ cons2: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/980424-1.c.s b/test/torture-s/980424-1.c.s index 99054f5b0..159b16efd 100644 --- a/test/torture-s/980424-1.c.s +++ b/test/torture-s/980424-1.c.s @@ -89,3 +89,5 @@ a: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/980505-1.c.s b/test/torture-s/980505-1.c.s index e1607a95c..04d7a97c2 100644 --- a/test/torture-s/980505-1.c.s +++ b/test/torture-s/980505-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/980505-2.c.s b/test/torture-s/980505-2.c.s index c99925c9d..1676fc946 100644 --- a/test/torture-s/980505-2.c.s +++ b/test/torture-s/980505-2.c.s @@ -29,3 +29,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/980506-1.c.s b/test/torture-s/980506-1.c.s index 46f61d0f0..d3f6972bb 100644 --- a/test/torture-s/980506-1.c.s +++ b/test/torture-s/980506-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/980506-2.c.s b/test/torture-s/980506-2.c.s index cbc365317..1a5bde767 100644 --- a/test/torture-s/980506-2.c.s +++ b/test/torture-s/980506-2.c.s @@ -29,3 +29,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/980506-3.c.s b/test/torture-s/980506-3.c.s index 45eb7b0fc..f7dacfd1d 100644 --- a/test/torture-s/980506-3.c.s +++ b/test/torture-s/980506-3.c.s @@ -30,3 +30,4 @@ lookup_table: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/980526-2.c.s b/test/torture-s/980526-2.c.s index d02b66858..3a8bd9314 100644 --- a/test/torture-s/980526-2.c.s +++ b/test/torture-s/980526-2.c.s @@ -125,3 +125,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 + .functype abort, void diff --git a/test/torture-s/980526-3.c.s b/test/torture-s/980526-3.c.s index f2718641a..67d4037a8 100644 --- a/test/torture-s/980526-3.c.s +++ b/test/torture-s/980526-3.c.s @@ -30,3 +30,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/980602-1.c.s b/test/torture-s/980602-1.c.s index cd4152eed..b208527c7 100644 --- a/test/torture-s/980602-1.c.s +++ b/test/torture-s/980602-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/980602-2.c.s b/test/torture-s/980602-2.c.s index cc3097035..93fb73df7 100644 --- a/test/torture-s/980602-2.c.s +++ b/test/torture-s/980602-2.c.s @@ -47,3 +47,5 @@ t: .ident "clang version 3.9.0 " + .functype exit, void, i32 + .functype abort, void diff --git a/test/torture-s/980604-1.c.s b/test/torture-s/980604-1.c.s index 8d038a1d9..cb6fc441e 100644 --- a/test/torture-s/980604-1.c.s +++ b/test/torture-s/980604-1.c.s @@ -68,3 +68,5 @@ d: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/980605-1.c.s b/test/torture-s/980605-1.c.s index 427e5d13e..3c2d830ef 100644 --- a/test/torture-s/980605-1.c.s +++ b/test/torture-s/980605-1.c.s @@ -136,3 +136,6 @@ buf: .ident "clang version 3.9.0 " + .functype sprintf, i32, i32, i32 + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/980608-1.c.s b/test/torture-s/980608-1.c.s index e63a370ff..9a2294f83 100644 --- a/test/torture-s/980608-1.c.s +++ b/test/torture-s/980608-1.c.s @@ -124,3 +124,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/980612-1.c.s b/test/torture-s/980612-1.c.s index 4e916c082..c788f3030 100644 --- a/test/torture-s/980612-1.c.s +++ b/test/torture-s/980612-1.c.s @@ -67,3 +67,5 @@ f: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/980617-1.c.s b/test/torture-s/980617-1.c.s index 7ba27be6b..9cc46569c 100644 --- a/test/torture-s/980617-1.c.s +++ b/test/torture-s/980617-1.c.s @@ -53,3 +53,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/980618-1.c.s b/test/torture-s/980618-1.c.s index 30e626528..7864ebe9e 100644 --- a/test/torture-s/980618-1.c.s +++ b/test/torture-s/980618-1.c.s @@ -36,3 +36,5 @@ func: # @func .ident "clang version 3.9.0 " + .functype exit, void, i32 + .functype abort, void diff --git a/test/torture-s/980701-1.c.s b/test/torture-s/980701-1.c.s index d33aa9a3d..34807df2d 100644 --- a/test/torture-s/980701-1.c.s +++ b/test/torture-s/980701-1.c.s @@ -62,3 +62,5 @@ a: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/980707-1.c.s b/test/torture-s/980707-1.c.s index eedd4c0f6..e56e24a15 100644 --- a/test/torture-s/980707-1.c.s +++ b/test/torture-s/980707-1.c.s @@ -204,3 +204,6 @@ main: # @main .ident "clang version 3.9.0 " + .functype strcmp, i32, i32, i32 + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/980709-1.c.s b/test/torture-s/980709-1.c.s new file mode 100644 index 000000000..77315d05c --- /dev/null +++ b/test/torture-s/980709-1.c.s @@ -0,0 +1,57 @@ + .text + .file "/b/build/slave/linux/build/src/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/980709-1.c" + .section .text.main,"ax",@progbits + .hidden main + .globl main + .type main,@function +main: # @main + .result i32 + .local i32, f64, f64 +# BB#0: # %entry + i32.const $push15=, 0 + i32.const $push12=, 0 + i32.load $push13=, __stack_pointer($pop12) + i32.const $push14=, 16 + i32.sub $push16=, $pop13, $pop14 + i32.store $push23=, __stack_pointer($pop15), $pop16 + tee_local $push22=, $0=, $pop23 + i64.const $push0=, 4629700416936869888 + i64.store $drop=, 8($pop22), $pop0 + block + f64.load $push2=, 8($0) + f64.const $push1=, 0x1.5555555555555p-2 + f64.call $push21=, pow@FUNCTION, $pop2, $pop1 + tee_local $push20=, $1=, $pop21 + f64.const $push3=, 0x1.999999999999ap-4 + f64.add $push19=, $pop20, $pop3 + tee_local $push18=, $2=, $pop19 + f64.const $push17=, 0x1.965fe974a3401p1 + f64.le $push4=, $pop18, $pop17 + f64.ne $push5=, $2, $2 + i32.or $push6=, $pop4, $pop5 + br_if 0, $pop6 # 0: down to label0 +# BB#1: # %entry + f64.const $push7=, -0x1.999999999999ap-4 + f64.add $push26=, $1, $pop7 + tee_local $push25=, $2=, $pop26 + f64.const $push24=, 0x1.965fe974a3401p1 + f64.ge $push8=, $pop25, $pop24 + f64.ne $push9=, $2, $2 + i32.or $push10=, $pop8, $pop9 + br_if 0, $pop10 # 0: down to label0 +# BB#2: # %if.then + i32.const $push11=, 0 + call exit@FUNCTION, $pop11 + unreachable +.LBB0_3: # %if.else + end_block # label0: + call abort@FUNCTION + unreachable + .endfunc +.Lfunc_end0: + .size main, .Lfunc_end0-main + + + .ident "clang version 3.9.0 " + .functype exit, void, i32 + .functype abort, void diff --git a/test/torture-s/980716-1.c.s b/test/torture-s/980716-1.c.s index 67e0e9bb7..dbb75a36e 100644 --- a/test/torture-s/980716-1.c.s +++ b/test/torture-s/980716-1.c.s @@ -92,3 +92,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/980929-1.c.s b/test/torture-s/980929-1.c.s index 5583199a6..900aeeab7 100644 --- a/test/torture-s/980929-1.c.s +++ b/test/torture-s/980929-1.c.s @@ -37,3 +37,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/981001-1.c.s b/test/torture-s/981001-1.c.s index 426d2e5e4..e5ba23c1f 100644 --- a/test/torture-s/981001-1.c.s +++ b/test/torture-s/981001-1.c.s @@ -99,3 +99,5 @@ flg: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/981019-1.c.s b/test/torture-s/981019-1.c.s index 928a72452..7d5b9f1ff 100644 --- a/test/torture-s/981019-1.c.s +++ b/test/torture-s/981019-1.c.s @@ -124,3 +124,4 @@ main: # @main .lcomm f3.x,4,2 .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/981130-1.c.s b/test/torture-s/981130-1.c.s index 2b1a970d3..285d60e53 100644 --- a/test/torture-s/981130-1.c.s +++ b/test/torture-s/981130-1.c.s @@ -62,3 +62,5 @@ s1: .ident "clang version 3.9.0 " + .functype exit, void, i32 + .functype abort, void diff --git a/test/torture-s/981206-1.c.s b/test/torture-s/981206-1.c.s index e7253d3ab..f3c378091 100644 --- a/test/torture-s/981206-1.c.s +++ b/test/torture-s/981206-1.c.s @@ -41,3 +41,4 @@ main: # @main .lcomm y,1,1 .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/990106-1.c.s b/test/torture-s/990106-1.c.s index 591edfe3f..69c88dcb9 100644 --- a/test/torture-s/990106-1.c.s +++ b/test/torture-s/990106-1.c.s @@ -31,3 +31,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/990106-2.c.s b/test/torture-s/990106-2.c.s index 430ca1426..22986ca20 100644 --- a/test/torture-s/990106-2.c.s +++ b/test/torture-s/990106-2.c.s @@ -40,3 +40,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/990127-1.c.s b/test/torture-s/990127-1.c.s index 162fa85ca..6959d1e44 100644 --- a/test/torture-s/990127-1.c.s +++ b/test/torture-s/990127-1.c.s @@ -8,7 +8,7 @@ main: # @main .result i32 .local i32, i32, i32, i32 # BB#0: # %while.end - i32.const $2=, 10 + i32.const $1=, 10 i32.const $push30=, 0 i32.const $push27=, 0 i32.load $push28=, __stack_pointer($pop27) @@ -24,239 +24,237 @@ main: # @main i32.store $drop=, 8($0), $pop1 i32.const $push2=, 9 i32.store $drop=, 12($0), $pop2 - i32.const $1=, 18 + i32.const $3=, 21 .LBB0_1: # %while.body.1 # =>This Inner Loop Header: Depth=1 loop # label0: - copy_local $3=, $1 + copy_local $2=, $3 i32.const $push67=, 4 - i32.lt_s $push3=, $2, $pop67 + i32.lt_s $push3=, $1, $pop67 br_if 1, $pop3 # 1: down to label1 # BB#2: # %while.body.1.while.cond.1_crit_edge # in Loop: Header=BB0_1 Depth=1 i32.load $push71=, 8($0) - tee_local $push70=, $2=, $pop71 + tee_local $push70=, $1=, $pop71 i32.const $push69=, -1 i32.add $push4=, $pop70, $pop69 i32.store $drop=, 8($0), $pop4 i32.const $push68=, 1 - i32.add $1=, $3, $pop68 - br_if 0, $2 # 0: up to label0 + i32.add $3=, $2, $pop68 + br_if 0, $1 # 0: up to label0 .LBB0_3: # %while.end.1 end_loop # label1: - i32.const $push72=, 3 - i32.add $3=, $3, $pop72 i32.const $push31=, 12 i32.add $push32=, $0, $pop31 - copy_local $2=, $pop32 + copy_local $1=, $pop32 .LBB0_4: # %while.cond.2 # =>This Inner Loop Header: Depth=1 loop # label2: - i32.load $push75=, 0($2) - tee_local $push74=, $1=, $pop75 - i32.const $push73=, -1 - i32.add $push5=, $pop74, $pop73 - i32.store $drop=, 0($2), $pop5 - i32.eqz $push120=, $1 - br_if 1, $pop120 # 1: down to label3 + i32.load $push74=, 0($1) + tee_local $push73=, $3=, $pop74 + i32.const $push72=, -1 + i32.add $push5=, $pop73, $pop72 + i32.store $drop=, 0($1), $pop5 + i32.eqz $push119=, $3 + br_if 1, $pop119 # 1: down to label3 # BB#5: # %while.body.2 # in Loop: Header=BB0_4 Depth=1 - i32.const $push77=, 1 - i32.add $3=, $3, $pop77 + i32.const $push76=, 1 + i32.add $2=, $2, $pop76 i32.const $push61=, 8 i32.add $push62=, $0, $pop61 - copy_local $2=, $pop62 - i32.const $push76=, 3 - i32.gt_s $push6=, $1, $pop76 + copy_local $1=, $pop62 + i32.const $push75=, 3 + i32.gt_s $push6=, $3, $pop75 br_if 0, $pop6 # 0: up to label2 .LBB0_6: # %while.end.2 end_loop # label3: - i32.const $push78=, 1 - i32.add $3=, $3, $pop78 + i32.const $push77=, 1 + i32.add $3=, $2, $pop77 i32.const $push33=, 12 i32.add $push34=, $0, $pop33 copy_local $2=, $pop34 .LBB0_7: # %while.cond.3 # =>This Inner Loop Header: Depth=1 loop # label4: - i32.load $push81=, 0($2) - tee_local $push80=, $1=, $pop81 - i32.const $push79=, -1 - i32.add $push7=, $pop80, $pop79 + i32.load $push80=, 0($2) + tee_local $push79=, $1=, $pop80 + i32.const $push78=, -1 + i32.add $push7=, $pop79, $pop78 i32.store $drop=, 0($2), $pop7 - i32.eqz $push121=, $1 - br_if 1, $pop121 # 1: down to label5 + i32.eqz $push120=, $1 + br_if 1, $pop120 # 1: down to label5 # BB#8: # %while.body.3 # in Loop: Header=BB0_7 Depth=1 - i32.const $push83=, 1 - i32.add $3=, $3, $pop83 + i32.const $push82=, 1 + i32.add $3=, $3, $pop82 i32.const $push59=, 8 i32.add $push60=, $0, $pop59 copy_local $2=, $pop60 - i32.const $push82=, 3 - i32.gt_s $push8=, $1, $pop82 + i32.const $push81=, 3 + i32.gt_s $push8=, $1, $pop81 br_if 0, $pop8 # 0: up to label4 .LBB0_9: # %while.end.3 end_loop # label5: - i32.const $push84=, 1 - i32.add $3=, $3, $pop84 + i32.const $push83=, 1 + i32.add $3=, $3, $pop83 i32.const $push35=, 12 i32.add $push36=, $0, $pop35 copy_local $2=, $pop36 .LBB0_10: # %while.cond.4 # =>This Inner Loop Header: Depth=1 loop # label6: - i32.load $push87=, 0($2) - tee_local $push86=, $1=, $pop87 - i32.const $push85=, -1 - i32.add $push9=, $pop86, $pop85 + i32.load $push86=, 0($2) + tee_local $push85=, $1=, $pop86 + i32.const $push84=, -1 + i32.add $push9=, $pop85, $pop84 i32.store $drop=, 0($2), $pop9 - i32.eqz $push122=, $1 - br_if 1, $pop122 # 1: down to label7 + i32.eqz $push121=, $1 + br_if 1, $pop121 # 1: down to label7 # BB#11: # %while.body.4 # in Loop: Header=BB0_10 Depth=1 - i32.const $push89=, 1 - i32.add $3=, $3, $pop89 + i32.const $push88=, 1 + i32.add $3=, $3, $pop88 i32.const $push57=, 8 i32.add $push58=, $0, $pop57 copy_local $2=, $pop58 - i32.const $push88=, 3 - i32.gt_s $push10=, $1, $pop88 + i32.const $push87=, 3 + i32.gt_s $push10=, $1, $pop87 br_if 0, $pop10 # 0: up to label6 .LBB0_12: # %while.end.4 end_loop # label7: - i32.const $push90=, 1 - i32.add $3=, $3, $pop90 + i32.const $push89=, 1 + i32.add $3=, $3, $pop89 i32.const $push37=, 12 i32.add $push38=, $0, $pop37 copy_local $2=, $pop38 .LBB0_13: # %while.cond.5 # =>This Inner Loop Header: Depth=1 loop # label8: - i32.load $push93=, 0($2) - tee_local $push92=, $1=, $pop93 - i32.const $push91=, -1 - i32.add $push11=, $pop92, $pop91 + i32.load $push92=, 0($2) + tee_local $push91=, $1=, $pop92 + i32.const $push90=, -1 + i32.add $push11=, $pop91, $pop90 i32.store $drop=, 0($2), $pop11 - i32.eqz $push123=, $1 - br_if 1, $pop123 # 1: down to label9 + i32.eqz $push122=, $1 + br_if 1, $pop122 # 1: down to label9 # BB#14: # %while.body.5 # in Loop: Header=BB0_13 Depth=1 - i32.const $push95=, 1 - i32.add $3=, $3, $pop95 + i32.const $push94=, 1 + i32.add $3=, $3, $pop94 i32.const $push55=, 8 i32.add $push56=, $0, $pop55 copy_local $2=, $pop56 - i32.const $push94=, 3 - i32.gt_s $push12=, $1, $pop94 + i32.const $push93=, 3 + i32.gt_s $push12=, $1, $pop93 br_if 0, $pop12 # 0: up to label8 .LBB0_15: # %while.end.5 end_loop # label9: - i32.const $push96=, 1 - i32.add $3=, $3, $pop96 + i32.const $push95=, 1 + i32.add $3=, $3, $pop95 i32.const $push39=, 12 i32.add $push40=, $0, $pop39 copy_local $2=, $pop40 .LBB0_16: # %while.cond.6 # =>This Inner Loop Header: Depth=1 loop # label10: - i32.load $push99=, 0($2) - tee_local $push98=, $1=, $pop99 - i32.const $push97=, -1 - i32.add $push13=, $pop98, $pop97 + i32.load $push98=, 0($2) + tee_local $push97=, $1=, $pop98 + i32.const $push96=, -1 + i32.add $push13=, $pop97, $pop96 i32.store $drop=, 0($2), $pop13 - i32.eqz $push124=, $1 - br_if 1, $pop124 # 1: down to label11 + i32.eqz $push123=, $1 + br_if 1, $pop123 # 1: down to label11 # BB#17: # %while.body.6 # in Loop: Header=BB0_16 Depth=1 - i32.const $push101=, 1 - i32.add $3=, $3, $pop101 + i32.const $push100=, 1 + i32.add $3=, $3, $pop100 i32.const $push53=, 8 i32.add $push54=, $0, $pop53 copy_local $2=, $pop54 - i32.const $push100=, 3 - i32.gt_s $push14=, $1, $pop100 + i32.const $push99=, 3 + i32.gt_s $push14=, $1, $pop99 br_if 0, $pop14 # 0: up to label10 .LBB0_18: # %while.end.6 end_loop # label11: - i32.const $push102=, 1 - i32.add $3=, $3, $pop102 + i32.const $push101=, 1 + i32.add $3=, $3, $pop101 i32.const $push41=, 12 i32.add $push42=, $0, $pop41 copy_local $2=, $pop42 .LBB0_19: # %while.cond.7 # =>This Inner Loop Header: Depth=1 loop # label12: - i32.load $push105=, 0($2) - tee_local $push104=, $1=, $pop105 - i32.const $push103=, -1 - i32.add $push15=, $pop104, $pop103 + i32.load $push104=, 0($2) + tee_local $push103=, $1=, $pop104 + i32.const $push102=, -1 + i32.add $push15=, $pop103, $pop102 i32.store $drop=, 0($2), $pop15 - i32.eqz $push125=, $1 - br_if 1, $pop125 # 1: down to label13 + i32.eqz $push124=, $1 + br_if 1, $pop124 # 1: down to label13 # BB#20: # %while.body.7 # in Loop: Header=BB0_19 Depth=1 - i32.const $push107=, 1 - i32.add $3=, $3, $pop107 + i32.const $push106=, 1 + i32.add $3=, $3, $pop106 i32.const $push51=, 8 i32.add $push52=, $0, $pop51 copy_local $2=, $pop52 - i32.const $push106=, 3 - i32.gt_s $push16=, $1, $pop106 + i32.const $push105=, 3 + i32.gt_s $push16=, $1, $pop105 br_if 0, $pop16 # 0: up to label12 .LBB0_21: # %while.end.7 end_loop # label13: - i32.const $push108=, 1 - i32.add $3=, $3, $pop108 + i32.const $push107=, 1 + i32.add $3=, $3, $pop107 i32.const $push43=, 12 i32.add $push44=, $0, $pop43 copy_local $2=, $pop44 .LBB0_22: # %while.cond.8 # =>This Inner Loop Header: Depth=1 loop # label14: - i32.load $push111=, 0($2) - tee_local $push110=, $1=, $pop111 - i32.const $push109=, -1 - i32.add $push17=, $pop110, $pop109 + i32.load $push110=, 0($2) + tee_local $push109=, $1=, $pop110 + i32.const $push108=, -1 + i32.add $push17=, $pop109, $pop108 i32.store $drop=, 0($2), $pop17 - i32.eqz $push126=, $1 - br_if 1, $pop126 # 1: down to label15 + i32.eqz $push125=, $1 + br_if 1, $pop125 # 1: down to label15 # BB#23: # %while.body.8 # in Loop: Header=BB0_22 Depth=1 - i32.const $push113=, 1 - i32.add $3=, $3, $pop113 + i32.const $push112=, 1 + i32.add $3=, $3, $pop112 i32.const $push49=, 8 i32.add $push50=, $0, $pop49 copy_local $2=, $pop50 - i32.const $push112=, 3 - i32.gt_s $push18=, $1, $pop112 + i32.const $push111=, 3 + i32.gt_s $push18=, $1, $pop111 br_if 0, $pop18 # 0: up to label14 .LBB0_24: # %while.end.8 end_loop # label15: - i32.const $push114=, 1 - i32.add $3=, $3, $pop114 + i32.const $push113=, 1 + i32.add $3=, $3, $pop113 i32.const $push45=, 12 i32.add $push46=, $0, $pop45 copy_local $2=, $pop46 .LBB0_25: # %while.cond.9 # =>This Inner Loop Header: Depth=1 loop # label16: - i32.load $push117=, 0($2) - tee_local $push116=, $1=, $pop117 - i32.const $push115=, -1 - i32.add $push19=, $pop116, $pop115 + i32.load $push116=, 0($2) + tee_local $push115=, $1=, $pop116 + i32.const $push114=, -1 + i32.add $push19=, $pop115, $pop114 i32.store $drop=, 0($2), $pop19 - i32.eqz $push127=, $1 - br_if 1, $pop127 # 1: down to label17 + i32.eqz $push126=, $1 + br_if 1, $pop126 # 1: down to label17 # BB#26: # %while.body.9 # in Loop: Header=BB0_25 Depth=1 - i32.const $push119=, 1 - i32.add $3=, $3, $pop119 + i32.const $push118=, 1 + i32.add $3=, $3, $pop118 i32.const $push47=, 8 i32.add $push48=, $0, $pop47 copy_local $2=, $pop48 - i32.const $push118=, 3 - i32.gt_s $push20=, $1, $pop118 + i32.const $push117=, 3 + i32.gt_s $push20=, $1, $pop117 br_if 0, $pop20 # 0: up to label16 .LBB0_27: # %while.end.9 end_loop # label17: @@ -283,3 +281,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/990127-2.c.s b/test/torture-s/990127-2.c.s index f5c957c33..0f10fe7b0 100644 --- a/test/torture-s/990127-2.c.s +++ b/test/torture-s/990127-2.c.s @@ -63,3 +63,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/990128-1.c.s b/test/torture-s/990128-1.c.s index 2fd2fce79..83d0d7c21 100644 --- a/test/torture-s/990128-1.c.s +++ b/test/torture-s/990128-1.c.s @@ -212,3 +212,5 @@ sss: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/990130-1.c.s b/test/torture-s/990130-1.c.s index 768d0f071..fd9778000 100644 --- a/test/torture-s/990130-1.c.s +++ b/test/torture-s/990130-1.c.s @@ -55,3 +55,5 @@ dummy: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/990222-1.c.s b/test/torture-s/990222-1.c.s index a53865280..f88191637 100644 --- a/test/torture-s/990222-1.c.s +++ b/test/torture-s/990222-1.c.s @@ -92,3 +92,4 @@ line: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/990324-1.c.s b/test/torture-s/990324-1.c.s index 845154148..fdefb7fa0 100644 --- a/test/torture-s/990324-1.c.s +++ b/test/torture-s/990324-1.c.s @@ -41,3 +41,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/990326-1.c.s b/test/torture-s/990326-1.c.s index 281002dbc..b2d35dcdb 100644 --- a/test/torture-s/990326-1.c.s +++ b/test/torture-s/990326-1.c.s @@ -458,3 +458,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/990404-1.c.s b/test/torture-s/990404-1.c.s index f03390a09..b1bedb481 100644 --- a/test/torture-s/990404-1.c.s +++ b/test/torture-s/990404-1.c.s @@ -153,3 +153,5 @@ x: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/990513-1.c.s b/test/torture-s/990513-1.c.s index 083a6d9f1..e1d1b756c 100644 --- a/test/torture-s/990513-1.c.s +++ b/test/torture-s/990513-1.c.s @@ -95,3 +95,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/990524-1.c.s b/test/torture-s/990524-1.c.s index 352b564d0..4195a4e4b 100644 --- a/test/torture-s/990524-1.c.s +++ b/test/torture-s/990524-1.c.s @@ -11,54 +11,56 @@ loop: # @loop .LBB0_1: # %for.cond # =>This Inner Loop Header: Depth=1 loop # label0: - i32.const $push19=, 1 - i32.add $3=, $1, $pop19 - i32.load8_u $push0=, 0($1) - i32.store8 $push18=, 0($0), $pop0 - tee_local $push17=, $2=, $pop18 - i32.const $push16=, 24 - i32.shl $push1=, $pop17, $pop16 - i32.const $push15=, 24 - i32.shr_s $4=, $pop1, $pop15 + copy_local $push23=, $1 + tee_local $push22=, $3=, $pop23 + i32.const $push21=, 1 + i32.add $1=, $pop22, $pop21 + i32.load8_u $push0=, 0($3) + i32.store8 $push20=, 0($0), $pop0 + tee_local $push19=, $2=, $pop20 + i32.const $push18=, 24 + i32.shl $push1=, $pop19, $pop18 + i32.const $push17=, 24 + i32.shr_s $4=, $pop1, $pop17 block block - i32.const $push14=, 34 - i32.eq $push2=, $2, $pop14 + i32.const $push16=, 34 + i32.eq $push2=, $2, $pop16 br_if 0, $pop2 # 0: down to label3 # BB#2: # %for.cond # in Loop: Header=BB0_1 Depth=1 - i32.const $push20=, 92 - i32.ne $push3=, $4, $pop20 + i32.const $push24=, 92 + i32.ne $push3=, $4, $pop24 br_if 1, $pop3 # 1: down to label2 .LBB0_3: # %sw.bb2 # in Loop: Header=BB0_1 Depth=1 end_block # label3: - i32.const $push13=, 92 - i32.store8 $drop=, 0($0), $pop13 - i32.const $push12=, 1 - i32.add $push4=, $0, $pop12 - i32.load8_u $push5=, 0($1) + i32.const $push15=, 92 + i32.store8 $drop=, 0($0), $pop15 + i32.const $push14=, 1 + i32.add $push4=, $0, $pop14 + i32.load8_u $push5=, 0($3) i32.store8 $drop=, 0($pop4), $pop5 - i32.const $push11=, 2 - i32.add $0=, $0, $pop11 - copy_local $1=, $3 + i32.const $push13=, 2 + i32.add $0=, $0, $pop13 br 1 # 1: up to label0 .LBB0_4: # %for.cond # in Loop: Header=BB0_1 Depth=1 end_block # label2: - i32.const $push21=, 1 - i32.add $0=, $0, $pop21 - copy_local $1=, $3 + i32.const $push25=, 1 + i32.add $0=, $0, $pop25 br_if 0, $4 # 0: up to label0 # BB#5: # %loopDone2 end_loop # label1: block - i32.const $push8=, a - i32.sub $push9=, $pop8, $0 - i32.const $push6=, b - i32.sub $push7=, $pop6, $3 - i32.ne $push10=, $pop9, $pop7 - br_if 0, $pop10 # 0: down to label4 + i32.const $push6=, a + i32.sub $push7=, $pop6, $0 + i32.const $push10=, b + i32.const $push8=, 1 + i32.add $push9=, $3, $pop8 + i32.sub $push11=, $pop10, $pop9 + i32.ne $push12=, $pop7, $pop11 + br_if 0, $pop12 # 0: down to label4 # BB#6: # %if.end return .LBB0_7: # %if.then @@ -104,3 +106,5 @@ b: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/990525-1.c.s b/test/torture-s/990525-1.c.s index 3cc607d9f..14d950b9a 100644 --- a/test/torture-s/990525-1.c.s +++ b/test/torture-s/990525-1.c.s @@ -60,3 +60,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/990525-2.c.s b/test/torture-s/990525-2.c.s index faac90e69..ce6ea26b1 100644 --- a/test/torture-s/990525-2.c.s +++ b/test/torture-s/990525-2.c.s @@ -46,3 +46,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/990527-1.c.s b/test/torture-s/990527-1.c.s index 86a727ca8..66d4a6769 100644 --- a/test/torture-s/990527-1.c.s +++ b/test/torture-s/990527-1.c.s @@ -76,3 +76,5 @@ sum: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/990531-1.c.s b/test/torture-s/990531-1.c.s index 149c827ed..5f06ca8f2 100644 --- a/test/torture-s/990531-1.c.s +++ b/test/torture-s/990531-1.c.s @@ -42,3 +42,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/990604-1.c.s b/test/torture-s/990604-1.c.s index 680a78e2f..79eb49eff 100644 --- a/test/torture-s/990604-1.c.s +++ b/test/torture-s/990604-1.c.s @@ -66,3 +66,4 @@ b: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/990628-1.c.s b/test/torture-s/990628-1.c.s index 09fad3a68..9574ebee3 100644 --- a/test/torture-s/990628-1.c.s +++ b/test/torture-s/990628-1.c.s @@ -50,64 +50,61 @@ fetch: # @fetch load_data: # @load_data .local i32, i32, i32, i32 # BB#0: # %entry - i32.const $push2=, 0 - i32.const $push26=, 404 - i32.call $push25=, malloc@FUNCTION, $pop26 - tee_local $push24=, $3=, $pop25 - i32.store $push0=, data_ptr($pop2), $pop24 - i32.const $push3=, 170 - i32.const $push23=, 404 - i32.call $drop=, memset@FUNCTION, $pop0, $pop3, $pop23 - i32.const $push4=, data_tmp - i32.const $push22=, 85 - i32.const $push21=, 404 - i32.call $0=, memset@FUNCTION, $pop4, $pop22, $pop21 + i32.const $push1=, 0 + i32.const $push27=, 404 + i32.call $push26=, malloc@FUNCTION, $pop27 + tee_local $push25=, $3=, $pop26 + i32.store $push0=, data_ptr($pop1), $pop25 + i32.const $push2=, 170 + i32.const $push24=, 404 + i32.call $drop=, memset@FUNCTION, $pop0, $pop2, $pop24 + i32.const $push3=, data_tmp + i32.const $push23=, 85 + i32.const $push22=, 404 + i32.call $0=, memset@FUNCTION, $pop3, $pop23, $pop22 + i32.const $push21=, 0 i32.const $push20=, 0 - i32.const $push19=, 0 - i32.load $push18=, fetch.fetch_count($pop19) - tee_local $push17=, $2=, $pop18 - i32.const $push16=, 1 - i32.add $push5=, $pop17, $pop16 - i32.store $drop=, fetch.fetch_count($pop20), $pop5 + i32.load $push19=, fetch.fetch_count($pop20) + tee_local $push18=, $2=, $pop19 + i32.const $push17=, 1 + i32.add $push4=, $pop18, $pop17 + i32.store $drop=, fetch.fetch_count($pop21), $pop4 + i32.const $push16=, 0 + i32.const $push5=, 100 i32.const $push15=, 0 - i32.const $push6=, 100 i32.const $push14=, 0 - i32.const $push13=, 0 - i32.gt_s $push12=, $2, $pop13 - tee_local $push11=, $1=, $pop12 - i32.select $push7=, $pop6, $pop14, $pop11 - i32.store $drop=, sqlca($pop15), $pop7 + i32.gt_s $push13=, $2, $pop14 + tee_local $push12=, $1=, $pop13 + i32.select $push6=, $pop5, $pop15, $pop12 + i32.store $drop=, sqlca($pop16), $pop6 block br_if 0, $1 # 0: down to label0 -# BB#1: # %while.body.lr.ph -.LBB2_2: # %while.body +.LBB2_1: # %while.body # =>This Inner Loop Header: Depth=1 loop # label1: - i32.const $push36=, 404 - i32.call $drop=, memcpy@FUNCTION, $3, $0, $pop36 - i32.const $push35=, 85 - i32.const $push34=, 404 - i32.call $drop=, memset@FUNCTION, $0, $pop35, $pop34 + i32.const $push35=, 404 + i32.call $drop=, memcpy@FUNCTION, $3, $0, $pop35 + i32.const $push34=, 85 i32.const $push33=, 404 - i32.add $3=, $3, $pop33 - copy_local $push32=, $2 - tee_local $push31=, $1=, $pop32 - i32.const $push30=, 1 - i32.add $push29=, $pop31, $pop30 - tee_local $push28=, $2=, $pop29 - i32.const $push27=, 1 - i32.lt_s $push8=, $pop28, $pop27 - br_if 0, $pop8 # 0: up to label1 -# BB#3: # %while.cond.while.end_crit_edge + i32.call $drop=, memset@FUNCTION, $0, $pop34, $pop33 + i32.const $push32=, 404 + i32.add $3=, $3, $pop32 + i32.const $push31=, 1 + i32.add $push30=, $2, $pop31 + tee_local $push29=, $2=, $pop30 + i32.const $push28=, 1 + i32.lt_s $push7=, $pop29, $pop28 + br_if 0, $pop7 # 0: up to label1 +# BB#2: # %while.cond.while.end_crit_edge end_loop # label2: - i32.const $push10=, 0 - i32.const $push9=, 100 - i32.store $drop=, sqlca($pop10), $pop9 - i32.const $push38=, 0 - i32.const $push37=, 2 - i32.add $push1=, $1, $pop37 - i32.store $drop=, fetch.fetch_count($pop38), $pop1 -.LBB2_4: # %while.end + i32.const $push9=, 0 + i32.const $push8=, 100 + i32.store $drop=, sqlca($pop9), $pop8 + i32.const $push36=, 0 + i32.const $push10=, 1 + i32.add $push11=, $2, $pop10 + i32.store $drop=, fetch.fetch_count($pop36), $pop11 +.LBB2_3: # %while.end end_block # label0: # fallthrough-return .endfunc @@ -226,3 +223,6 @@ data_ptr: .ident "clang version 3.9.0 " + .functype malloc, i32, i32 + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/990804-1.c.s b/test/torture-s/990804-1.c.s index 1f5c95f0d..566cf6dfa 100644 --- a/test/torture-s/990804-1.c.s +++ b/test/torture-s/990804-1.c.s @@ -29,3 +29,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/990811-1.c.s b/test/torture-s/990811-1.c.s index d002b8f1d..95f8c6c2d 100644 --- a/test/torture-s/990811-1.c.s +++ b/test/torture-s/990811-1.c.s @@ -55,3 +55,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/990826-0.c.s b/test/torture-s/990826-0.c.s new file mode 100644 index 000000000..7244129d9 --- /dev/null +++ b/test/torture-s/990826-0.c.s @@ -0,0 +1,17 @@ + .text + .file "/b/build/slave/linux/build/src/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/990826-0.c" + .section .text.main,"ax",@progbits + .hidden main + .globl main + .type main,@function +main: # @main + .result i32 +# BB#0: # %entry + i32.const $push0=, 0 + # fallthrough-return: $pop0 + .endfunc +.Lfunc_end0: + .size main, .Lfunc_end0-main + + + .ident "clang version 3.9.0 " diff --git a/test/torture-s/990827-1.c.s b/test/torture-s/990827-1.c.s index 5442ee65b..c964c3b5b 100644 --- a/test/torture-s/990827-1.c.s +++ b/test/torture-s/990827-1.c.s @@ -38,3 +38,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/990829-1.c.s b/test/torture-s/990829-1.c.s index 6660b828e..06ce632f3 100644 --- a/test/torture-s/990829-1.c.s +++ b/test/torture-s/990829-1.c.s @@ -34,3 +34,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/990923-1.c.s b/test/torture-s/990923-1.c.s index 4626d3833..f3f1c8caf 100644 --- a/test/torture-s/990923-1.c.s +++ b/test/torture-s/990923-1.c.s @@ -37,3 +37,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/991016-1.c.s b/test/torture-s/991016-1.c.s index 1326cbdfb..b6ddcfb5a 100644 --- a/test/torture-s/991016-1.c.s +++ b/test/torture-s/991016-1.c.s @@ -102,3 +102,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/991019-1.c.s b/test/torture-s/991019-1.c.s index 241720b9a..2f0ffae06 100644 --- a/test/torture-s/991019-1.c.s +++ b/test/torture-s/991019-1.c.s @@ -31,3 +31,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/991023-1.c.s b/test/torture-s/991023-1.c.s index 3f7d0d80d..ebc9e18f2 100644 --- a/test/torture-s/991023-1.c.s +++ b/test/torture-s/991023-1.c.s @@ -43,3 +43,4 @@ blah: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/991030-1.c.s b/test/torture-s/991030-1.c.s index 9a75b900c..dd58087bb 100644 --- a/test/torture-s/991030-1.c.s +++ b/test/torture-s/991030-1.c.s @@ -36,3 +36,5 @@ x: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/991112-1.c.s b/test/torture-s/991112-1.c.s index 0fc7706d9..6fd5e70df 100644 --- a/test/torture-s/991112-1.c.s +++ b/test/torture-s/991112-1.c.s @@ -60,3 +60,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype isprint, i32, i32 + .functype abort, void diff --git a/test/torture-s/991118-1.c.s b/test/torture-s/991118-1.c.s index 845a8be75..b585dc846 100644 --- a/test/torture-s/991118-1.c.s +++ b/test/torture-s/991118-1.c.s @@ -234,3 +234,5 @@ tmp4: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/991201-1.c.s b/test/torture-s/991201-1.c.s index 6863e1876..7f9c21b0a 100644 --- a/test/torture-s/991201-1.c.s +++ b/test/torture-s/991201-1.c.s @@ -192,3 +192,5 @@ default_blu: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/991202-1.c.s b/test/torture-s/991202-1.c.s index 76fe786c0..bcf25872f 100644 --- a/test/torture-s/991202-1.c.s +++ b/test/torture-s/991202-1.c.s @@ -40,3 +40,4 @@ y: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/991202-2.c.s b/test/torture-s/991202-2.c.s index a50085dce..65fd2e7f1 100644 --- a/test/torture-s/991202-2.c.s +++ b/test/torture-s/991202-2.c.s @@ -29,3 +29,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/991202-3.c.s b/test/torture-s/991202-3.c.s index cc9e51ac7..4b5a90cad 100644 --- a/test/torture-s/991202-3.c.s +++ b/test/torture-s/991202-3.c.s @@ -63,3 +63,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/991216-1.c.s b/test/torture-s/991216-1.c.s index 52728f419..11b17e4f6 100644 --- a/test/torture-s/991216-1.c.s +++ b/test/torture-s/991216-1.c.s @@ -360,3 +360,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/991216-2.c.s b/test/torture-s/991216-2.c.s index b319b5a1d..336c2debb 100644 --- a/test/torture-s/991216-2.c.s +++ b/test/torture-s/991216-2.c.s @@ -230,3 +230,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/991216-4.c.s b/test/torture-s/991216-4.c.s index 04d7af157..55713a2f7 100644 --- a/test/torture-s/991216-4.c.s +++ b/test/torture-s/991216-4.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/991221-1.c.s b/test/torture-s/991221-1.c.s index 8319810a1..764b24236 100644 --- a/test/torture-s/991221-1.c.s +++ b/test/torture-s/991221-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/991227-1.c.s b/test/torture-s/991227-1.c.s index 33ae8c230..70763d699 100644 --- a/test/torture-s/991227-1.c.s +++ b/test/torture-s/991227-1.c.s @@ -45,3 +45,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/991228-1.c.s b/test/torture-s/991228-1.c.s index fcaffdc00..7b07ae808 100644 --- a/test/torture-s/991228-1.c.s +++ b/test/torture-s/991228-1.c.s @@ -102,3 +102,5 @@ endianness_test: .ident "clang version 3.9.0 " + .functype exit, void, i32 + .functype abort, void diff --git a/test/torture-s/align-2.c.s b/test/torture-s/align-2.c.s index 6298736b6..1237b60a1 100644 --- a/test/torture-s/align-2.c.s +++ b/test/torture-s/align-2.c.s @@ -362,3 +362,4 @@ s_d_ld: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/alloca-1.c.s b/test/torture-s/alloca-1.c.s index dab28f664..bf084f445 100644 --- a/test/torture-s/alloca-1.c.s +++ b/test/torture-s/alloca-1.c.s @@ -55,3 +55,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/arith-1.c.s b/test/torture-s/arith-1.c.s index d5b3356fa..8677a216a 100644 --- a/test/torture-s/arith-1.c.s +++ b/test/torture-s/arith-1.c.s @@ -35,3 +35,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/arith-rand-ll.c.s b/test/torture-s/arith-rand-ll.c.s index 8b56e4afd..7f017c18d 100644 --- a/test/torture-s/arith-rand-ll.c.s +++ b/test/torture-s/arith-rand-ll.c.s @@ -438,3 +438,5 @@ simple_rand.seed: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/arith-rand.c.s b/test/torture-s/arith-rand.c.s index 1b572f752..52ee38be2 100644 --- a/test/torture-s/arith-rand.c.s +++ b/test/torture-s/arith-rand.c.s @@ -366,3 +366,5 @@ simple_rand.seed: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/ashldi-1.c.s b/test/torture-s/ashldi-1.c.s index 1fe45f321..9c4770697 100644 --- a/test/torture-s/ashldi-1.c.s +++ b/test/torture-s/ashldi-1.c.s @@ -139,3 +139,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/ashrdi-1.c.s b/test/torture-s/ashrdi-1.c.s index 1239d1327..4d661ba1a 100644 --- a/test/torture-s/ashrdi-1.c.s +++ b/test/torture-s/ashrdi-1.c.s @@ -724,3 +724,5 @@ sext: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/bcp-1.c.s b/test/torture-s/bcp-1.c.s index 6e25bfd36..d370967c2 100644 --- a/test/torture-s/bcp-1.c.s +++ b/test/torture-s/bcp-1.c.s @@ -437,3 +437,5 @@ global: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/bf-layout-1.c.s b/test/torture-s/bf-layout-1.c.s index ddeaf4c54..139a34ed0 100644 --- a/test/torture-s/bf-layout-1.c.s +++ b/test/torture-s/bf-layout-1.c.s @@ -34,3 +34,4 @@ b: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/bf-pack-1.c.s b/test/torture-s/bf-pack-1.c.s index 28f8b8a37..8f56912b5 100644 --- a/test/torture-s/bf-pack-1.c.s +++ b/test/torture-s/bf-pack-1.c.s @@ -62,3 +62,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/bf-sign-1.c.s b/test/torture-s/bf-sign-1.c.s index 6d670800e..a80dea74f 100644 --- a/test/torture-s/bf-sign-1.c.s +++ b/test/torture-s/bf-sign-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/bf-sign-2.c.s b/test/torture-s/bf-sign-2.c.s index 026f3d7ca..cf046e2fe 100644 --- a/test/torture-s/bf-sign-2.c.s +++ b/test/torture-s/bf-sign-2.c.s @@ -100,3 +100,5 @@ x: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/bf64-1.c.s b/test/torture-s/bf64-1.c.s index 5e09e133f..36bad78c5 100644 --- a/test/torture-s/bf64-1.c.s +++ b/test/torture-s/bf64-1.c.s @@ -48,3 +48,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/bitfld-2.c.s b/test/torture-s/bitfld-2.c.s index e685cd04a..114018548 100644 --- a/test/torture-s/bitfld-2.c.s +++ b/test/torture-s/bitfld-2.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/bitfld-3.c.s b/test/torture-s/bitfld-3.c.s index 6014e47bd..94018d0ce 100644 --- a/test/torture-s/bitfld-3.c.s +++ b/test/torture-s/bitfld-3.c.s @@ -119,3 +119,4 @@ c: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/bitfld-4.c.s b/test/torture-s/bitfld-4.c.s index 5cfde5b8d..06f9f66b3 100644 --- a/test/torture-s/bitfld-4.c.s +++ b/test/torture-s/bitfld-4.c.s @@ -38,3 +38,4 @@ x: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/bitfld-5.c.s b/test/torture-s/bitfld-5.c.s index 27cfdb99c..14af88dc6 100644 --- a/test/torture-s/bitfld-5.c.s +++ b/test/torture-s/bitfld-5.c.s @@ -108,3 +108,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/bswap-1.c.s b/test/torture-s/bswap-1.c.s index 2479ce849..c2a6fee64 100644 --- a/test/torture-s/bswap-1.c.s +++ b/test/torture-s/bswap-1.c.s @@ -164,3 +164,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/builtin-bitops-1.c.s b/test/torture-s/builtin-bitops-1.c.s index 708cc2e9b..b49c5cfec 100644 --- a/test/torture-s/builtin-bitops-1.c.s +++ b/test/torture-s/builtin-bitops-1.c.s @@ -700,21 +700,21 @@ main: # @main block block loop # label41: - i32.const $push221=, 2 - i32.shl $push220=, $0, $pop221 - tee_local $push219=, $6=, $pop220 - i32.load $push218=, ints($pop219) - tee_local $push217=, $10=, $pop218 - i32.ctz $push216=, $pop217 - tee_local $push215=, $2=, $pop216 - i32.const $push214=, 1 - i32.add $push5=, $pop215, $pop214 - i32.const $push213=, 0 - i32.select $5=, $pop5, $pop213, $10 + i32.const $push215=, 2 + i32.shl $push214=, $0, $pop215 + tee_local $push213=, $6=, $pop214 + i32.load $push212=, ints($pop213) + tee_local $push211=, $10=, $pop212 + i32.ctz $push210=, $pop211 + tee_local $push209=, $2=, $pop210 + i32.const $push208=, 1 + i32.add $push5=, $pop209, $pop208 + i32.const $push207=, 0 + i32.select $5=, $pop5, $pop207, $10 i32.const $3=, 0 block - i32.eqz $push433=, $10 - br_if 0, $pop433 # 0: down to label43 + i32.eqz $push427=, $10 + br_if 0, $pop427 # 0: down to label43 # BB#2: # %for.body.i.preheader # in Loop: Header=BB18_1 Depth=1 i32.const $3=, 0 @@ -722,23 +722,23 @@ main: # @main # Parent Loop BB18_1 Depth=1 # => This Inner Loop Header: Depth=2 loop # label44: - i32.const $push222=, 1 - i32.shl $push6=, $pop222, $3 + i32.const $push216=, 1 + i32.shl $push6=, $pop216, $3 i32.and $push7=, $pop6, $10 br_if 1, $pop7 # 1: down to label45 # BB#4: # %for.inc.i # in Loop: Header=BB18_3 Depth=2 - i32.const $push226=, 1 - i32.add $push225=, $3, $pop226 - tee_local $push224=, $3=, $pop225 - i32.const $push223=, 32 - i32.lt_u $push8=, $pop224, $pop223 + i32.const $push220=, 1 + i32.add $push219=, $3, $pop220 + tee_local $push218=, $3=, $pop219 + i32.const $push217=, 32 + i32.lt_u $push8=, $pop218, $pop217 br_if 0, $pop8 # 0: up to label44 .LBB18_5: # %for.end.i # in Loop: Header=BB18_1 Depth=1 end_loop # label45: - i32.const $push227=, 1 - i32.add $3=, $3, $pop227 + i32.const $push221=, 1 + i32.add $3=, $3, $pop221 .LBB18_6: # %my_ffs.exit # in Loop: Header=BB18_1 Depth=1 end_block # label43: @@ -747,8 +747,8 @@ main: # @main # BB#7: # %if.end # in Loop: Header=BB18_1 Depth=1 block - i32.eqz $push434=, $10 - br_if 0, $pop434 # 0: down to label46 + i32.eqz $push428=, $10 + br_if 0, $pop428 # 0: down to label46 # BB#8: # %land.lhs.true # in Loop: Header=BB18_1 Depth=1 i32.clz $1=, $10 @@ -758,19 +758,19 @@ main: # @main # Parent Loop BB18_1 Depth=1 # => This Inner Loop Header: Depth=2 loop # label47: - i32.const $push228=, 1 - i32.shl $push10=, $pop228, $3 + i32.const $push222=, 1 + i32.shl $push10=, $pop222, $3 i32.and $push11=, $pop10, $10 br_if 1, $pop11 # 1: down to label48 # BB#10: # %for.inc.i825 # in Loop: Header=BB18_9 Depth=2 - i32.const $push233=, -1 - i32.add $3=, $3, $pop233 - i32.const $push232=, 1 - i32.add $push231=, $5, $pop232 - tee_local $push230=, $5=, $pop231 - i32.const $push229=, 32 - i32.lt_u $push12=, $pop230, $pop229 + i32.const $push227=, -1 + i32.add $3=, $3, $pop227 + i32.const $push226=, 1 + i32.add $push225=, $5, $pop226 + tee_local $push224=, $5=, $pop225 + i32.const $push223=, 32 + i32.lt_u $push12=, $pop224, $pop223 br_if 0, $pop12 # 0: up to label47 .LBB18_11: # %my_clz.exit # in Loop: Header=BB18_1 Depth=1 @@ -784,17 +784,17 @@ main: # @main # Parent Loop BB18_1 Depth=1 # => This Inner Loop Header: Depth=2 loop # label49: - i32.const $push234=, 1 - i32.shl $push14=, $pop234, $3 + i32.const $push228=, 1 + i32.shl $push14=, $pop228, $3 i32.and $push15=, $pop14, $10 br_if 1, $pop15 # 1: down to label50 # BB#14: # %for.inc.i892 # in Loop: Header=BB18_13 Depth=2 - i32.const $push238=, 1 - i32.add $push237=, $3, $pop238 - tee_local $push236=, $3=, $pop237 - i32.const $push235=, 32 - i32.lt_u $push16=, $pop236, $pop235 + i32.const $push232=, 1 + i32.add $push231=, $3, $pop232 + tee_local $push230=, $3=, $pop231 + i32.const $push229=, 32 + i32.lt_u $push16=, $pop230, $pop229 br_if 0, $pop16 # 0: up to label49 .LBB18_15: # %my_ctz.exit # in Loop: Header=BB18_1 Depth=1 @@ -805,12 +805,12 @@ main: # @main # in Loop: Header=BB18_1 Depth=1 end_block # label46: i32.call $2=, __builtin_clrsb@FUNCTION, $10 - i32.const $push242=, ints - i32.add $push0=, $6, $pop242 - i32.load $push241=, 0($pop0) - tee_local $push240=, $3=, $pop241 - i32.const $push239=, 31 - i32.shr_u $6=, $pop240, $pop239 + i32.const $push236=, ints + i32.add $push0=, $6, $pop236 + i32.load $push235=, 0($pop0) + tee_local $push234=, $3=, $pop235 + i32.const $push233=, 31 + i32.shr_u $6=, $pop234, $pop233 i32.const $5=, 1 i32.const $10=, 30 .LBB18_17: # %for.body.i974 @@ -818,25 +818,25 @@ main: # @main # => This Inner Loop Header: Depth=2 loop # label51: i32.shr_u $push18=, $3, $10 - i32.const $push243=, 1 - i32.and $push19=, $pop18, $pop243 + i32.const $push237=, 1 + i32.and $push19=, $pop18, $pop237 i32.ne $push20=, $pop19, $6 br_if 1, $pop20 # 1: down to label52 # BB#18: # %for.inc.i977 # in Loop: Header=BB18_17 Depth=2 - i32.const $push248=, -1 - i32.add $10=, $10, $pop248 - i32.const $push247=, 1 - i32.add $push246=, $5, $pop247 - tee_local $push245=, $5=, $pop246 - i32.const $push244=, 32 - i32.lt_u $push21=, $pop245, $pop244 + i32.const $push242=, -1 + i32.add $10=, $10, $pop242 + i32.const $push241=, 1 + i32.add $push240=, $5, $pop241 + tee_local $push239=, $5=, $pop240 + i32.const $push238=, 32 + i32.lt_u $push21=, $pop239, $pop238 br_if 0, $pop21 # 0: up to label51 .LBB18_19: # %my_clrsb.exit # in Loop: Header=BB18_1 Depth=1 end_loop # label52: - i32.const $push249=, -1 - i32.add $push22=, $5, $pop249 + i32.const $push243=, -1 + i32.add $push22=, $5, $pop243 i32.ne $push23=, $2, $pop22 br_if 2, $pop23 # 2: down to label40 # BB#20: # %for.body.i1069.preheader @@ -847,17 +847,17 @@ main: # @main # Parent Loop BB18_1 Depth=1 # => This Inner Loop Header: Depth=2 loop # label53: - i32.const $push255=, 1 - i32.shl $push24=, $pop255, $10 + i32.const $push249=, 1 + i32.shl $push24=, $pop249, $10 i32.and $push25=, $pop24, $3 - i32.const $push254=, 0 - i32.ne $push26=, $pop25, $pop254 + i32.const $push248=, 0 + i32.ne $push26=, $pop25, $pop248 i32.add $5=, $pop26, $5 - i32.const $push253=, 1 - i32.add $push252=, $10, $pop253 - tee_local $push251=, $10=, $pop252 - i32.const $push250=, 32 - i32.ne $push27=, $pop251, $pop250 + i32.const $push247=, 1 + i32.add $push246=, $10, $pop247 + tee_local $push245=, $10=, $pop246 + i32.const $push244=, 32 + i32.ne $push27=, $pop245, $pop244 br_if 0, $pop27 # 0: up to label53 # BB#22: # %my_popcount.exit # in Loop: Header=BB18_1 Depth=1 @@ -873,32 +873,32 @@ main: # @main # Parent Loop BB18_1 Depth=1 # => This Inner Loop Header: Depth=2 loop # label55: - i32.const $push261=, 1 - i32.shl $push30=, $pop261, $10 + i32.const $push255=, 1 + i32.shl $push30=, $pop255, $10 i32.and $push31=, $pop30, $3 - i32.const $push260=, 0 - i32.ne $push32=, $pop31, $pop260 + i32.const $push254=, 0 + i32.ne $push32=, $pop31, $pop254 i32.add $6=, $pop32, $6 - i32.const $push259=, 1 - i32.add $push258=, $10, $pop259 - tee_local $push257=, $10=, $pop258 - i32.const $push256=, 32 - i32.ne $push33=, $pop257, $pop256 + i32.const $push253=, 1 + i32.add $push252=, $10, $pop253 + tee_local $push251=, $10=, $pop252 + i32.const $push250=, 32 + i32.ne $push33=, $pop251, $pop250 br_if 0, $pop33 # 0: up to label55 # BB#25: # %my_parity.exit # in Loop: Header=BB18_1 Depth=1 end_loop # label56: i32.xor $push34=, $6, $5 - i32.const $push262=, 1 - i32.and $push35=, $pop34, $pop262 + i32.const $push256=, 1 + i32.and $push35=, $pop34, $pop256 br_if 2, $pop35 # 2: down to label40 # BB#26: # %for.cond # in Loop: Header=BB18_1 Depth=1 - i32.const $push266=, 1 - i32.add $push265=, $0, $pop266 - tee_local $push264=, $0=, $pop265 - i32.const $push263=, 13 - i32.lt_u $push36=, $pop264, $pop263 + i32.const $push260=, 1 + i32.add $push259=, $0, $pop260 + tee_local $push258=, $0=, $pop259 + i32.const $push257=, 13 + i32.lt_u $push36=, $pop258, $pop257 br_if 0, $pop36 # 0: up to label41 # BB#27: # %for.body41.preheader end_loop # label42: @@ -912,21 +912,21 @@ main: # @main # Child Loop BB18_48 Depth 2 # Child Loop BB18_51 Depth 2 loop # label57: - i32.const $push275=, 2 - i32.shl $push274=, $0, $pop275 - tee_local $push273=, $6=, $pop274 - i32.load $push272=, longs($pop273) - tee_local $push271=, $10=, $pop272 - i32.ctz $push270=, $pop271 - tee_local $push269=, $2=, $pop270 - i32.const $push268=, 1 - i32.add $push37=, $pop269, $pop268 - i32.const $push267=, 0 - i32.select $5=, $pop37, $pop267, $10 + i32.const $push269=, 2 + i32.shl $push268=, $0, $pop269 + tee_local $push267=, $6=, $pop268 + i32.load $push266=, longs($pop267) + tee_local $push265=, $10=, $pop266 + i32.ctz $push264=, $pop265 + tee_local $push263=, $2=, $pop264 + i32.const $push262=, 1 + i32.add $push37=, $pop263, $pop262 + i32.const $push261=, 0 + i32.select $5=, $pop37, $pop261, $10 i32.const $3=, 0 block - i32.eqz $push435=, $10 - br_if 0, $pop435 # 0: down to label59 + i32.eqz $push429=, $10 + br_if 0, $pop429 # 0: down to label59 # BB#29: # %for.body.i1251.preheader # in Loop: Header=BB18_28 Depth=1 i32.const $3=, 0 @@ -934,23 +934,23 @@ main: # @main # Parent Loop BB18_28 Depth=1 # => This Inner Loop Header: Depth=2 loop # label60: - i32.const $push276=, 1 - i32.shl $push38=, $pop276, $3 + i32.const $push270=, 1 + i32.shl $push38=, $pop270, $3 i32.and $push39=, $pop38, $10 br_if 1, $pop39 # 1: down to label61 # BB#31: # %for.inc.i1254 # in Loop: Header=BB18_30 Depth=2 - i32.const $push280=, 1 - i32.add $push279=, $3, $pop280 - tee_local $push278=, $3=, $pop279 - i32.const $push277=, 32 - i32.lt_u $push40=, $pop278, $pop277 + i32.const $push274=, 1 + i32.add $push273=, $3, $pop274 + tee_local $push272=, $3=, $pop273 + i32.const $push271=, 32 + i32.lt_u $push40=, $pop272, $pop271 br_if 0, $pop40 # 0: up to label60 .LBB18_32: # %for.end.i1257 # in Loop: Header=BB18_28 Depth=1 end_loop # label61: - i32.const $push281=, 1 - i32.add $3=, $3, $pop281 + i32.const $push275=, 1 + i32.add $3=, $3, $pop275 .LBB18_33: # %my_ffsl.exit # in Loop: Header=BB18_28 Depth=1 end_block # label59: @@ -959,8 +959,8 @@ main: # @main # BB#34: # %if.end49 # in Loop: Header=BB18_28 Depth=1 block - i32.eqz $push436=, $10 - br_if 0, $pop436 # 0: down to label62 + i32.eqz $push430=, $10 + br_if 0, $pop430 # 0: down to label62 # BB#35: # %land.lhs.true52 # in Loop: Header=BB18_28 Depth=1 i32.clz $1=, $10 @@ -970,19 +970,19 @@ main: # @main # Parent Loop BB18_28 Depth=1 # => This Inner Loop Header: Depth=2 loop # label63: - i32.const $push282=, 1 - i32.shl $push42=, $pop282, $3 + i32.const $push276=, 1 + i32.shl $push42=, $pop276, $3 i32.and $push43=, $pop42, $10 br_if 1, $pop43 # 1: down to label64 # BB#37: # %for.inc.i1349 # in Loop: Header=BB18_36 Depth=2 - i32.const $push287=, -1 - i32.add $3=, $3, $pop287 - i32.const $push286=, 1 - i32.add $push285=, $5, $pop286 - tee_local $push284=, $5=, $pop285 - i32.const $push283=, 32 - i32.lt_u $push44=, $pop284, $pop283 + i32.const $push281=, -1 + i32.add $3=, $3, $pop281 + i32.const $push280=, 1 + i32.add $push279=, $5, $pop280 + tee_local $push278=, $5=, $pop279 + i32.const $push277=, 32 + i32.lt_u $push44=, $pop278, $pop277 br_if 0, $pop44 # 0: up to label63 .LBB18_38: # %my_clzl.exit # in Loop: Header=BB18_28 Depth=1 @@ -996,17 +996,17 @@ main: # @main # Parent Loop BB18_28 Depth=1 # => This Inner Loop Header: Depth=2 loop # label65: - i32.const $push288=, 1 - i32.shl $push46=, $pop288, $3 + i32.const $push282=, 1 + i32.shl $push46=, $pop282, $3 i32.and $push47=, $pop46, $10 br_if 1, $pop47 # 1: down to label66 # BB#41: # %for.inc.i1441 # in Loop: Header=BB18_40 Depth=2 - i32.const $push292=, 1 - i32.add $push291=, $3, $pop292 - tee_local $push290=, $3=, $pop291 - i32.const $push289=, 32 - i32.lt_u $push48=, $pop290, $pop289 + i32.const $push286=, 1 + i32.add $push285=, $3, $pop286 + tee_local $push284=, $3=, $pop285 + i32.const $push283=, 32 + i32.lt_u $push48=, $pop284, $pop283 br_if 0, $pop48 # 0: up to label65 .LBB18_42: # %my_ctzl.exit # in Loop: Header=BB18_28 Depth=1 @@ -1017,12 +1017,12 @@ main: # @main # in Loop: Header=BB18_28 Depth=1 end_block # label62: i32.call $2=, __builtin_clrsbl@FUNCTION, $10 - i32.const $push296=, longs - i32.add $push1=, $6, $pop296 - i32.load $push295=, 0($pop1) - tee_local $push294=, $3=, $pop295 - i32.const $push293=, 31 - i32.shr_u $6=, $pop294, $pop293 + i32.const $push290=, longs + i32.add $push1=, $6, $pop290 + i32.load $push289=, 0($pop1) + tee_local $push288=, $3=, $pop289 + i32.const $push287=, 31 + i32.shr_u $6=, $pop288, $pop287 i32.const $5=, 1 i32.const $10=, 30 .LBB18_44: # %for.body.i1532 @@ -1030,25 +1030,25 @@ main: # @main # => This Inner Loop Header: Depth=2 loop # label67: i32.shr_u $push50=, $3, $10 - i32.const $push297=, 1 - i32.and $push51=, $pop50, $pop297 + i32.const $push291=, 1 + i32.and $push51=, $pop50, $pop291 i32.ne $push52=, $pop51, $6 br_if 1, $pop52 # 1: down to label68 # BB#45: # %for.inc.i1535 # in Loop: Header=BB18_44 Depth=2 - i32.const $push302=, -1 - i32.add $10=, $10, $pop302 - i32.const $push301=, 1 - i32.add $push300=, $5, $pop301 - tee_local $push299=, $5=, $pop300 - i32.const $push298=, 32 - i32.lt_u $push53=, $pop299, $pop298 + i32.const $push296=, -1 + i32.add $10=, $10, $pop296 + i32.const $push295=, 1 + i32.add $push294=, $5, $pop295 + tee_local $push293=, $5=, $pop294 + i32.const $push292=, 32 + i32.lt_u $push53=, $pop293, $pop292 br_if 0, $pop53 # 0: up to label67 .LBB18_46: # %my_clrsbl.exit # in Loop: Header=BB18_28 Depth=1 end_loop # label68: - i32.const $push303=, -1 - i32.add $push54=, $5, $pop303 + i32.const $push297=, -1 + i32.add $push54=, $5, $pop297 i32.ne $push55=, $2, $pop54 br_if 2, $pop55 # 2: down to label40 # BB#47: # %for.body.i1630.preheader @@ -1059,17 +1059,17 @@ main: # @main # Parent Loop BB18_28 Depth=1 # => This Inner Loop Header: Depth=2 loop # label69: - i32.const $push309=, 1 - i32.shl $push56=, $pop309, $10 + i32.const $push303=, 1 + i32.shl $push56=, $pop303, $10 i32.and $push57=, $pop56, $3 - i32.const $push308=, 0 - i32.ne $push58=, $pop57, $pop308 + i32.const $push302=, 0 + i32.ne $push58=, $pop57, $pop302 i32.add $5=, $pop58, $5 - i32.const $push307=, 1 - i32.add $push306=, $10, $pop307 - tee_local $push305=, $10=, $pop306 - i32.const $push304=, 32 - i32.ne $push59=, $pop305, $pop304 + i32.const $push301=, 1 + i32.add $push300=, $10, $pop301 + tee_local $push299=, $10=, $pop300 + i32.const $push298=, 32 + i32.ne $push59=, $pop299, $pop298 br_if 0, $pop59 # 0: up to label69 # BB#49: # %my_popcountl.exit # in Loop: Header=BB18_28 Depth=1 @@ -1085,32 +1085,32 @@ main: # @main # Parent Loop BB18_28 Depth=1 # => This Inner Loop Header: Depth=2 loop # label71: - i32.const $push315=, 1 - i32.shl $push62=, $pop315, $10 + i32.const $push309=, 1 + i32.shl $push62=, $pop309, $10 i32.and $push63=, $pop62, $3 - i32.const $push314=, 0 - i32.ne $push64=, $pop63, $pop314 + i32.const $push308=, 0 + i32.ne $push64=, $pop63, $pop308 i32.add $6=, $pop64, $6 - i32.const $push313=, 1 - i32.add $push312=, $10, $pop313 - tee_local $push311=, $10=, $pop312 - i32.const $push310=, 32 - i32.ne $push65=, $pop311, $pop310 + i32.const $push307=, 1 + i32.add $push306=, $10, $pop307 + tee_local $push305=, $10=, $pop306 + i32.const $push304=, 32 + i32.ne $push65=, $pop305, $pop304 br_if 0, $pop65 # 0: up to label71 # BB#52: # %my_parityl.exit # in Loop: Header=BB18_28 Depth=1 end_loop # label72: i32.xor $push66=, $6, $5 - i32.const $push316=, 1 - i32.and $push67=, $pop66, $pop316 + i32.const $push310=, 1 + i32.and $push67=, $pop66, $pop310 br_if 2, $pop67 # 2: down to label40 # BB#53: # %for.cond39 # in Loop: Header=BB18_28 Depth=1 - i32.const $push320=, 1 - i32.add $push319=, $0, $pop320 - tee_local $push318=, $0=, $pop319 - i32.const $push317=, 13 - i32.lt_u $push68=, $pop318, $pop317 + i32.const $push314=, 1 + i32.add $push313=, $0, $pop314 + tee_local $push312=, $0=, $pop313 + i32.const $push311=, 13 + i32.lt_u $push68=, $pop312, $pop311 br_if 0, $pop68 # 0: up to label57 # BB#54: # %for.body92.preheader end_loop # label58: @@ -1124,20 +1124,20 @@ main: # @main # Child Loop BB18_75 Depth 2 # Child Loop BB18_78 Depth 2 loop # label73: - i32.const $push331=, 0 - i32.const $push330=, 3 - i32.shl $push329=, $5, $pop330 - tee_local $push328=, $0=, $pop329 - i64.load $push327=, longlongs($pop328) - tee_local $push326=, $8=, $pop327 - i64.ctz $push325=, $pop326 - tee_local $push324=, $4=, $pop325 - i64.const $push323=, 1 - i64.add $push69=, $pop324, $pop323 + i32.const $push325=, 0 + i32.const $push324=, 3 + i32.shl $push323=, $5, $pop324 + tee_local $push322=, $0=, $pop323 + i64.load $push321=, longlongs($pop322) + tee_local $push320=, $8=, $pop321 + i64.ctz $push319=, $pop320 + tee_local $push318=, $4=, $pop319 + i64.const $push317=, 1 + i64.add $push69=, $pop318, $pop317 i32.wrap/i64 $push70=, $pop69 - i64.eqz $push322=, $8 - tee_local $push321=, $3=, $pop322 - i32.select $6=, $pop331, $pop70, $pop321 + i64.eqz $push316=, $8 + tee_local $push315=, $3=, $pop316 + i32.select $6=, $pop325, $pop70, $pop315 i32.const $10=, 0 block br_if 0, $3 # 0: down to label75 @@ -1149,27 +1149,27 @@ main: # @main # Parent Loop BB18_55 Depth=1 # => This Inner Loop Header: Depth=2 loop # label76: - i64.const $push333=, 1 - i64.shl $push71=, $pop333, $9 + i64.const $push327=, 1 + i64.shl $push71=, $pop327, $9 i64.and $push72=, $pop71, $8 - i64.const $push332=, 0 - i64.ne $push73=, $pop72, $pop332 + i64.const $push326=, 0 + i64.ne $push73=, $pop72, $pop326 br_if 1, $pop73 # 1: down to label77 # BB#58: # %for.inc.i1818 # in Loop: Header=BB18_57 Depth=2 - i32.const $push338=, 1 - i32.add $10=, $10, $pop338 - i64.const $push337=, 1 - i64.add $push336=, $9, $pop337 - tee_local $push335=, $9=, $pop336 - i64.const $push334=, 64 - i64.lt_u $push74=, $pop335, $pop334 + i32.const $push332=, 1 + i32.add $10=, $10, $pop332 + i64.const $push331=, 1 + i64.add $push330=, $9, $pop331 + tee_local $push329=, $9=, $pop330 + i64.const $push328=, 64 + i64.lt_u $push74=, $pop329, $pop328 br_if 0, $pop74 # 0: up to label76 .LBB18_59: # %for.end.i1821 # in Loop: Header=BB18_55 Depth=1 end_loop # label77: - i32.const $push339=, 1 - i32.add $10=, $10, $pop339 + i32.const $push333=, 1 + i32.add $10=, $10, $pop333 .LBB18_60: # %my_ffsll.exit1823 # in Loop: Header=BB18_55 Depth=1 end_block # label75: @@ -1190,25 +1190,25 @@ main: # @main # Parent Loop BB18_55 Depth=1 # => This Inner Loop Header: Depth=2 loop # label79: - i64.const $push342=, 1 - i64.const $push341=, 4294967295 - i64.and $push77=, $9, $pop341 - i64.shl $push78=, $pop342, $pop77 + i64.const $push336=, 1 + i64.const $push335=, 4294967295 + i64.and $push77=, $9, $pop335 + i64.shl $push78=, $pop336, $pop77 i64.and $push79=, $pop78, $8 - i64.const $push340=, 0 - i64.ne $push80=, $pop79, $pop340 + i64.const $push334=, 0 + i64.ne $push80=, $pop79, $pop334 br_if 1, $pop80 # 1: down to label80 # BB#64: # %for.inc.i1906 # in Loop: Header=BB18_63 Depth=2 - i64.const $push348=, -1 - i64.add $9=, $9, $pop348 - i32.const $push347=, 1 - i32.add $10=, $10, $pop347 - i64.const $push346=, 1 - i64.add $push345=, $7, $pop346 - tee_local $push344=, $7=, $pop345 - i64.const $push343=, 64 - i64.lt_u $push81=, $pop344, $pop343 + i64.const $push342=, -1 + i64.add $9=, $9, $pop342 + i32.const $push341=, 1 + i32.add $10=, $10, $pop341 + i64.const $push340=, 1 + i64.add $push339=, $7, $pop340 + tee_local $push338=, $7=, $pop339 + i64.const $push337=, 64 + i64.lt_u $push81=, $pop338, $pop337 br_if 0, $pop81 # 0: up to label79 .LBB18_65: # %my_clzll.exit1909 # in Loop: Header=BB18_55 Depth=1 @@ -1224,21 +1224,21 @@ main: # @main # Parent Loop BB18_55 Depth=1 # => This Inner Loop Header: Depth=2 loop # label81: - i64.const $push350=, 1 - i64.shl $push83=, $pop350, $9 + i64.const $push344=, 1 + i64.shl $push83=, $pop344, $9 i64.and $push84=, $pop83, $8 - i64.const $push349=, 0 - i64.ne $push85=, $pop84, $pop349 + i64.const $push343=, 0 + i64.ne $push85=, $pop84, $pop343 br_if 1, $pop85 # 1: down to label82 # BB#68: # %for.inc.i1952 # in Loop: Header=BB18_67 Depth=2 - i32.const $push355=, 1 - i32.add $10=, $10, $pop355 - i64.const $push354=, 1 - i64.add $push353=, $9, $pop354 - tee_local $push352=, $9=, $pop353 - i64.const $push351=, 64 - i64.lt_u $push86=, $pop352, $pop351 + i32.const $push349=, 1 + i32.add $10=, $10, $pop349 + i64.const $push348=, 1 + i64.add $push347=, $9, $pop348 + tee_local $push346=, $9=, $pop347 + i64.const $push345=, 64 + i64.lt_u $push86=, $pop346, $pop345 br_if 0, $pop86 # 0: up to label81 .LBB18_69: # %my_ctzll.exit1955 # in Loop: Header=BB18_55 Depth=1 @@ -1249,12 +1249,12 @@ main: # @main # in Loop: Header=BB18_55 Depth=1 end_block # label78: i32.call $3=, __builtin_clrsbll@FUNCTION, $8 - i32.const $push359=, longlongs - i32.add $push2=, $0, $pop359 - i64.load $push358=, 0($pop2) - tee_local $push357=, $9=, $pop358 - i64.const $push356=, 63 - i64.shr_u $4=, $pop357, $pop356 + i32.const $push353=, longlongs + i32.add $push2=, $0, $pop353 + i64.load $push352=, 0($pop2) + tee_local $push351=, $9=, $pop352 + i64.const $push350=, 63 + i64.shr_u $4=, $pop351, $pop350 i32.const $10=, 1 i64.const $7=, 1 i64.const $8=, 62 @@ -1263,27 +1263,27 @@ main: # @main # => This Inner Loop Header: Depth=2 loop # label83: i64.shr_u $push88=, $9, $8 - i64.const $push360=, 1 - i64.and $push89=, $pop88, $pop360 + i64.const $push354=, 1 + i64.and $push89=, $pop88, $pop354 i64.ne $push90=, $pop89, $4 br_if 1, $pop90 # 1: down to label84 # BB#72: # %for.inc.i2022 # in Loop: Header=BB18_71 Depth=2 - i64.const $push366=, -1 - i64.add $8=, $8, $pop366 - i32.const $push365=, 1 - i32.add $10=, $10, $pop365 - i64.const $push364=, 1 - i64.add $push363=, $7, $pop364 - tee_local $push362=, $7=, $pop363 - i64.const $push361=, 64 - i64.lt_u $push91=, $pop362, $pop361 + i64.const $push360=, -1 + i64.add $8=, $8, $pop360 + i32.const $push359=, 1 + i32.add $10=, $10, $pop359 + i64.const $push358=, 1 + i64.add $push357=, $7, $pop358 + tee_local $push356=, $7=, $pop357 + i64.const $push355=, 64 + i64.lt_u $push91=, $pop356, $pop355 br_if 0, $pop91 # 0: up to label83 .LBB18_73: # %my_clrsbll.exit2026 # in Loop: Header=BB18_55 Depth=1 end_loop # label84: - i32.const $push367=, -1 - i32.add $push92=, $10, $pop367 + i32.const $push361=, -1 + i32.add $push92=, $10, $pop361 i32.ne $push93=, $3, $pop92 br_if 2, $pop93 # 2: down to label40 # BB#74: # %if.end127 @@ -1295,17 +1295,17 @@ main: # @main # Parent Loop BB18_55 Depth=1 # => This Inner Loop Header: Depth=2 loop # label85: - i64.const $push373=, 1 - i64.shl $push94=, $pop373, $8 + i64.const $push367=, 1 + i64.shl $push94=, $pop367, $8 i64.and $push95=, $pop94, $9 - i64.const $push372=, 0 - i64.ne $push96=, $pop95, $pop372 + i64.const $push366=, 0 + i64.ne $push96=, $pop95, $pop366 i32.add $10=, $pop96, $10 - i64.const $push371=, 1 - i64.add $push370=, $8, $pop371 - tee_local $push369=, $8=, $pop370 - i64.const $push368=, 64 - i64.ne $push97=, $pop369, $pop368 + i64.const $push365=, 1 + i64.add $push364=, $8, $pop365 + tee_local $push363=, $8=, $pop364 + i64.const $push362=, 64 + i64.ne $push97=, $pop363, $pop362 br_if 0, $pop97 # 0: up to label85 # BB#76: # %my_popcountll.exit2112 # in Loop: Header=BB18_55 Depth=1 @@ -1321,32 +1321,32 @@ main: # @main # Parent Loop BB18_55 Depth=1 # => This Inner Loop Header: Depth=2 loop # label87: - i64.const $push379=, 1 - i64.shl $push100=, $pop379, $8 + i64.const $push373=, 1 + i64.shl $push100=, $pop373, $8 i64.and $push101=, $pop100, $9 - i64.const $push378=, 0 - i64.ne $push102=, $pop101, $pop378 + i64.const $push372=, 0 + i64.ne $push102=, $pop101, $pop372 i32.add $3=, $pop102, $3 - i64.const $push377=, 1 - i64.add $push376=, $8, $pop377 - tee_local $push375=, $8=, $pop376 - i64.const $push374=, 64 - i64.ne $push103=, $pop375, $pop374 + i64.const $push371=, 1 + i64.add $push370=, $8, $pop371 + tee_local $push369=, $8=, $pop370 + i64.const $push368=, 64 + i64.ne $push103=, $pop369, $pop368 br_if 0, $pop103 # 0: up to label87 # BB#79: # %my_parityll.exit2199 # in Loop: Header=BB18_55 Depth=1 end_loop # label88: i32.xor $push104=, $3, $10 - i32.const $push380=, 1 - i32.and $push105=, $pop104, $pop380 + i32.const $push374=, 1 + i32.and $push105=, $pop104, $pop374 br_if 3, $pop105 # 3: down to label39 # BB#80: # %for.cond90 # in Loop: Header=BB18_55 Depth=1 - i32.const $push384=, 1 - i32.add $push383=, $5, $pop384 - tee_local $push382=, $5=, $pop383 - i32.const $push381=, 12 - i32.le_u $push106=, $pop382, $pop381 + i32.const $push378=, 1 + i32.add $push377=, $5, $pop378 + tee_local $push376=, $5=, $pop377 + i32.const $push375=, 12 + i32.le_u $push106=, $pop376, $pop375 br_if 0, $pop106 # 0: up to label73 # BB#81: # %if.end148 end_loop # label74: @@ -1408,28 +1408,28 @@ main: # @main i32.ne $push142=, $pop140, $pop141 br_if 0, $pop142 # 0: down to label40 # BB#92: # %if.end423 - i32.const $push385=, -1 - i32.call $5=, __builtin_clrsb@FUNCTION, $pop385 + i32.const $push379=, -1 + i32.call $5=, __builtin_clrsb@FUNCTION, $pop379 i32.const $10=, 30 i32.const $3=, 1 .LBB18_93: # %for.body.i1935 # =>This Inner Loop Header: Depth=1 loop # label89: - i32.const $push387=, -1 - i32.shr_u $push143=, $pop387, $10 - i32.const $push386=, 1 - i32.and $push144=, $pop143, $pop386 - i32.eqz $push437=, $pop144 - br_if 1, $pop437 # 1: down to label90 + i32.const $push381=, -1 + i32.shr_u $push143=, $pop381, $10 + i32.const $push380=, 1 + i32.and $push144=, $pop143, $pop380 + i32.eqz $push431=, $pop144 + br_if 1, $pop431 # 1: down to label90 # BB#94: # %for.inc.i1938 # in Loop: Header=BB18_93 Depth=1 - i32.const $push392=, -1 - i32.add $10=, $10, $pop392 - i32.const $push391=, 1 - i32.add $push390=, $3, $pop391 - tee_local $push389=, $3=, $pop390 - i32.const $push388=, 32 - i32.lt_u $push145=, $pop389, $pop388 + i32.const $push386=, -1 + i32.add $10=, $10, $pop386 + i32.const $push385=, 1 + i32.add $push384=, $3, $pop385 + tee_local $push383=, $3=, $pop384 + i32.const $push382=, 32 + i32.lt_u $push145=, $pop383, $pop382 br_if 0, $pop145 # 0: up to label89 .LBB18_95: # %my_clrsb.exit1942 end_loop # label90: @@ -1439,8 +1439,8 @@ main: # @main br_if 0, $pop148 # 0: down to label40 # BB#96: # %if.end440 i64.const $9=, 0 - i64.const $push393=, 0 - i32.call $push149=, __builtin_clrsbll@FUNCTION, $pop393 + i64.const $push387=, 0 + i32.call $push149=, __builtin_clrsbll@FUNCTION, $pop387 i32.const $push150=, 63 i32.ne $push151=, $pop149, $pop150 br_if 0, $pop151 # 0: down to label40 @@ -1451,19 +1451,19 @@ main: # @main # =>This Inner Loop Header: Depth=1 loop # label91: i32.wrap/i64 $push152=, $8 - i32.eqz $push438=, $pop152 - br_if 1, $pop438 # 1: down to label92 + i32.eqz $push432=, $pop152 + br_if 1, $pop432 # 1: down to label92 # BB#99: # %for.inc.i1848 # in Loop: Header=BB18_98 Depth=1 - i64.const $push399=, -1 - i64.add $8=, $8, $pop399 - i32.const $push398=, 1 - i32.add $10=, $10, $pop398 - i64.const $push397=, 1 - i64.add $push396=, $9, $pop397 - tee_local $push395=, $9=, $pop396 - i64.const $push394=, 64 - i64.lt_u $push153=, $pop395, $pop394 + i64.const $push393=, -1 + i64.add $8=, $8, $pop393 + i32.const $push392=, 1 + i32.add $10=, $10, $pop392 + i64.const $push391=, 1 + i64.add $push390=, $9, $pop391 + tee_local $push389=, $9=, $pop390 + i64.const $push388=, 64 + i64.lt_u $push153=, $pop389, $pop388 br_if 0, $pop153 # 0: up to label91 .LBB18_100: # %my_clzll.exit1851 end_loop # label92: @@ -1471,24 +1471,24 @@ main: # @main i32.ne $push155=, $10, $pop154 br_if 0, $pop155 # 0: down to label40 # BB#101: # %if.end465 - i64.const $push400=, 1 - i32.call $3=, __builtin_clrsbll@FUNCTION, $pop400 + i64.const $push394=, 1 + i32.call $3=, __builtin_clrsbll@FUNCTION, $pop394 i64.const $8=, 1 .LBB18_102: # %for.body.i1799 # =>This Inner Loop Header: Depth=1 loop # label93: i32.const $10=, 62 - i64.const $push401=, 63 - i64.eq $push156=, $8, $pop401 + i64.const $push395=, 63 + i64.eq $push156=, $8, $pop395 br_if 1, $pop156 # 1: down to label94 # BB#103: # %for.inc.i1803 # in Loop: Header=BB18_102 Depth=1 i32.const $10=, 63 - i64.const $push405=, 1 - i64.add $push404=, $8, $pop405 - tee_local $push403=, $8=, $pop404 - i64.const $push402=, 64 - i64.lt_u $push157=, $pop403, $pop402 + i64.const $push399=, 1 + i64.add $push398=, $8, $pop399 + tee_local $push397=, $8=, $pop398 + i64.const $push396=, 64 + i64.lt_u $push157=, $pop397, $pop396 br_if 0, $pop157 # 0: up to label93 .LBB18_104: # %my_clrsbll.exit1807 end_loop # label94: @@ -1500,16 +1500,16 @@ main: # @main # =>This Inner Loop Header: Depth=1 block loop # label96: - i64.const $push406=, 63 - i64.eq $push159=, $8, $pop406 + i64.const $push400=, 63 + i64.eq $push159=, $8, $pop400 br_if 2, $pop159 # 2: down to label95 # BB#107: # %for.inc.i1763 # in Loop: Header=BB18_106 Depth=1 - i64.const $push410=, 1 - i64.add $push409=, $8, $pop410 - tee_local $push408=, $8=, $pop409 - i64.const $push407=, 64 - i64.lt_u $push160=, $pop408, $pop407 + i64.const $push404=, 1 + i64.add $push403=, $8, $pop404 + tee_local $push402=, $8=, $pop403 + i64.const $push401=, 64 + i64.lt_u $push160=, $pop402, $pop401 br_if 0, $pop160 # 0: up to label96 # BB#108: # %if.then481 end_loop # label97: @@ -1522,16 +1522,16 @@ main: # @main # =>This Inner Loop Header: Depth=1 block loop # label99: - i64.const $push411=, 63 - i64.eq $push161=, $8, $pop411 + i64.const $push405=, 63 + i64.eq $push161=, $8, $pop405 br_if 2, $pop161 # 2: down to label98 # BB#111: # %for.inc.i1735 # in Loop: Header=BB18_110 Depth=1 - i64.const $push415=, 1 - i64.add $push414=, $8, $pop415 - tee_local $push413=, $8=, $pop414 - i64.const $push412=, 64 - i64.lt_u $push162=, $pop413, $pop412 + i64.const $push409=, 1 + i64.add $push408=, $8, $pop409 + tee_local $push407=, $8=, $pop408 + i64.const $push406=, 64 + i64.lt_u $push162=, $pop407, $pop406 br_if 0, $pop162 # 0: up to label99 # BB#112: # %if.then489 end_loop # label100: @@ -1543,135 +1543,129 @@ main: # @main i32.call $push164=, __builtin_clrsbll@FUNCTION, $pop163 br_if 0, $pop164 # 0: down to label40 # BB#114: # %for.body.i1652.preheader + i32.const $10=, 63 i64.const $8=, 63 - i64.const $9=, -1 .LBB18_115: # %for.body.i1652 # =>This Inner Loop Header: Depth=1 loop # label101: - i64.const $push418=, 1 - i64.add $9=, $9, $pop418 - i32.wrap/i64 $10=, $8 - i64.const $push417=, -1 - i64.add $push3=, $8, $pop417 + i32.const $push412=, -1 + i32.add $10=, $10, $pop412 + i32.wrap/i64 $3=, $8 + i64.const $push411=, -1 + i64.add $push3=, $8, $pop411 copy_local $8=, $pop3 - i32.const $push416=, 1 - i32.ne $push165=, $10, $pop416 + i32.const $push410=, 1 + i32.ne $push165=, $3, $pop410 br_if 0, $pop165 # 0: up to label101 # BB#116: # %my_clzll.exit1659 end_loop # label102: - i32.wrap/i64 $push166=, $9 - i32.const $push167=, 62 - i32.ne $push168=, $pop166, $pop167 - br_if 0, $pop168 # 0: down to label40 + br_if 0, $10 # 0: down to label40 # BB#117: # %for.body.i1612 - i64.const $push169=, 2 - i32.call $push170=, __builtin_clrsbll@FUNCTION, $pop169 - i32.const $push171=, 61 - i32.ne $push172=, $pop170, $pop171 - br_if 0, $pop172 # 0: down to label40 + i64.const $push166=, 2 + i32.call $push167=, __builtin_clrsbll@FUNCTION, $pop166 + i32.const $push168=, 61 + i32.ne $push169=, $pop167, $pop168 + br_if 0, $pop169 # 0: down to label40 # BB#118: # %my_clrsbll.exit1525 - i64.const $push173=, 4611686018427387904 - i32.call $push174=, __builtin_clrsbll@FUNCTION, $pop173 - br_if 0, $pop174 # 0: down to label40 + i64.const $push170=, 4611686018427387904 + i32.call $push171=, __builtin_clrsbll@FUNCTION, $pop170 + br_if 0, $pop171 # 0: down to label40 # BB#119: # %for.body.i1425 - i64.const $push175=, 4294967296 - i32.call $push176=, __builtin_clrsbll@FUNCTION, $pop175 - i32.const $push177=, 30 - i32.ne $push178=, $pop176, $pop177 - br_if 0, $pop178 # 0: down to label40 + i64.const $push172=, 4294967296 + i32.call $push173=, __builtin_clrsbll@FUNCTION, $pop172 + i32.const $push174=, 30 + i32.ne $push175=, $pop173, $pop174 + br_if 0, $pop175 # 0: down to label40 # BB#120: # %for.body.i1332 - i64.const $push179=, 2147483648 - i32.call $push180=, __builtin_clrsbll@FUNCTION, $pop179 - i32.const $push181=, 31 - i32.ne $push182=, $pop180, $pop181 - br_if 0, $pop182 # 0: down to label40 + i64.const $push176=, 2147483648 + i32.call $push177=, __builtin_clrsbll@FUNCTION, $pop176 + i32.const $push178=, 31 + i32.ne $push179=, $pop177, $pop178 + br_if 0, $pop179 # 0: down to label40 # BB#121: # %my_clrsbll.exit1245 - i64.const $push183=, -6510615555426900571 - i32.call $push184=, __builtin_clrsbll@FUNCTION, $pop183 - br_if 0, $pop184 # 0: down to label40 + i64.const $push180=, -6510615555426900571 + i32.call $push181=, __builtin_clrsbll@FUNCTION, $pop180 + br_if 0, $pop181 # 0: down to label40 # BB#122: # %my_clrsbll.exit1152 - i64.const $push185=, 6510615555426900570 - i32.call $push186=, __builtin_clrsbll@FUNCTION, $pop185 - br_if 0, $pop186 # 0: down to label40 + i64.const $push182=, 6510615555426900570 + i32.call $push183=, __builtin_clrsbll@FUNCTION, $pop182 + br_if 0, $pop183 # 0: down to label40 # BB#123: # %for.body.i1053 - i64.const $push187=, -3819392241693097984 - i32.call $push188=, __builtin_clrsbll@FUNCTION, $pop187 - i32.const $push189=, 1 - i32.ne $push190=, $pop188, $pop189 - br_if 0, $pop190 # 0: down to label40 + i64.const $push184=, -3819392241693097984 + i32.call $push185=, __builtin_clrsbll@FUNCTION, $pop184 + i32.const $push186=, 1 + i32.ne $push187=, $pop185, $pop186 + br_if 0, $pop187 # 0: down to label40 # BB#124: # %for.body.i964 - i64.const $push191=, 223195676147712 - i32.call $push192=, __builtin_clrsbll@FUNCTION, $pop191 - i32.const $push193=, 15 - i32.ne $push194=, $pop192, $pop193 - br_if 0, $pop194 # 0: down to label40 + i64.const $push188=, 223195676147712 + i32.call $push189=, __builtin_clrsbll@FUNCTION, $pop188 + i32.const $push190=, 15 + i32.ne $push191=, $pop189, $pop190 + br_if 0, $pop191 # 0: down to label40 # BB#125: # %for.body.i913.preheader + i32.const $10=, 33 i64.const $8=, 63 - i64.const $9=, -1 .LBB18_126: # %for.body.i913 # =>This Inner Loop Header: Depth=1 loop # label103: - i64.const $push423=, 1 - i64.add $9=, $9, $pop423 - i64.const $push422=, 4294967295 - i64.and $7=, $8, $pop422 - i64.const $push421=, -1 - i64.add $push4=, $8, $pop421 + i32.const $push417=, -1 + i32.add $10=, $10, $pop417 + i64.const $push416=, 4294967295 + i64.and $9=, $8, $pop416 + i64.const $push415=, -1 + i64.add $push4=, $8, $pop415 copy_local $8=, $pop4 - i64.const $push420=, 1 - i64.shl $push195=, $pop420, $7 - i64.const $push419=, 3405695742 - i64.and $push196=, $pop195, $pop419 - i64.eqz $push197=, $pop196 - br_if 0, $pop197 # 0: up to label103 + i64.const $push414=, 1 + i64.shl $push192=, $pop414, $9 + i64.const $push413=, 3405695742 + i64.and $push193=, $pop192, $pop413 + i64.eqz $push194=, $pop193 + br_if 0, $pop194 # 0: up to label103 # BB#127: # %my_clzll.exit end_loop # label104: - i32.wrap/i64 $push198=, $9 - i32.const $push199=, 32 - i32.ne $push200=, $pop198, $pop199 - br_if 0, $pop200 # 0: down to label40 + br_if 0, $10 # 0: down to label40 # BB#128: # %for.body.i877 - i64.const $push201=, 3405695742 - i32.call $push202=, __builtin_clrsbll@FUNCTION, $pop201 - i32.const $push203=, 31 - i32.ne $push204=, $pop202, $pop203 - br_if 0, $pop204 # 0: down to label40 + i64.const $push195=, 3405695742 + i32.call $push196=, __builtin_clrsbll@FUNCTION, $pop195 + i32.const $push197=, 31 + i32.ne $push198=, $pop196, $pop197 + br_if 0, $pop198 # 0: down to label40 # BB#129: # %if.end740 - i64.const $push424=, -1 - i32.call $3=, __builtin_clrsbll@FUNCTION, $pop424 + i64.const $push418=, -1 + i32.call $3=, __builtin_clrsbll@FUNCTION, $pop418 i64.const $8=, 62 i64.const $9=, 1 i32.const $10=, 1 .LBB18_130: # %for.body.i812 # =>This Inner Loop Header: Depth=1 loop # label105: - i64.const $push426=, -1 - i64.shr_u $push205=, $pop426, $8 - i64.const $push425=, 1 - i64.and $push206=, $pop205, $pop425 - i64.eqz $push207=, $pop206 - br_if 1, $pop207 # 1: down to label106 + i64.const $push420=, -1 + i64.shr_u $push199=, $pop420, $8 + i64.const $push419=, 1 + i64.and $push200=, $pop199, $pop419 + i64.eqz $push201=, $pop200 + br_if 1, $pop201 # 1: down to label106 # BB#131: # %for.inc.i816 # in Loop: Header=BB18_130 Depth=1 - i64.const $push432=, -1 - i64.add $8=, $8, $pop432 - i32.const $push431=, 1 - i32.add $10=, $10, $pop431 - i64.const $push430=, 1 - i64.add $push429=, $9, $pop430 - tee_local $push428=, $9=, $pop429 - i64.const $push427=, 64 - i64.lt_u $push208=, $pop428, $pop427 - br_if 0, $pop208 # 0: up to label105 + i64.const $push426=, -1 + i64.add $8=, $8, $pop426 + i32.const $push425=, 1 + i32.add $10=, $10, $pop425 + i64.const $push424=, 1 + i64.add $push423=, $9, $pop424 + tee_local $push422=, $9=, $pop423 + i64.const $push421=, 64 + i64.lt_u $push202=, $pop422, $pop421 + br_if 0, $pop202 # 0: up to label105 .LBB18_132: # %my_clrsbll.exit end_loop # label106: - i32.const $push209=, -1 - i32.add $push210=, $10, $pop209 - i32.ne $push211=, $3, $pop210 - br_if 0, $pop211 # 0: down to label40 + i32.const $push203=, -1 + i32.add $push204=, $10, $pop203 + i32.ne $push205=, $3, $pop204 + br_if 0, $pop205 # 0: down to label40 # BB#133: # %if.end753 - i32.const $push212=, 0 - call exit@FUNCTION, $pop212 + i32.const $push206=, 0 + call exit@FUNCTION, $pop206 unreachable .LBB18_134: # %if.then37 end_block # label40: @@ -1750,3 +1744,8 @@ longlongs: .ident "clang version 3.9.0 " + .functype abort, void + .functype __builtin_clrsb, i32 + .functype __builtin_clrsbl, i32 + .functype __builtin_clrsbll, i32 + .functype exit, void, i32 diff --git a/test/torture-s/builtin-constant.c.s b/test/torture-s/builtin-constant.c.s index 65db50625..85b7a2dcd 100644 --- a/test/torture-s/builtin-constant.c.s +++ b/test/torture-s/builtin-constant.c.s @@ -48,3 +48,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/builtin-prefetch-1.c.s b/test/torture-s/builtin-prefetch-1.c.s index eefadb68f..1e197dc4c 100644 --- a/test/torture-s/builtin-prefetch-1.c.s +++ b/test/torture-s/builtin-prefetch-1.c.s @@ -81,3 +81,4 @@ arr: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/builtin-prefetch-2.c.s b/test/torture-s/builtin-prefetch-2.c.s index 97c5b325a..e1a6e51ee 100644 --- a/test/torture-s/builtin-prefetch-2.c.s +++ b/test/torture-s/builtin-prefetch-2.c.s @@ -180,3 +180,4 @@ ptr_str: .lcomm simple_static_local.ix,4,2 .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/builtin-prefetch-3.c.s b/test/torture-s/builtin-prefetch-3.c.s index bd295bdb5..fa75a9037 100644 --- a/test/torture-s/builtin-prefetch-3.c.s +++ b/test/torture-s/builtin-prefetch-3.c.s @@ -249,3 +249,4 @@ stat_vol_ptr_vol_int: .lcomm stat_int_arr,400,4 .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/builtin-prefetch-4.c.s b/test/torture-s/builtin-prefetch-4.c.s index 54fd4fb4f..2b92f3ef8 100644 --- a/test/torture-s/builtin-prefetch-4.c.s +++ b/test/torture-s/builtin-prefetch-4.c.s @@ -536,3 +536,5 @@ getintcnt: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/builtin-prefetch-5.c.s b/test/torture-s/builtin-prefetch-5.c.s index 192baccce..6bd6b645b 100644 --- a/test/torture-s/builtin-prefetch-5.c.s +++ b/test/torture-s/builtin-prefetch-5.c.s @@ -114,3 +114,4 @@ s: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/builtin-prefetch-6.c.s b/test/torture-s/builtin-prefetch-6.c.s index aedf8cdf4..eecdbc1b6 100644 --- a/test/torture-s/builtin-prefetch-6.c.s +++ b/test/torture-s/builtin-prefetch-6.c.s @@ -176,3 +176,4 @@ arr_used: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/builtin-types-compatible-p.c.s b/test/torture-s/builtin-types-compatible-p.c.s index e2786d532..d7f13e9f3 100644 --- a/test/torture-s/builtin-types-compatible-p.c.s +++ b/test/torture-s/builtin-types-compatible-p.c.s @@ -43,3 +43,4 @@ rootbeer: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/call-trap-1.c.s b/test/torture-s/call-trap-1.c.s index 9cc69c964..2dc8742f6 100644 --- a/test/torture-s/call-trap-1.c.s +++ b/test/torture-s/call-trap-1.c.s @@ -40,3 +40,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/cbrt.c.s b/test/torture-s/cbrt.c.s index 2fea5fd4b..22e64401d 100644 --- a/test/torture-s/cbrt.c.s +++ b/test/torture-s/cbrt.c.s @@ -156,3 +156,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/cmpdi-1.c.s b/test/torture-s/cmpdi-1.c.s index 84c289e34..016317f06 100644 --- a/test/torture-s/cmpdi-1.c.s +++ b/test/torture-s/cmpdi-1.c.s @@ -1002,3 +1002,5 @@ correct_results: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/cmpsf-1.c.s b/test/torture-s/cmpsf-1.c.s index 28b874bd8..9ca4f4571 100644 --- a/test/torture-s/cmpsf-1.c.s +++ b/test/torture-s/cmpsf-1.c.s @@ -648,3 +648,5 @@ correct_results: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/cmpsi-1.c.s b/test/torture-s/cmpsi-1.c.s index 50e057831..7e8bb1fe9 100644 --- a/test/torture-s/cmpsi-1.c.s +++ b/test/torture-s/cmpsi-1.c.s @@ -78,3 +78,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/cmpsi-2.c.s b/test/torture-s/cmpsi-2.c.s index d964473e9..642c17cea 100644 --- a/test/torture-s/cmpsi-2.c.s +++ b/test/torture-s/cmpsi-2.c.s @@ -1002,3 +1002,5 @@ correct_results: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/compare-1.c.s b/test/torture-s/compare-1.c.s index 9de5c5ba2..9ff4967fc 100644 --- a/test/torture-s/compare-1.c.s +++ b/test/torture-s/compare-1.c.s @@ -265,3 +265,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/complex-1.c.s b/test/torture-s/complex-1.c.s index 6130c51d3..3fb6de45b 100644 --- a/test/torture-s/complex-1.c.s +++ b/test/torture-s/complex-1.c.s @@ -74,3 +74,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/complex-2.c.s b/test/torture-s/complex-2.c.s index 98519ef88..0e9b8b653 100644 --- a/test/torture-s/complex-2.c.s +++ b/test/torture-s/complex-2.c.s @@ -73,3 +73,5 @@ bg: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/complex-3.c.s b/test/torture-s/complex-3.c.s index 07c316dcf..95009cd1c 100644 --- a/test/torture-s/complex-3.c.s +++ b/test/torture-s/complex-3.c.s @@ -30,3 +30,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/complex-4.c.s b/test/torture-s/complex-4.c.s index 1fcf0db3b..fb102a523 100644 --- a/test/torture-s/complex-4.c.s +++ b/test/torture-s/complex-4.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/complex-5.c.s b/test/torture-s/complex-5.c.s index e52c552a8..b1fdb0ebe 100644 --- a/test/torture-s/complex-5.c.s +++ b/test/torture-s/complex-5.c.s @@ -131,3 +131,6 @@ z: .ident "clang version 3.9.0 " + .functype __divsc3, void, i32, f32, f32, f32, f32 + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/complex-7.c.s b/test/torture-s/complex-7.c.s index 7c0390fcc..59d206e5b 100644 --- a/test/torture-s/complex-7.c.s +++ b/test/torture-s/complex-7.c.s @@ -781,3 +781,5 @@ ld5: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/compndlit-1.c.s b/test/torture-s/compndlit-1.c.s index fbc78ec1a..2e87f4949 100644 --- a/test/torture-s/compndlit-1.c.s +++ b/test/torture-s/compndlit-1.c.s @@ -49,3 +49,5 @@ x: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/const-addr-expr-1.c.s b/test/torture-s/const-addr-expr-1.c.s index 3d39e601d..5432ed37e 100644 --- a/test/torture-s/const-addr-expr-1.c.s +++ b/test/torture-s/const-addr-expr-1.c.s @@ -77,3 +77,4 @@ Upgd_minor_ID1: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/conversion.c.s b/test/torture-s/conversion.c.s index 6ac3dc8eb..5c65ed8bb 100644 --- a/test/torture-s/conversion.c.s +++ b/test/torture-s/conversion.c.s @@ -597,3 +597,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/cvt-1.c.s b/test/torture-s/cvt-1.c.s index 4f50c318f..30ceb7353 100644 --- a/test/torture-s/cvt-1.c.s +++ b/test/torture-s/cvt-1.c.s @@ -44,3 +44,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/dbra-1.c.s b/test/torture-s/dbra-1.c.s index ea13eb787..19747f835 100644 --- a/test/torture-s/dbra-1.c.s +++ b/test/torture-s/dbra-1.c.s @@ -269,3 +269,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/divcmp-3.c.s b/test/torture-s/divcmp-3.c.s index 1ffbeae50..7b6162864 100644 --- a/test/torture-s/divcmp-3.c.s +++ b/test/torture-s/divcmp-3.c.s @@ -219,3 +219,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/divconst-1.c.s b/test/torture-s/divconst-1.c.s index bdb3245bd..0b41e962e 100644 --- a/test/torture-s/divconst-1.c.s +++ b/test/torture-s/divconst-1.c.s @@ -33,3 +33,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/divconst-2.c.s b/test/torture-s/divconst-2.c.s index a52df43bf..c96fe67f9 100644 --- a/test/torture-s/divconst-2.c.s +++ b/test/torture-s/divconst-2.c.s @@ -119,3 +119,5 @@ nums: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/divconst-3.c.s b/test/torture-s/divconst-3.c.s index a516c81a4..694568746 100644 --- a/test/torture-s/divconst-3.c.s +++ b/test/torture-s/divconst-3.c.s @@ -31,3 +31,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/divmod-1.c.s b/test/torture-s/divmod-1.c.s index 32acdd441..a2a2e9549 100644 --- a/test/torture-s/divmod-1.c.s +++ b/test/torture-s/divmod-1.c.s @@ -158,3 +158,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/doloop-1.c.s b/test/torture-s/doloop-1.c.s index 326b58052..75a2d67b5 100644 --- a/test/torture-s/doloop-1.c.s +++ b/test/torture-s/doloop-1.c.s @@ -55,3 +55,5 @@ i: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/doloop-2.c.s b/test/torture-s/doloop-2.c.s index bc8ce7a90..3df864a21 100644 --- a/test/torture-s/doloop-2.c.s +++ b/test/torture-s/doloop-2.c.s @@ -55,3 +55,5 @@ i: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/eeprof-1.c.s b/test/torture-s/eeprof-1.c.s index 79826cfb1..507b441d1 100644 --- a/test/torture-s/eeprof-1.c.s +++ b/test/torture-s/eeprof-1.c.s @@ -289,3 +289,4 @@ last_fn_exited: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/enum-1.c.s b/test/torture-s/enum-1.c.s index 8367f0823..c7d82af19 100644 --- a/test/torture-s/enum-1.c.s +++ b/test/torture-s/enum-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/enum-2.c.s b/test/torture-s/enum-2.c.s index 521cbd224..5aac37d7e 100644 --- a/test/torture-s/enum-2.c.s +++ b/test/torture-s/enum-2.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/enum-3.c.s b/test/torture-s/enum-3.c.s index 31d1e2cef..b2c47fdb7 100644 --- a/test/torture-s/enum-3.c.s +++ b/test/torture-s/enum-3.c.s @@ -48,3 +48,4 @@ p: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/ffs-1.c.s b/test/torture-s/ffs-1.c.s index 6c3ad3deb..df0bab83b 100644 --- a/test/torture-s/ffs-1.c.s +++ b/test/torture-s/ffs-1.c.s @@ -34,3 +34,5 @@ a: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/ffs-2.c.s b/test/torture-s/ffs-2.c.s index e3e605140..0d733d65b 100644 --- a/test/torture-s/ffs-2.c.s +++ b/test/torture-s/ffs-2.c.s @@ -174,3 +174,5 @@ ffstesttab: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/float-floor.c.s b/test/torture-s/float-floor.c.s index e35e0bdda..2ceb79690 100644 --- a/test/torture-s/float-floor.c.s +++ b/test/torture-s/float-floor.c.s @@ -45,3 +45,5 @@ d: .ident "clang version 3.9.0 " + .functype floor, f64, f64 + .functype abort, void diff --git a/test/torture-s/floatunsisf-1.c.s b/test/torture-s/floatunsisf-1.c.s index 6ea0c26d7..1eecede08 100644 --- a/test/torture-s/floatunsisf-1.c.s +++ b/test/torture-s/floatunsisf-1.c.s @@ -63,3 +63,5 @@ f2: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/fprintf-1.c.s b/test/torture-s/fprintf-1.c.s index 3b360b74d..9348c5243 100644 --- a/test/torture-s/fprintf-1.c.s +++ b/test/torture-s/fprintf-1.c.s @@ -198,3 +198,7 @@ main: # @main .ident "clang version 3.9.0 " + .functype fprintf, i32, i32, i32 + .functype abort, void + .functype fwrite, i32, i32, i32, i32, i32 + .functype fputc, i32, i32, i32 diff --git a/test/torture-s/fprintf-chk-1.c.s b/test/torture-s/fprintf-chk-1.c.s index da53bb7d3..d7f3fff42 100644 --- a/test/torture-s/fprintf-chk-1.c.s +++ b/test/torture-s/fprintf-chk-1.c.s @@ -423,3 +423,5 @@ should_optimize: .ident "clang version 3.9.0 " + .functype abort, void + .functype vfprintf, i32, i32, i32, i32 diff --git a/test/torture-s/frame-address.c.s b/test/torture-s/frame-address.c.s index 69bfbfad7..acc492d45 100644 --- a/test/torture-s/frame-address.c.s +++ b/test/torture-s/frame-address.c.s @@ -131,3 +131,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/func-ptr-1.c.s b/test/torture-s/func-ptr-1.c.s index 16338dc16..66fb35726 100644 --- a/test/torture-s/func-ptr-1.c.s +++ b/test/torture-s/func-ptr-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/gofast.c.s b/test/torture-s/gofast.c.s index af6709975..0cfc2b625 100644 --- a/test/torture-s/gofast.c.s +++ b/test/torture-s/gofast.c.s @@ -496,3 +496,6 @@ fail_count: .ident "clang version 3.9.0 " + .functype fprintf, i32, i32, i32 + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/ifcvt-onecmpl-abs-1.c.s b/test/torture-s/ifcvt-onecmpl-abs-1.c.s index 849c716a3..199510d10 100644 --- a/test/torture-s/ifcvt-onecmpl-abs-1.c.s +++ b/test/torture-s/ifcvt-onecmpl-abs-1.c.s @@ -40,3 +40,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/index-1.c.s b/test/torture-s/index-1.c.s index 8794c31c0..c5fcfd05d 100644 --- a/test/torture-s/index-1.c.s +++ b/test/torture-s/index-1.c.s @@ -93,3 +93,5 @@ a: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/inst-check.c.s b/test/torture-s/inst-check.c.s index 6fd027f32..a81f49c2e 100644 --- a/test/torture-s/inst-check.c.s +++ b/test/torture-s/inst-check.c.s @@ -52,3 +52,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/int-compare.c.s b/test/torture-s/int-compare.c.s index db793e650..b6d612e3c 100644 --- a/test/torture-s/int-compare.c.s +++ b/test/torture-s/int-compare.c.s @@ -125,3 +125,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/ipa-sra-2.c.s b/test/torture-s/ipa-sra-2.c.s index ed7b15618..aa6eec12c 100644 --- a/test/torture-s/ipa-sra-2.c.s +++ b/test/torture-s/ipa-sra-2.c.s @@ -40,3 +40,5 @@ foo: # @foo .ident "clang version 3.9.0 " + .functype calloc, i32, i32, i32 + .functype free, void, i32 diff --git a/test/torture-s/longlong.c.s b/test/torture-s/longlong.c.s index 8215b86e8..071593b95 100644 --- a/test/torture-s/longlong.c.s +++ b/test/torture-s/longlong.c.s @@ -128,3 +128,5 @@ pars: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/loop-1.c.s b/test/torture-s/loop-1.c.s index 8bbab14de..ed9eb987c 100644 --- a/test/torture-s/loop-1.c.s +++ b/test/torture-s/loop-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/loop-10.c.s b/test/torture-s/loop-10.c.s index 91f8b8270..1f562941a 100644 --- a/test/torture-s/loop-10.c.s +++ b/test/torture-s/loop-10.c.s @@ -32,3 +32,4 @@ main: # @main .lcomm count,4,2 .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/loop-11.c.s b/test/torture-s/loop-11.c.s index 70ce26405..ab5aec223 100644 --- a/test/torture-s/loop-11.c.s +++ b/test/torture-s/loop-11.c.s @@ -59,3 +59,4 @@ main: # @main .lcomm a,796,4 .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/loop-14.c.s b/test/torture-s/loop-14.c.s index 0bcb7bd7a..52fa703c4 100644 --- a/test/torture-s/loop-14.c.s +++ b/test/torture-s/loop-14.c.s @@ -42,3 +42,4 @@ a3: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/loop-15.c.s b/test/torture-s/loop-15.c.s index 2f655538c..1cfae57f5 100644 --- a/test/torture-s/loop-15.c.s +++ b/test/torture-s/loop-15.c.s @@ -220,3 +220,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/loop-2.c.s b/test/torture-s/loop-2.c.s index da07e74c5..9165bda77 100644 --- a/test/torture-s/loop-2.c.s +++ b/test/torture-s/loop-2.c.s @@ -65,3 +65,4 @@ a: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/loop-2b.c.s b/test/torture-s/loop-2b.c.s index 2fed50bdb..e712aab55 100644 --- a/test/torture-s/loop-2b.c.s +++ b/test/torture-s/loop-2b.c.s @@ -74,3 +74,4 @@ a: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/loop-2c.c.s b/test/torture-s/loop-2c.c.s index 96a6ee195..eff0471a7 100644 --- a/test/torture-s/loop-2c.c.s +++ b/test/torture-s/loop-2c.c.s @@ -116,3 +116,4 @@ a: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/loop-2d.c.s b/test/torture-s/loop-2d.c.s index 18bd3c5a9..8ff8b64b0 100644 --- a/test/torture-s/loop-2d.c.s +++ b/test/torture-s/loop-2d.c.s @@ -73,3 +73,4 @@ a: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/loop-2f.c.s b/test/torture-s/loop-2f.c.s index 51497cfc3..b58fa4a5a 100644 --- a/test/torture-s/loop-2f.c.s +++ b/test/torture-s/loop-2f.c.s @@ -74,3 +74,6 @@ main: # @main .ident "clang version 3.9.0 " + .functype open, i32, i32, i32 + .functype mmap, i32, i32, i32, i32, i32, i32, i64 + .functype exit, void, i32 diff --git a/test/torture-s/loop-2g.c.s b/test/torture-s/loop-2g.c.s index d9c884975..ed5723d57 100644 --- a/test/torture-s/loop-2g.c.s +++ b/test/torture-s/loop-2g.c.s @@ -74,3 +74,6 @@ main: # @main .ident "clang version 3.9.0 " + .functype open, i32, i32, i32 + .functype mmap, i32, i32, i32, i32, i32, i32, i64 + .functype exit, void, i32 diff --git a/test/torture-s/loop-3.c.s b/test/torture-s/loop-3.c.s index d85322f03..9518ef030 100644 --- a/test/torture-s/loop-3.c.s +++ b/test/torture-s/loop-3.c.s @@ -89,3 +89,5 @@ n: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/loop-3b.c.s b/test/torture-s/loop-3b.c.s index f0f94dc83..57ea5ee04 100644 --- a/test/torture-s/loop-3b.c.s +++ b/test/torture-s/loop-3b.c.s @@ -93,3 +93,5 @@ n: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/loop-3c.c.s b/test/torture-s/loop-3c.c.s index 9e781559a..d4ff59f9b 100644 --- a/test/torture-s/loop-3c.c.s +++ b/test/torture-s/loop-3c.c.s @@ -78,3 +78,4 @@ a: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/loop-4.c.s b/test/torture-s/loop-4.c.s index e0e7bedc7..860a28f14 100644 --- a/test/torture-s/loop-4.c.s +++ b/test/torture-s/loop-4.c.s @@ -29,3 +29,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/loop-4b.c.s b/test/torture-s/loop-4b.c.s index 5502652af..a397b7f8f 100644 --- a/test/torture-s/loop-4b.c.s +++ b/test/torture-s/loop-4b.c.s @@ -29,3 +29,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/loop-5.c.s b/test/torture-s/loop-5.c.s index 860bc0144..0549badd7 100644 --- a/test/torture-s/loop-5.c.s +++ b/test/torture-s/loop-5.c.s @@ -101,3 +101,5 @@ main: # @main .lcomm t,4,2 .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/loop-6.c.s b/test/torture-s/loop-6.c.s index 727e03543..4694f754f 100644 --- a/test/torture-s/loop-6.c.s +++ b/test/torture-s/loop-6.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/loop-7.c.s b/test/torture-s/loop-7.c.s index e990abc16..f64c89a95 100644 --- a/test/torture-s/loop-7.c.s +++ b/test/torture-s/loop-7.c.s @@ -62,3 +62,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/loop-8.c.s b/test/torture-s/loop-8.c.s index 30974f47d..02451fc00 100644 --- a/test/torture-s/loop-8.c.s +++ b/test/torture-s/loop-8.c.s @@ -101,3 +101,5 @@ a: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/loop-ivopts-2.c.s b/test/torture-s/loop-ivopts-2.c.s index 51d665658..e6ef02376 100644 --- a/test/torture-s/loop-ivopts-2.c.s +++ b/test/torture-s/loop-ivopts-2.c.s @@ -172,3 +172,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/lshrdi-1.c.s b/test/torture-s/lshrdi-1.c.s index d372bdd0f..66e502721 100644 --- a/test/torture-s/lshrdi-1.c.s +++ b/test/torture-s/lshrdi-1.c.s @@ -139,3 +139,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/mayalias-1.c.s b/test/torture-s/mayalias-1.c.s index 67b7db857..9081fb5ab 100644 --- a/test/torture-s/mayalias-1.c.s +++ b/test/torture-s/mayalias-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/mayalias-3.c.s b/test/torture-s/mayalias-3.c.s index e8a0a8442..6f29a4b8b 100644 --- a/test/torture-s/mayalias-3.c.s +++ b/test/torture-s/mayalias-3.c.s @@ -96,3 +96,4 @@ p: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/memcpy-1.c.s b/test/torture-s/memcpy-1.c.s index 7cb6ac19f..c4170156a 100644 --- a/test/torture-s/memcpy-1.c.s +++ b/test/torture-s/memcpy-1.c.s @@ -225,3 +225,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/memcpy-2.c.s b/test/torture-s/memcpy-2.c.s index 5e6338c29..da6cbbd7a 100644 --- a/test/torture-s/memcpy-2.c.s +++ b/test/torture-s/memcpy-2.c.s @@ -6,9 +6,9 @@ .type main,@function main: # @main .result i32 - .local i32, i32, i32, i32, i32, i32, i32, i32, i32 + .local i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - i32.const $0=, 0 + i32.const $1=, 0 .LBB0_1: # %for.cond1.preheader # =>This Loop Header: Depth=1 # Child Loop BB0_2 Depth 2 @@ -19,8 +19,8 @@ main: # @main block loop # label1: i32.const $push44=, u1 - i32.add $1=, $0, $pop44 - i32.const $2=, 0 + i32.add $2=, $1, $pop44 + i32.const $3=, 0 .LBB0_2: # %for.cond4.preheader # Parent Loop BB0_1 Depth=1 # => This Loop Header: Depth=2 @@ -30,10 +30,10 @@ main: # @main # Child Loop BB0_11 Depth 4 loop # label3: i32.const $push46=, 65 - i32.add $4=, $2, $pop46 + i32.add $5=, $3, $pop46 i32.const $push45=, u2 - i32.add $3=, $2, $pop45 - i32.const $5=, 1 + i32.add $4=, $3, $pop45 + i32.const $6=, 1 .LBB0_3: # %for.cond7.preheader # Parent Loop BB0_1 Depth=1 # Parent Loop BB0_2 Depth=2 @@ -45,9 +45,9 @@ main: # @main i32.const $push49=, u1 i32.const $push48=, 97 i32.const $push47=, 96 - i32.call $drop=, memset@FUNCTION, $pop49, $pop48, $pop47 - i32.const $8=, 65 - i32.const $6=, -96 + i32.call $0=, memset@FUNCTION, $pop49, $pop48, $pop47 + i32.const $9=, 65 + i32.const $7=, -96 .LBB0_4: # %for.body9 # Parent Loop BB0_1 Depth=1 # Parent Loop BB0_2 Depth=2 @@ -56,179 +56,177 @@ main: # @main loop # label7: i32.const $push57=, 65 i32.const $push56=, 24 - i32.shl $push1=, $8, $pop56 + i32.shl $push1=, $9, $pop56 i32.const $push55=, 24 i32.shr_s $push2=, $pop1, $pop55 i32.const $push54=, 95 i32.gt_s $push3=, $pop2, $pop54 - i32.select $push4=, $pop57, $8, $pop3 - i32.store8 $push0=, u2+96($6), $pop4 + i32.select $push4=, $pop57, $9, $pop3 + i32.store8 $push0=, u2+96($7), $pop4 i32.const $push53=, 1 - i32.add $8=, $pop0, $pop53 + i32.add $9=, $pop0, $pop53 i32.const $push52=, 1 - i32.add $push51=, $6, $pop52 - tee_local $push50=, $6=, $pop51 + i32.add $push51=, $7, $pop52 + tee_local $push50=, $7=, $pop51 br_if 0, $pop50 # 0: up to label7 # BB#5: # %for.end # in Loop: Header=BB0_3 Depth=3 end_loop # label8: - i32.call $drop=, memcpy@FUNCTION, $1, $3, $5 - i32.const $7=, u1 + i32.call $drop=, memcpy@FUNCTION, $2, $4, $6 + i32.const $8=, u1 block i32.const $push58=, 1 - i32.lt_s $push5=, $0, $pop58 + i32.lt_s $push5=, $1, $pop58 br_if 0, $pop5 # 0: down to label9 # BB#6: # %for.body23.preheader # in Loop: Header=BB0_3 Depth=3 - i32.const $8=, 0 + i32.const $9=, 0 .LBB0_7: # %for.body23 # Parent Loop BB0_1 Depth=1 # Parent Loop BB0_2 Depth=2 # Parent Loop BB0_3 Depth=3 # => This Inner Loop Header: Depth=4 loop # label10: - copy_local $push61=, $8 - tee_local $push60=, $6=, $pop61 - i32.load8_u $push6=, u1($pop60) + i32.load8_u $push6=, u1($9) i32.const $push59=, 97 i32.ne $push7=, $pop6, $pop59 br_if 9, $pop7 # 9: down to label0 # BB#8: # %for.inc29 # in Loop: Header=BB0_7 Depth=4 - i32.const $push64=, 1 - i32.add $push63=, $6, $pop64 - tee_local $push62=, $8=, $pop63 - i32.lt_s $push8=, $pop62, $0 + i32.const $push62=, 1 + i32.add $push61=, $9, $pop62 + tee_local $push60=, $9=, $pop61 + i32.lt_s $push8=, $pop60, $1 br_if 0, $pop8 # 0: up to label10 -# BB#9: # in Loop: Header=BB0_3 Depth=3 +# BB#9: # %for.body36.preheader.loopexit + # in Loop: Header=BB0_3 Depth=3 end_loop # label11: - i32.const $push65=, u1+1 - i32.add $7=, $6, $pop65 + i32.add $8=, $9, $0 .LBB0_10: # %for.body36.preheader # in Loop: Header=BB0_3 Depth=3 end_block # label9: - i32.const $8=, 0 - copy_local $6=, $4 + i32.const $9=, 0 + copy_local $7=, $5 .LBB0_11: # %for.body36 # Parent Loop BB0_1 Depth=1 # Parent Loop BB0_2 Depth=2 # Parent Loop BB0_3 Depth=3 # => This Inner Loop Header: Depth=4 loop # label12: - i32.add $push13=, $7, $8 + i32.add $push13=, $8, $9 i32.load8_u $push14=, 0($pop13) - i32.const $push72=, 65 - i32.const $push71=, 24 - i32.shl $push9=, $6, $pop71 - i32.const $push70=, 24 - i32.shr_s $push10=, $pop9, $pop70 - i32.const $push69=, 95 - i32.gt_s $push11=, $pop10, $pop69 - i32.select $push68=, $pop72, $6, $pop11 - tee_local $push67=, $6=, $pop68 - i32.const $push66=, 255 - i32.and $push12=, $pop67, $pop66 + i32.const $push69=, 65 + i32.const $push68=, 24 + i32.shl $push9=, $7, $pop68 + i32.const $push67=, 24 + i32.shr_s $push10=, $pop9, $pop67 + i32.const $push66=, 95 + i32.gt_s $push11=, $pop10, $pop66 + i32.select $push65=, $pop69, $7, $pop11 + tee_local $push64=, $7=, $pop65 + i32.const $push63=, 255 + i32.and $push12=, $pop64, $pop63 i32.ne $push15=, $pop14, $pop12 br_if 8, $pop15 # 8: down to label0 # BB#12: # %for.inc48 # in Loop: Header=BB0_11 Depth=4 - i32.const $push76=, 1 - i32.add $6=, $6, $pop76 - i32.const $push75=, 1 - i32.add $push74=, $8, $pop75 - tee_local $push73=, $8=, $pop74 - i32.lt_s $push16=, $pop73, $5 + i32.const $push73=, 1 + i32.add $7=, $7, $pop73 + i32.const $push72=, 1 + i32.add $push71=, $9, $pop72 + tee_local $push70=, $9=, $pop71 + i32.lt_s $push16=, $pop70, $6 br_if 0, $pop16 # 0: up to label12 # BB#13: # %for.body56.preheader # in Loop: Header=BB0_3 Depth=3 end_loop # label13: - i32.add $push79=, $7, $8 - tee_local $push78=, $8=, $pop79 - i32.load8_u $push17=, 0($pop78) - i32.const $push77=, 97 - i32.ne $push18=, $pop17, $pop77 + i32.add $push76=, $8, $9 + tee_local $push75=, $9=, $pop76 + i32.load8_u $push17=, 0($pop75) + i32.const $push74=, 97 + i32.ne $push18=, $pop17, $pop74 br_if 6, $pop18 # 6: down to label0 # BB#14: # %for.inc62 # in Loop: Header=BB0_3 Depth=3 - i32.const $push81=, 1 - i32.add $push19=, $8, $pop81 + i32.const $push78=, 1 + i32.add $push19=, $9, $pop78 i32.load8_u $push20=, 0($pop19) - i32.const $push80=, 97 - i32.ne $push21=, $pop20, $pop80 + i32.const $push77=, 97 + i32.ne $push21=, $pop20, $pop77 br_if 6, $pop21 # 6: down to label0 # BB#15: # %for.inc62.1 # in Loop: Header=BB0_3 Depth=3 - i32.const $push83=, 2 - i32.add $push22=, $8, $pop83 + i32.const $push80=, 2 + i32.add $push22=, $9, $pop80 i32.load8_u $push23=, 0($pop22) - i32.const $push82=, 97 - i32.ne $push24=, $pop23, $pop82 + i32.const $push79=, 97 + i32.ne $push24=, $pop23, $pop79 br_if 6, $pop24 # 6: down to label0 # BB#16: # %for.inc62.2 # in Loop: Header=BB0_3 Depth=3 - i32.const $push85=, 3 - i32.add $push25=, $8, $pop85 + i32.const $push82=, 3 + i32.add $push25=, $9, $pop82 i32.load8_u $push26=, 0($pop25) - i32.const $push84=, 97 - i32.ne $push27=, $pop26, $pop84 + i32.const $push81=, 97 + i32.ne $push27=, $pop26, $pop81 br_if 6, $pop27 # 6: down to label0 # BB#17: # %for.inc62.3 # in Loop: Header=BB0_3 Depth=3 - i32.const $push87=, 4 - i32.add $push28=, $8, $pop87 + i32.const $push84=, 4 + i32.add $push28=, $9, $pop84 i32.load8_u $push29=, 0($pop28) - i32.const $push86=, 97 - i32.ne $push30=, $pop29, $pop86 + i32.const $push83=, 97 + i32.ne $push30=, $pop29, $pop83 br_if 6, $pop30 # 6: down to label0 # BB#18: # %for.inc62.4 # in Loop: Header=BB0_3 Depth=3 - i32.const $push89=, 5 - i32.add $push31=, $8, $pop89 + i32.const $push86=, 5 + i32.add $push31=, $9, $pop86 i32.load8_u $push32=, 0($pop31) - i32.const $push88=, 97 - i32.ne $push33=, $pop32, $pop88 + i32.const $push85=, 97 + i32.ne $push33=, $pop32, $pop85 br_if 6, $pop33 # 6: down to label0 # BB#19: # %for.inc62.5 # in Loop: Header=BB0_3 Depth=3 - i32.const $push91=, 6 - i32.add $push34=, $8, $pop91 + i32.const $push88=, 6 + i32.add $push34=, $9, $pop88 i32.load8_u $push35=, 0($pop34) - i32.const $push90=, 97 - i32.ne $push36=, $pop35, $pop90 + i32.const $push87=, 97 + i32.ne $push36=, $pop35, $pop87 br_if 6, $pop36 # 6: down to label0 # BB#20: # %for.inc62.6 # in Loop: Header=BB0_3 Depth=3 - i32.const $push93=, 7 - i32.add $push37=, $8, $pop93 + i32.const $push90=, 7 + i32.add $push37=, $9, $pop90 i32.load8_u $push38=, 0($pop37) - i32.const $push92=, 97 - i32.ne $push39=, $pop38, $pop92 + i32.const $push89=, 97 + i32.ne $push39=, $pop38, $pop89 br_if 6, $pop39 # 6: down to label0 # BB#21: # %for.inc62.7 # in Loop: Header=BB0_3 Depth=3 - i32.const $push97=, 1 - i32.add $push96=, $5, $pop97 - tee_local $push95=, $5=, $pop96 - i32.const $push94=, 80 - i32.lt_u $push40=, $pop95, $pop94 + i32.const $push94=, 1 + i32.add $push93=, $6, $pop94 + tee_local $push92=, $6=, $pop93 + i32.const $push91=, 80 + i32.lt_u $push40=, $pop92, $pop91 br_if 0, $pop40 # 0: up to label5 # BB#22: # %for.inc69 # in Loop: Header=BB0_2 Depth=2 end_loop # label6: - i32.const $push101=, 1 - i32.add $push100=, $2, $pop101 - tee_local $push99=, $2=, $pop100 - i32.const $push98=, 8 - i32.lt_u $push41=, $pop99, $pop98 + i32.const $push98=, 1 + i32.add $push97=, $3, $pop98 + tee_local $push96=, $3=, $pop97 + i32.const $push95=, 8 + i32.lt_u $push41=, $pop96, $pop95 br_if 0, $pop41 # 0: up to label3 # BB#23: # %for.inc72 # in Loop: Header=BB0_1 Depth=1 end_loop # label4: - i32.const $push105=, 1 - i32.add $push104=, $0, $pop105 - tee_local $push103=, $0=, $pop104 - i32.const $push102=, 8 - i32.lt_u $push42=, $pop103, $pop102 + i32.const $push102=, 1 + i32.add $push101=, $1, $pop102 + tee_local $push100=, $1=, $pop101 + i32.const $push99=, 8 + i32.lt_u $push42=, $pop100, $pop99 br_if 0, $pop42 # 0: up to label1 # BB#24: # %for.end74 end_loop # label2: @@ -249,3 +247,5 @@ main: # @main .lcomm u2,96,4 .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/memcpy-bi.c.s b/test/torture-s/memcpy-bi.c.s index cd79506f7..0789296ed 100644 --- a/test/torture-s/memcpy-bi.c.s +++ b/test/torture-s/memcpy-bi.c.s @@ -1038,3 +1038,5 @@ dst: .ident "clang version 3.9.0 " + .functype memcmp, i32, i32, i32, i32 + .functype abort, void diff --git a/test/torture-s/memset-1.c.s b/test/torture-s/memset-1.c.s index aaa13d455..102f6b6e4 100644 --- a/test/torture-s/memset-1.c.s +++ b/test/torture-s/memset-1.c.s @@ -33,7 +33,7 @@ main: # @main # Child Loop BB0_36 Depth 3 # Child Loop BB0_40 Depth 3 loop # label3: - i32.const $4=, u + i32.const $5=, u i32.const $push100=, u i32.const $push99=, 97 i32.const $push98=, 96 @@ -43,7 +43,7 @@ main: # @main block i32.const $push96=, 1 i32.lt_s $push95=, $1, $pop96 - tee_local $push94=, $5=, $pop95 + tee_local $push94=, $4=, $pop95 br_if 0, $pop94 # 0: down to label5 # BB#3: # %for.body11.preheader # in Loop: Header=BB0_2 Depth=2 @@ -53,23 +53,22 @@ main: # @main # Parent Loop BB0_2 Depth=2 # => This Inner Loop Header: Depth=3 loop # label6: - copy_local $push103=, $6 - tee_local $push102=, $4=, $pop103 - i32.load8_u $push0=, u($pop102) + i32.load8_u $push0=, u($6) i32.const $push101=, 97 i32.ne $push1=, $pop0, $pop101 br_if 7, $pop1 # 7: down to label0 # BB#5: # %for.inc16 # in Loop: Header=BB0_4 Depth=3 - i32.const $push106=, 1 - i32.add $push105=, $4, $pop106 - tee_local $push104=, $6=, $pop105 - i32.lt_s $push2=, $pop104, $1 + i32.const $push104=, 1 + i32.add $push103=, $6, $pop104 + tee_local $push102=, $6=, $pop103 + i32.lt_s $push2=, $pop102, $1 br_if 0, $pop2 # 0: up to label6 -# BB#6: # in Loop: Header=BB0_2 Depth=2 +# BB#6: # %for.body22.preheader.loopexit + # in Loop: Header=BB0_2 Depth=2 end_loop # label7: - i32.const $push107=, u+1 - i32.add $4=, $4, $pop107 + i32.const $push105=, u + i32.add $5=, $6, $pop105 .LBB0_7: # %for.body22.preheader # in Loop: Header=BB0_2 Depth=2 end_block # label5: @@ -79,89 +78,89 @@ main: # @main # Parent Loop BB0_2 Depth=2 # => This Inner Loop Header: Depth=3 loop # label8: - i32.add $push3=, $4, $6 + i32.add $push3=, $5, $6 i32.load8_u $push4=, 0($pop3) br_if 6, $pop4 # 6: down to label0 # BB#9: # %for.inc28 # in Loop: Header=BB0_8 Depth=3 - i32.const $push110=, 1 - i32.add $push109=, $6, $pop110 - tee_local $push108=, $6=, $pop109 - i32.lt_s $push5=, $pop108, $3 + i32.const $push108=, 1 + i32.add $push107=, $6, $pop108 + tee_local $push106=, $6=, $pop107 + i32.lt_s $push5=, $pop106, $3 br_if 0, $pop5 # 0: up to label8 # BB#10: # %for.body35.preheader # in Loop: Header=BB0_2 Depth=2 end_loop # label9: - i32.add $push113=, $4, $6 - tee_local $push112=, $6=, $pop113 - i32.load8_u $push6=, 0($pop112) - i32.const $push111=, 97 - i32.ne $push7=, $pop6, $pop111 + i32.add $push111=, $5, $6 + tee_local $push110=, $6=, $pop111 + i32.load8_u $push6=, 0($pop110) + i32.const $push109=, 97 + i32.ne $push7=, $pop6, $pop109 br_if 4, $pop7 # 4: down to label0 # BB#11: # %for.inc41 # in Loop: Header=BB0_2 Depth=2 - i32.const $push115=, 1 - i32.add $push8=, $6, $pop115 + i32.const $push113=, 1 + i32.add $push8=, $6, $pop113 i32.load8_u $push9=, 0($pop8) - i32.const $push114=, 97 - i32.ne $push10=, $pop9, $pop114 + i32.const $push112=, 97 + i32.ne $push10=, $pop9, $pop112 br_if 4, $pop10 # 4: down to label0 # BB#12: # %for.inc41.1 # in Loop: Header=BB0_2 Depth=2 - i32.const $push117=, 2 - i32.add $push11=, $6, $pop117 + i32.const $push115=, 2 + i32.add $push11=, $6, $pop115 i32.load8_u $push12=, 0($pop11) - i32.const $push116=, 97 - i32.ne $push13=, $pop12, $pop116 + i32.const $push114=, 97 + i32.ne $push13=, $pop12, $pop114 br_if 4, $pop13 # 4: down to label0 # BB#13: # %for.inc41.2 # in Loop: Header=BB0_2 Depth=2 - i32.const $push119=, 3 - i32.add $push14=, $6, $pop119 + i32.const $push117=, 3 + i32.add $push14=, $6, $pop117 i32.load8_u $push15=, 0($pop14) - i32.const $push118=, 97 - i32.ne $push16=, $pop15, $pop118 + i32.const $push116=, 97 + i32.ne $push16=, $pop15, $pop116 br_if 4, $pop16 # 4: down to label0 # BB#14: # %for.inc41.3 # in Loop: Header=BB0_2 Depth=2 - i32.const $push121=, 4 - i32.add $push17=, $6, $pop121 + i32.const $push119=, 4 + i32.add $push17=, $6, $pop119 i32.load8_u $push18=, 0($pop17) - i32.const $push120=, 97 - i32.ne $push19=, $pop18, $pop120 + i32.const $push118=, 97 + i32.ne $push19=, $pop18, $pop118 br_if 4, $pop19 # 4: down to label0 # BB#15: # %for.inc41.4 # in Loop: Header=BB0_2 Depth=2 - i32.const $push123=, 5 - i32.add $push20=, $6, $pop123 + i32.const $push121=, 5 + i32.add $push20=, $6, $pop121 i32.load8_u $push21=, 0($pop20) - i32.const $push122=, 97 - i32.ne $push22=, $pop21, $pop122 + i32.const $push120=, 97 + i32.ne $push22=, $pop21, $pop120 br_if 4, $pop22 # 4: down to label0 # BB#16: # %for.inc41.5 # in Loop: Header=BB0_2 Depth=2 - i32.const $push125=, 6 - i32.add $push23=, $6, $pop125 + i32.const $push123=, 6 + i32.add $push23=, $6, $pop123 i32.load8_u $push24=, 0($pop23) - i32.const $push124=, 97 - i32.ne $push25=, $pop24, $pop124 + i32.const $push122=, 97 + i32.ne $push25=, $pop24, $pop122 br_if 4, $pop25 # 4: down to label0 # BB#17: # %for.inc41.6 # in Loop: Header=BB0_2 Depth=2 - i32.const $push127=, 7 - i32.add $push26=, $6, $pop127 + i32.const $push125=, 7 + i32.add $push26=, $6, $pop125 i32.load8_u $push27=, 0($pop26) - i32.const $push126=, 97 - i32.ne $push28=, $pop27, $pop126 + i32.const $push124=, 97 + i32.ne $push28=, $pop27, $pop124 br_if 4, $pop28 # 4: down to label0 # BB#18: # %for.inc41.7 # in Loop: Header=BB0_2 Depth=2 - i32.const $push128=, 0 - i32.load8_u $push29=, A($pop128) + i32.const $push126=, 0 + i32.load8_u $push29=, A($pop126) i32.call $drop=, memset@FUNCTION, $0, $pop29, $3 - i32.const $4=, u + i32.const $5=, u block - br_if 0, $5 # 0: down to label10 + br_if 0, $4 # 0: down to label10 # BB#19: # %for.body56.preheader # in Loop: Header=BB0_2 Depth=2 i32.const $6=, 0 @@ -170,23 +169,22 @@ main: # @main # Parent Loop BB0_2 Depth=2 # => This Inner Loop Header: Depth=3 loop # label11: - copy_local $push131=, $6 - tee_local $push130=, $4=, $pop131 - i32.load8_u $push30=, u($pop130) - i32.const $push129=, 97 - i32.ne $push31=, $pop30, $pop129 + i32.load8_u $push30=, u($6) + i32.const $push127=, 97 + i32.ne $push31=, $pop30, $pop127 br_if 7, $pop31 # 7: down to label0 # BB#21: # %for.inc62 # in Loop: Header=BB0_20 Depth=3 - i32.const $push134=, 1 - i32.add $push133=, $4, $pop134 - tee_local $push132=, $6=, $pop133 - i32.lt_s $push32=, $pop132, $1 + i32.const $push130=, 1 + i32.add $push129=, $6, $pop130 + tee_local $push128=, $6=, $pop129 + i32.lt_s $push32=, $pop128, $1 br_if 0, $pop32 # 0: up to label11 -# BB#22: # in Loop: Header=BB0_2 Depth=2 +# BB#22: # %for.body69.preheader.loopexit + # in Loop: Header=BB0_2 Depth=2 end_loop # label12: - i32.const $push135=, u+1 - i32.add $4=, $4, $pop135 + i32.const $push131=, u + i32.add $5=, $6, $pop131 .LBB0_23: # %for.body69.preheader # in Loop: Header=BB0_2 Depth=2 end_block # label10: @@ -196,90 +194,90 @@ main: # @main # Parent Loop BB0_2 Depth=2 # => This Inner Loop Header: Depth=3 loop # label13: - i32.add $push33=, $4, $6 + i32.add $push33=, $5, $6 i32.load8_u $push34=, 0($pop33) - i32.const $push136=, 65 - i32.ne $push35=, $pop34, $pop136 + i32.const $push132=, 65 + i32.ne $push35=, $pop34, $pop132 br_if 6, $pop35 # 6: down to label0 # BB#25: # %for.inc75 # in Loop: Header=BB0_24 Depth=3 - i32.const $push139=, 1 - i32.add $push138=, $6, $pop139 - tee_local $push137=, $6=, $pop138 - i32.lt_s $push36=, $pop137, $3 + i32.const $push135=, 1 + i32.add $push134=, $6, $pop135 + tee_local $push133=, $6=, $pop134 + i32.lt_s $push36=, $pop133, $3 br_if 0, $pop36 # 0: up to label13 # BB#26: # %for.body82.preheader # in Loop: Header=BB0_2 Depth=2 end_loop # label14: - i32.add $push142=, $4, $6 - tee_local $push141=, $6=, $pop142 - i32.load8_u $push37=, 0($pop141) - i32.const $push140=, 97 - i32.ne $push38=, $pop37, $pop140 + i32.add $push138=, $5, $6 + tee_local $push137=, $6=, $pop138 + i32.load8_u $push37=, 0($pop137) + i32.const $push136=, 97 + i32.ne $push38=, $pop37, $pop136 br_if 4, $pop38 # 4: down to label0 # BB#27: # %for.inc88 # in Loop: Header=BB0_2 Depth=2 - i32.const $push144=, 1 - i32.add $push39=, $6, $pop144 + i32.const $push140=, 1 + i32.add $push39=, $6, $pop140 i32.load8_u $push40=, 0($pop39) - i32.const $push143=, 97 - i32.ne $push41=, $pop40, $pop143 + i32.const $push139=, 97 + i32.ne $push41=, $pop40, $pop139 br_if 4, $pop41 # 4: down to label0 # BB#28: # %for.inc88.1 # in Loop: Header=BB0_2 Depth=2 - i32.const $push146=, 2 - i32.add $push42=, $6, $pop146 + i32.const $push142=, 2 + i32.add $push42=, $6, $pop142 i32.load8_u $push43=, 0($pop42) - i32.const $push145=, 97 - i32.ne $push44=, $pop43, $pop145 + i32.const $push141=, 97 + i32.ne $push44=, $pop43, $pop141 br_if 4, $pop44 # 4: down to label0 # BB#29: # %for.inc88.2 # in Loop: Header=BB0_2 Depth=2 - i32.const $push148=, 3 - i32.add $push45=, $6, $pop148 + i32.const $push144=, 3 + i32.add $push45=, $6, $pop144 i32.load8_u $push46=, 0($pop45) - i32.const $push147=, 97 - i32.ne $push47=, $pop46, $pop147 + i32.const $push143=, 97 + i32.ne $push47=, $pop46, $pop143 br_if 4, $pop47 # 4: down to label0 # BB#30: # %for.inc88.3 # in Loop: Header=BB0_2 Depth=2 - i32.const $push150=, 4 - i32.add $push48=, $6, $pop150 + i32.const $push146=, 4 + i32.add $push48=, $6, $pop146 i32.load8_u $push49=, 0($pop48) - i32.const $push149=, 97 - i32.ne $push50=, $pop49, $pop149 + i32.const $push145=, 97 + i32.ne $push50=, $pop49, $pop145 br_if 4, $pop50 # 4: down to label0 # BB#31: # %for.inc88.4 # in Loop: Header=BB0_2 Depth=2 - i32.const $push152=, 5 - i32.add $push51=, $6, $pop152 + i32.const $push148=, 5 + i32.add $push51=, $6, $pop148 i32.load8_u $push52=, 0($pop51) - i32.const $push151=, 97 - i32.ne $push53=, $pop52, $pop151 + i32.const $push147=, 97 + i32.ne $push53=, $pop52, $pop147 br_if 4, $pop53 # 4: down to label0 # BB#32: # %for.inc88.5 # in Loop: Header=BB0_2 Depth=2 - i32.const $push154=, 6 - i32.add $push54=, $6, $pop154 + i32.const $push150=, 6 + i32.add $push54=, $6, $pop150 i32.load8_u $push55=, 0($pop54) - i32.const $push153=, 97 - i32.ne $push56=, $pop55, $pop153 + i32.const $push149=, 97 + i32.ne $push56=, $pop55, $pop149 br_if 4, $pop56 # 4: down to label0 # BB#33: # %for.inc88.6 # in Loop: Header=BB0_2 Depth=2 - i32.const $push156=, 7 - i32.add $push57=, $6, $pop156 + i32.const $push152=, 7 + i32.add $push57=, $6, $pop152 i32.load8_u $push58=, 0($pop57) - i32.const $push155=, 97 - i32.ne $push59=, $pop58, $pop155 + i32.const $push151=, 97 + i32.ne $push59=, $pop58, $pop151 br_if 4, $pop59 # 4: down to label0 # BB#34: # %for.inc88.7 # in Loop: Header=BB0_2 Depth=2 - i32.const $push157=, 66 - i32.call $drop=, memset@FUNCTION, $0, $pop157, $3 - i32.const $4=, u + i32.const $push153=, 66 + i32.call $drop=, memset@FUNCTION, $0, $pop153, $3 + i32.const $5=, u block - br_if 0, $5 # 0: down to label15 + br_if 0, $4 # 0: down to label15 # BB#35: # %for.body102.preheader # in Loop: Header=BB0_2 Depth=2 i32.const $6=, 0 @@ -288,23 +286,22 @@ main: # @main # Parent Loop BB0_2 Depth=2 # => This Inner Loop Header: Depth=3 loop # label16: - copy_local $push160=, $6 - tee_local $push159=, $4=, $pop160 - i32.load8_u $push60=, u($pop159) - i32.const $push158=, 97 - i32.ne $push61=, $pop60, $pop158 + i32.load8_u $push60=, u($6) + i32.const $push154=, 97 + i32.ne $push61=, $pop60, $pop154 br_if 7, $pop61 # 7: down to label0 # BB#37: # %for.inc108 # in Loop: Header=BB0_36 Depth=3 - i32.const $push163=, 1 - i32.add $push162=, $4, $pop163 - tee_local $push161=, $6=, $pop162 - i32.lt_s $push62=, $pop161, $1 + i32.const $push157=, 1 + i32.add $push156=, $6, $pop157 + tee_local $push155=, $6=, $pop156 + i32.lt_s $push62=, $pop155, $1 br_if 0, $pop62 # 0: up to label16 -# BB#38: # in Loop: Header=BB0_2 Depth=2 +# BB#38: # %for.body115.preheader.loopexit + # in Loop: Header=BB0_2 Depth=2 end_loop # label17: - i32.const $push164=, u+1 - i32.add $4=, $4, $pop164 + i32.const $push158=, u + i32.add $5=, $6, $pop158 .LBB0_39: # %for.body115.preheader # in Loop: Header=BB0_2 Depth=2 end_block # label15: @@ -314,99 +311,99 @@ main: # @main # Parent Loop BB0_2 Depth=2 # => This Inner Loop Header: Depth=3 loop # label18: - i32.add $push63=, $4, $6 + i32.add $push63=, $5, $6 i32.load8_u $push64=, 0($pop63) - i32.const $push165=, 66 - i32.ne $push65=, $pop64, $pop165 + i32.const $push159=, 66 + i32.ne $push65=, $pop64, $pop159 br_if 6, $pop65 # 6: down to label0 # BB#41: # %for.inc121 # in Loop: Header=BB0_40 Depth=3 - i32.const $push168=, 1 - i32.add $push167=, $6, $pop168 - tee_local $push166=, $6=, $pop167 - i32.lt_s $push66=, $pop166, $3 + i32.const $push162=, 1 + i32.add $push161=, $6, $pop162 + tee_local $push160=, $6=, $pop161 + i32.lt_s $push66=, $pop160, $3 br_if 0, $pop66 # 0: up to label18 # BB#42: # %for.body128.preheader # in Loop: Header=BB0_2 Depth=2 end_loop # label19: - i32.add $push171=, $4, $6 - tee_local $push170=, $6=, $pop171 - i32.load8_u $push67=, 0($pop170) - i32.const $push169=, 97 - i32.ne $push68=, $pop67, $pop169 + i32.add $push165=, $5, $6 + tee_local $push164=, $6=, $pop165 + i32.load8_u $push67=, 0($pop164) + i32.const $push163=, 97 + i32.ne $push68=, $pop67, $pop163 br_if 4, $pop68 # 4: down to label0 # BB#43: # %for.inc134 # in Loop: Header=BB0_2 Depth=2 - i32.const $push173=, 1 - i32.add $push69=, $6, $pop173 + i32.const $push167=, 1 + i32.add $push69=, $6, $pop167 i32.load8_u $push70=, 0($pop69) - i32.const $push172=, 97 - i32.ne $push71=, $pop70, $pop172 + i32.const $push166=, 97 + i32.ne $push71=, $pop70, $pop166 br_if 4, $pop71 # 4: down to label0 # BB#44: # %for.inc134.1 # in Loop: Header=BB0_2 Depth=2 - i32.const $push175=, 2 - i32.add $push72=, $6, $pop175 + i32.const $push169=, 2 + i32.add $push72=, $6, $pop169 i32.load8_u $push73=, 0($pop72) - i32.const $push174=, 97 - i32.ne $push74=, $pop73, $pop174 + i32.const $push168=, 97 + i32.ne $push74=, $pop73, $pop168 br_if 4, $pop74 # 4: down to label0 # BB#45: # %for.inc134.2 # in Loop: Header=BB0_2 Depth=2 - i32.const $push177=, 3 - i32.add $push75=, $6, $pop177 + i32.const $push171=, 3 + i32.add $push75=, $6, $pop171 i32.load8_u $push76=, 0($pop75) - i32.const $push176=, 97 - i32.ne $push77=, $pop76, $pop176 + i32.const $push170=, 97 + i32.ne $push77=, $pop76, $pop170 br_if 4, $pop77 # 4: down to label0 # BB#46: # %for.inc134.3 # in Loop: Header=BB0_2 Depth=2 - i32.const $push179=, 4 - i32.add $push78=, $6, $pop179 + i32.const $push173=, 4 + i32.add $push78=, $6, $pop173 i32.load8_u $push79=, 0($pop78) - i32.const $push178=, 97 - i32.ne $push80=, $pop79, $pop178 + i32.const $push172=, 97 + i32.ne $push80=, $pop79, $pop172 br_if 4, $pop80 # 4: down to label0 # BB#47: # %for.inc134.4 # in Loop: Header=BB0_2 Depth=2 - i32.const $push181=, 5 - i32.add $push81=, $6, $pop181 + i32.const $push175=, 5 + i32.add $push81=, $6, $pop175 i32.load8_u $push82=, 0($pop81) - i32.const $push180=, 97 - i32.ne $push83=, $pop82, $pop180 + i32.const $push174=, 97 + i32.ne $push83=, $pop82, $pop174 br_if 4, $pop83 # 4: down to label0 # BB#48: # %for.inc134.5 # in Loop: Header=BB0_2 Depth=2 - i32.const $push183=, 6 - i32.add $push84=, $6, $pop183 + i32.const $push177=, 6 + i32.add $push84=, $6, $pop177 i32.load8_u $push85=, 0($pop84) - i32.const $push182=, 97 - i32.ne $push86=, $pop85, $pop182 + i32.const $push176=, 97 + i32.ne $push86=, $pop85, $pop176 br_if 4, $pop86 # 4: down to label0 # BB#49: # %for.inc134.6 # in Loop: Header=BB0_2 Depth=2 - i32.const $push185=, 7 - i32.add $push87=, $6, $pop185 + i32.const $push179=, 7 + i32.add $push87=, $6, $pop179 i32.load8_u $push88=, 0($pop87) - i32.const $push184=, 97 - i32.ne $push89=, $pop88, $pop184 + i32.const $push178=, 97 + i32.ne $push89=, $pop88, $pop178 br_if 4, $pop89 # 4: down to label0 # BB#50: # %for.inc134.7 # in Loop: Header=BB0_2 Depth=2 - i32.const $push189=, 1 - i32.add $push188=, $3, $pop189 - tee_local $push187=, $3=, $pop188 - i32.const $push186=, 80 - i32.lt_u $push90=, $pop187, $pop186 + i32.const $push183=, 1 + i32.add $push182=, $3, $pop183 + tee_local $push181=, $3=, $pop182 + i32.const $push180=, 80 + i32.lt_u $push90=, $pop181, $pop180 br_if 0, $pop90 # 0: up to label3 # BB#51: # %for.inc141 # in Loop: Header=BB0_1 Depth=1 end_loop # label4: - i32.const $push193=, 1 - i32.add $push192=, $1, $pop193 - tee_local $push191=, $1=, $pop192 - i32.const $push190=, 8 - i32.lt_u $push91=, $pop191, $pop190 + i32.const $push187=, 1 + i32.add $push186=, $1, $pop187 + tee_local $push185=, $1=, $pop186 + i32.const $push184=, 8 + i32.lt_u $push91=, $pop185, $pop184 br_if 0, $pop91 # 0: up to label1 # BB#52: # %for.end143 end_loop # label2: @@ -433,3 +430,5 @@ A: .lcomm u,96,4 .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/memset-2.c.s b/test/torture-s/memset-2.c.s index 7b740cf32..753e6fb1d 100644 --- a/test/torture-s/memset-2.c.s +++ b/test/torture-s/memset-2.c.s @@ -26,97 +26,95 @@ check: # @check i32.const $3=, u block block - i32.const $push25=, 1 - i32.lt_s $push0=, $0, $pop25 + i32.const $push26=, 1 + i32.lt_s $push0=, $0, $pop26 br_if 0, $pop0 # 0: down to label1 # BB#1: # %for.body.preheader i32.const $4=, 0 .LBB1_2: # %for.body # =>This Inner Loop Header: Depth=1 loop # label2: - copy_local $push28=, $4 - tee_local $push27=, $3=, $pop28 - i32.load8_u $push1=, u($pop27) - i32.const $push26=, 97 - i32.ne $push2=, $pop1, $pop26 + i32.load8_u $push1=, u($4) + i32.const $push27=, 97 + i32.ne $push2=, $pop1, $pop27 br_if 3, $pop2 # 3: down to label0 # BB#3: # %for.inc # in Loop: Header=BB1_2 Depth=1 - i32.const $push31=, 1 - i32.add $push30=, $3, $pop31 - tee_local $push29=, $4=, $pop30 - i32.lt_s $push3=, $pop29, $0 + i32.const $push30=, 1 + i32.add $push29=, $4, $pop30 + tee_local $push28=, $4=, $pop29 + i32.lt_s $push3=, $pop28, $0 br_if 0, $pop3 # 0: up to label2 -# BB#4: +# BB#4: # %for.cond3.preheader.loopexit end_loop # label3: - i32.const $push32=, u+1 - i32.add $3=, $3, $pop32 + i32.const $push4=, u + i32.add $3=, $4, $pop4 .LBB1_5: # %for.cond3.preheader end_block # label1: block - i32.const $push33=, 1 - i32.lt_s $push4=, $1, $pop33 - br_if 0, $pop4 # 0: down to label4 + i32.const $push31=, 1 + i32.lt_s $push5=, $1, $pop31 + br_if 0, $pop5 # 0: down to label4 # BB#6: # %for.body6.preheader i32.const $4=, 0 .LBB1_7: # %for.body6 # =>This Inner Loop Header: Depth=1 loop # label5: - i32.add $push5=, $3, $4 - i32.load8_s $push6=, 0($pop5) - i32.ne $push7=, $pop6, $2 - br_if 3, $pop7 # 3: down to label0 + i32.add $push6=, $3, $4 + i32.load8_s $push7=, 0($pop6) + i32.ne $push8=, $pop7, $2 + br_if 3, $pop8 # 3: down to label0 # BB#8: # %for.inc12 # in Loop: Header=BB1_7 Depth=1 - i32.const $push36=, 1 - i32.add $push35=, $4, $pop36 - tee_local $push34=, $4=, $pop35 - i32.lt_s $push8=, $pop34, $1 - br_if 0, $pop8 # 0: up to label5 -# BB#9: + i32.const $push34=, 1 + i32.add $push33=, $4, $pop34 + tee_local $push32=, $4=, $pop33 + i32.lt_s $push9=, $pop32, $1 + br_if 0, $pop9 # 0: up to label5 +# BB#9: # %for.body19.preheader.loopexit end_loop # label6: i32.add $3=, $3, $4 .LBB1_10: # %for.body19.preheader end_block # label4: - i32.load8_u $push9=, 0($3) - i32.const $push37=, 97 - i32.ne $push10=, $pop9, $pop37 - br_if 0, $pop10 # 0: down to label0 + i32.load8_u $push10=, 0($3) + i32.const $push35=, 97 + i32.ne $push11=, $pop10, $pop35 + br_if 0, $pop11 # 0: down to label0 # BB#11: # %for.inc25 - i32.load8_u $push11=, 1($3) - i32.const $push38=, 97 - i32.ne $push12=, $pop11, $pop38 - br_if 0, $pop12 # 0: down to label0 + i32.load8_u $push12=, 1($3) + i32.const $push36=, 97 + i32.ne $push13=, $pop12, $pop36 + br_if 0, $pop13 # 0: down to label0 # BB#12: # %for.inc25.1 - i32.load8_u $push13=, 2($3) - i32.const $push39=, 97 - i32.ne $push14=, $pop13, $pop39 - br_if 0, $pop14 # 0: down to label0 + i32.load8_u $push14=, 2($3) + i32.const $push37=, 97 + i32.ne $push15=, $pop14, $pop37 + br_if 0, $pop15 # 0: down to label0 # BB#13: # %for.inc25.2 - i32.load8_u $push15=, 3($3) - i32.const $push40=, 97 - i32.ne $push16=, $pop15, $pop40 - br_if 0, $pop16 # 0: down to label0 + i32.load8_u $push16=, 3($3) + i32.const $push38=, 97 + i32.ne $push17=, $pop16, $pop38 + br_if 0, $pop17 # 0: down to label0 # BB#14: # %for.inc25.3 - i32.load8_u $push17=, 4($3) - i32.const $push41=, 97 - i32.ne $push18=, $pop17, $pop41 - br_if 0, $pop18 # 0: down to label0 + i32.load8_u $push18=, 4($3) + i32.const $push39=, 97 + i32.ne $push19=, $pop18, $pop39 + br_if 0, $pop19 # 0: down to label0 # BB#15: # %for.inc25.4 - i32.load8_u $push19=, 5($3) - i32.const $push42=, 97 - i32.ne $push20=, $pop19, $pop42 - br_if 0, $pop20 # 0: down to label0 + i32.load8_u $push20=, 5($3) + i32.const $push40=, 97 + i32.ne $push21=, $pop20, $pop40 + br_if 0, $pop21 # 0: down to label0 # BB#16: # %for.inc25.5 - i32.load8_u $push21=, 6($3) - i32.const $push43=, 97 - i32.ne $push22=, $pop21, $pop43 - br_if 0, $pop22 # 0: down to label0 + i32.load8_u $push22=, 6($3) + i32.const $push41=, 97 + i32.ne $push23=, $pop22, $pop41 + br_if 0, $pop23 # 0: down to label0 # BB#17: # %for.inc25.6 - i32.load8_u $push23=, 7($3) - i32.const $push44=, 97 - i32.ne $push24=, $pop23, $pop44 - br_if 0, $pop24 # 0: down to label0 + i32.load8_u $push24=, 7($3) + i32.const $push42=, 97 + i32.ne $push25=, $pop24, $pop42 + br_if 0, $pop25 # 0: down to label0 # BB#18: # %for.inc25.7 return .LBB1_19: # %if.then23 @@ -744,3 +742,5 @@ A: .lcomm u,32,4 .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/memset-3.c.s b/test/torture-s/memset-3.c.s index b83fb08bb..823e7c017 100644 --- a/test/torture-s/memset-3.c.s +++ b/test/torture-s/memset-3.c.s @@ -26,97 +26,95 @@ check: # @check i32.const $3=, u block block - i32.const $push25=, 1 - i32.lt_s $push0=, $0, $pop25 + i32.const $push26=, 1 + i32.lt_s $push0=, $0, $pop26 br_if 0, $pop0 # 0: down to label1 # BB#1: # %for.body.preheader i32.const $4=, 0 .LBB1_2: # %for.body # =>This Inner Loop Header: Depth=1 loop # label2: - copy_local $push28=, $4 - tee_local $push27=, $3=, $pop28 - i32.load8_u $push1=, u($pop27) - i32.const $push26=, 97 - i32.ne $push2=, $pop1, $pop26 + i32.load8_u $push1=, u($4) + i32.const $push27=, 97 + i32.ne $push2=, $pop1, $pop27 br_if 3, $pop2 # 3: down to label0 # BB#3: # %for.inc # in Loop: Header=BB1_2 Depth=1 - i32.const $push31=, 1 - i32.add $push30=, $3, $pop31 - tee_local $push29=, $4=, $pop30 - i32.lt_s $push3=, $pop29, $0 + i32.const $push30=, 1 + i32.add $push29=, $4, $pop30 + tee_local $push28=, $4=, $pop29 + i32.lt_s $push3=, $pop28, $0 br_if 0, $pop3 # 0: up to label2 -# BB#4: +# BB#4: # %for.cond3.preheader.loopexit end_loop # label3: - i32.const $push32=, u+1 - i32.add $3=, $3, $pop32 + i32.const $push4=, u + i32.add $3=, $4, $pop4 .LBB1_5: # %for.cond3.preheader end_block # label1: block - i32.const $push33=, 1 - i32.lt_s $push4=, $1, $pop33 - br_if 0, $pop4 # 0: down to label4 + i32.const $push31=, 1 + i32.lt_s $push5=, $1, $pop31 + br_if 0, $pop5 # 0: down to label4 # BB#6: # %for.body6.preheader i32.const $4=, 0 .LBB1_7: # %for.body6 # =>This Inner Loop Header: Depth=1 loop # label5: - i32.add $push5=, $3, $4 - i32.load8_s $push6=, 0($pop5) - i32.ne $push7=, $pop6, $2 - br_if 3, $pop7 # 3: down to label0 + i32.add $push6=, $3, $4 + i32.load8_s $push7=, 0($pop6) + i32.ne $push8=, $pop7, $2 + br_if 3, $pop8 # 3: down to label0 # BB#8: # %for.inc12 # in Loop: Header=BB1_7 Depth=1 - i32.const $push36=, 1 - i32.add $push35=, $4, $pop36 - tee_local $push34=, $4=, $pop35 - i32.lt_s $push8=, $pop34, $1 - br_if 0, $pop8 # 0: up to label5 -# BB#9: + i32.const $push34=, 1 + i32.add $push33=, $4, $pop34 + tee_local $push32=, $4=, $pop33 + i32.lt_s $push9=, $pop32, $1 + br_if 0, $pop9 # 0: up to label5 +# BB#9: # %for.body19.preheader.loopexit end_loop # label6: i32.add $3=, $3, $4 .LBB1_10: # %for.body19.preheader end_block # label4: - i32.load8_u $push9=, 0($3) - i32.const $push37=, 97 - i32.ne $push10=, $pop9, $pop37 - br_if 0, $pop10 # 0: down to label0 + i32.load8_u $push10=, 0($3) + i32.const $push35=, 97 + i32.ne $push11=, $pop10, $pop35 + br_if 0, $pop11 # 0: down to label0 # BB#11: # %for.inc25 - i32.load8_u $push11=, 1($3) - i32.const $push38=, 97 - i32.ne $push12=, $pop11, $pop38 - br_if 0, $pop12 # 0: down to label0 + i32.load8_u $push12=, 1($3) + i32.const $push36=, 97 + i32.ne $push13=, $pop12, $pop36 + br_if 0, $pop13 # 0: down to label0 # BB#12: # %for.inc25.1 - i32.load8_u $push13=, 2($3) - i32.const $push39=, 97 - i32.ne $push14=, $pop13, $pop39 - br_if 0, $pop14 # 0: down to label0 + i32.load8_u $push14=, 2($3) + i32.const $push37=, 97 + i32.ne $push15=, $pop14, $pop37 + br_if 0, $pop15 # 0: down to label0 # BB#13: # %for.inc25.2 - i32.load8_u $push15=, 3($3) - i32.const $push40=, 97 - i32.ne $push16=, $pop15, $pop40 - br_if 0, $pop16 # 0: down to label0 + i32.load8_u $push16=, 3($3) + i32.const $push38=, 97 + i32.ne $push17=, $pop16, $pop38 + br_if 0, $pop17 # 0: down to label0 # BB#14: # %for.inc25.3 - i32.load8_u $push17=, 4($3) - i32.const $push41=, 97 - i32.ne $push18=, $pop17, $pop41 - br_if 0, $pop18 # 0: down to label0 + i32.load8_u $push18=, 4($3) + i32.const $push39=, 97 + i32.ne $push19=, $pop18, $pop39 + br_if 0, $pop19 # 0: down to label0 # BB#15: # %for.inc25.4 - i32.load8_u $push19=, 5($3) - i32.const $push42=, 97 - i32.ne $push20=, $pop19, $pop42 - br_if 0, $pop20 # 0: down to label0 + i32.load8_u $push20=, 5($3) + i32.const $push40=, 97 + i32.ne $push21=, $pop20, $pop40 + br_if 0, $pop21 # 0: down to label0 # BB#16: # %for.inc25.5 - i32.load8_u $push21=, 6($3) - i32.const $push43=, 97 - i32.ne $push22=, $pop21, $pop43 - br_if 0, $pop22 # 0: down to label0 + i32.load8_u $push22=, 6($3) + i32.const $push41=, 97 + i32.ne $push23=, $pop22, $pop41 + br_if 0, $pop23 # 0: down to label0 # BB#17: # %for.inc25.6 - i32.load8_u $push23=, 7($3) - i32.const $push44=, 97 - i32.ne $push24=, $pop23, $pop44 - br_if 0, $pop24 # 0: down to label0 + i32.load8_u $push24=, 7($3) + i32.const $push42=, 97 + i32.ne $push25=, $pop24, $pop42 + br_if 0, $pop25 # 0: down to label0 # BB#18: # %for.inc25.7 return .LBB1_19: # %if.then23 @@ -143,13 +141,13 @@ main: # @main # Child Loop BB2_29 Depth 2 block loop # label8: - i32.const $0=, u i32.const $push80=, u i32.const $push79=, 97 i32.const $push78=, 31 i32.call $push0=, memset@FUNCTION, $pop80, $pop79, $pop78 i32.const $push77=, 0 - i32.call $drop=, memset@FUNCTION, $pop0, $pop77, $3 + i32.call $0=, memset@FUNCTION, $pop0, $pop77, $3 + i32.const $1=, u block i32.const $push76=, 1 i32.lt_s $push75=, $3, $pop76 @@ -157,245 +155,239 @@ main: # @main br_if 0, $pop74 # 0: down to label10 # BB#2: # %for.body6.i.preheader # in Loop: Header=BB2_1 Depth=1 - i32.const $0=, 0 + i32.const $1=, 0 .LBB2_3: # %for.body6.i # Parent Loop BB2_1 Depth=1 # => This Inner Loop Header: Depth=2 loop # label11: - copy_local $push82=, $0 - tee_local $push81=, $1=, $pop82 - i32.load8_u $push1=, u($pop81) + i32.load8_u $push1=, u($1) br_if 5, $pop1 # 5: down to label7 # BB#4: # %for.inc12.i # in Loop: Header=BB2_3 Depth=2 - i32.const $push85=, 1 - i32.add $push84=, $1, $pop85 - tee_local $push83=, $0=, $pop84 - i32.lt_s $push2=, $pop83, $3 + i32.const $push83=, 1 + i32.add $push82=, $1, $pop83 + tee_local $push81=, $1=, $pop82 + i32.lt_s $push2=, $pop81, $3 br_if 0, $pop2 # 0: up to label11 -# BB#5: # in Loop: Header=BB2_1 Depth=1 +# BB#5: # %for.body19.preheader.i.loopexit + # in Loop: Header=BB2_1 Depth=1 end_loop # label12: - i32.const $push86=, u+1 - i32.add $0=, $1, $pop86 + i32.add $1=, $1, $0 .LBB2_6: # %for.body19.preheader.i # in Loop: Header=BB2_1 Depth=1 end_block # label10: - i32.load8_u $push3=, 0($0) - i32.const $push87=, 97 - i32.ne $push4=, $pop3, $pop87 + i32.load8_u $push3=, 0($1) + i32.const $push84=, 97 + i32.ne $push4=, $pop3, $pop84 br_if 2, $pop4 # 2: down to label7 # BB#7: # %for.inc25.i # in Loop: Header=BB2_1 Depth=1 - i32.load8_u $push5=, 1($0) - i32.const $push88=, 97 - i32.ne $push6=, $pop5, $pop88 + i32.load8_u $push5=, 1($1) + i32.const $push85=, 97 + i32.ne $push6=, $pop5, $pop85 br_if 2, $pop6 # 2: down to label7 # BB#8: # %for.inc25.1.i # in Loop: Header=BB2_1 Depth=1 - i32.load8_u $push7=, 2($0) - i32.const $push89=, 97 - i32.ne $push8=, $pop7, $pop89 + i32.load8_u $push7=, 2($1) + i32.const $push86=, 97 + i32.ne $push8=, $pop7, $pop86 br_if 2, $pop8 # 2: down to label7 # BB#9: # %for.inc25.2.i # in Loop: Header=BB2_1 Depth=1 - i32.load8_u $push9=, 3($0) - i32.const $push90=, 97 - i32.ne $push10=, $pop9, $pop90 + i32.load8_u $push9=, 3($1) + i32.const $push87=, 97 + i32.ne $push10=, $pop9, $pop87 br_if 2, $pop10 # 2: down to label7 # BB#10: # %for.inc25.3.i # in Loop: Header=BB2_1 Depth=1 - i32.load8_u $push11=, 4($0) - i32.const $push91=, 97 - i32.ne $push12=, $pop11, $pop91 + i32.load8_u $push11=, 4($1) + i32.const $push88=, 97 + i32.ne $push12=, $pop11, $pop88 br_if 2, $pop12 # 2: down to label7 # BB#11: # %for.inc25.4.i # in Loop: Header=BB2_1 Depth=1 - i32.load8_u $push13=, 5($0) - i32.const $push92=, 97 - i32.ne $push14=, $pop13, $pop92 + i32.load8_u $push13=, 5($1) + i32.const $push89=, 97 + i32.ne $push14=, $pop13, $pop89 br_if 2, $pop14 # 2: down to label7 # BB#12: # %for.inc25.5.i # in Loop: Header=BB2_1 Depth=1 - i32.load8_u $push15=, 6($0) - i32.const $push93=, 97 - i32.ne $push16=, $pop15, $pop93 + i32.load8_u $push15=, 6($1) + i32.const $push90=, 97 + i32.ne $push16=, $pop15, $pop90 br_if 2, $pop16 # 2: down to label7 # BB#13: # %for.inc25.6.i # in Loop: Header=BB2_1 Depth=1 - i32.load8_u $push17=, 7($0) - i32.const $push94=, 97 - i32.ne $push18=, $pop17, $pop94 + i32.load8_u $push17=, 7($1) + i32.const $push91=, 97 + i32.ne $push18=, $pop17, $pop91 br_if 2, $pop18 # 2: down to label7 # BB#14: # %check.exit # in Loop: Header=BB2_1 Depth=1 - i32.const $0=, u - i32.const $push96=, u - i32.const $push95=, 0 - i32.load8_u $push19=, A($pop95) - i32.call $drop=, memset@FUNCTION, $pop96, $pop19, $3 + i32.const $1=, u + i32.const $push93=, u + i32.const $push92=, 0 + i32.load8_u $push19=, A($pop92) + i32.call $drop=, memset@FUNCTION, $pop93, $pop19, $3 block br_if 0, $2 # 0: down to label13 # BB#15: # %for.body6.i241.preheader # in Loop: Header=BB2_1 Depth=1 - i32.const $0=, 0 + i32.const $1=, 0 .LBB2_16: # %for.body6.i241 # Parent Loop BB2_1 Depth=1 # => This Inner Loop Header: Depth=2 loop # label14: - copy_local $push99=, $0 - tee_local $push98=, $1=, $pop99 - i32.load8_u $push20=, u($pop98) - i32.const $push97=, 65 - i32.ne $push21=, $pop20, $pop97 + i32.load8_u $push20=, u($1) + i32.const $push94=, 65 + i32.ne $push21=, $pop20, $pop94 br_if 5, $pop21 # 5: down to label7 # BB#17: # %for.inc12.i246 # in Loop: Header=BB2_16 Depth=2 - i32.const $push102=, 1 - i32.add $push101=, $1, $pop102 - tee_local $push100=, $0=, $pop101 - i32.lt_s $push22=, $pop100, $3 + i32.const $push97=, 1 + i32.add $push96=, $1, $pop97 + tee_local $push95=, $1=, $pop96 + i32.lt_s $push22=, $pop95, $3 br_if 0, $pop22 # 0: up to label14 -# BB#18: # in Loop: Header=BB2_1 Depth=1 +# BB#18: # %for.body19.preheader.i249.loopexit + # in Loop: Header=BB2_1 Depth=1 end_loop # label15: - i32.const $push103=, u+1 - i32.add $0=, $1, $pop103 + i32.add $1=, $1, $0 .LBB2_19: # %for.body19.preheader.i249 # in Loop: Header=BB2_1 Depth=1 end_block # label13: - i32.load8_u $push23=, 0($0) - i32.const $push104=, 97 - i32.ne $push24=, $pop23, $pop104 + i32.load8_u $push23=, 0($1) + i32.const $push98=, 97 + i32.ne $push24=, $pop23, $pop98 br_if 2, $pop24 # 2: down to label7 # BB#20: # %for.inc25.i253 # in Loop: Header=BB2_1 Depth=1 - i32.load8_u $push25=, 1($0) - i32.const $push105=, 97 - i32.ne $push26=, $pop25, $pop105 + i32.load8_u $push25=, 1($1) + i32.const $push99=, 97 + i32.ne $push26=, $pop25, $pop99 br_if 2, $pop26 # 2: down to label7 # BB#21: # %for.inc25.1.i256 # in Loop: Header=BB2_1 Depth=1 - i32.load8_u $push27=, 2($0) - i32.const $push106=, 97 - i32.ne $push28=, $pop27, $pop106 + i32.load8_u $push27=, 2($1) + i32.const $push100=, 97 + i32.ne $push28=, $pop27, $pop100 br_if 2, $pop28 # 2: down to label7 # BB#22: # %for.inc25.2.i259 # in Loop: Header=BB2_1 Depth=1 - i32.load8_u $push29=, 3($0) - i32.const $push107=, 97 - i32.ne $push30=, $pop29, $pop107 + i32.load8_u $push29=, 3($1) + i32.const $push101=, 97 + i32.ne $push30=, $pop29, $pop101 br_if 2, $pop30 # 2: down to label7 # BB#23: # %for.inc25.3.i262 # in Loop: Header=BB2_1 Depth=1 - i32.load8_u $push31=, 4($0) - i32.const $push108=, 97 - i32.ne $push32=, $pop31, $pop108 + i32.load8_u $push31=, 4($1) + i32.const $push102=, 97 + i32.ne $push32=, $pop31, $pop102 br_if 2, $pop32 # 2: down to label7 # BB#24: # %for.inc25.4.i265 # in Loop: Header=BB2_1 Depth=1 - i32.load8_u $push33=, 5($0) - i32.const $push109=, 97 - i32.ne $push34=, $pop33, $pop109 + i32.load8_u $push33=, 5($1) + i32.const $push103=, 97 + i32.ne $push34=, $pop33, $pop103 br_if 2, $pop34 # 2: down to label7 # BB#25: # %for.inc25.5.i268 # in Loop: Header=BB2_1 Depth=1 - i32.load8_u $push35=, 6($0) - i32.const $push110=, 97 - i32.ne $push36=, $pop35, $pop110 + i32.load8_u $push35=, 6($1) + i32.const $push104=, 97 + i32.ne $push36=, $pop35, $pop104 br_if 2, $pop36 # 2: down to label7 # BB#26: # %for.inc25.6.i271 # in Loop: Header=BB2_1 Depth=1 - i32.load8_u $push37=, 7($0) - i32.const $push111=, 97 - i32.ne $push38=, $pop37, $pop111 + i32.load8_u $push37=, 7($1) + i32.const $push105=, 97 + i32.ne $push38=, $pop37, $pop105 br_if 2, $pop38 # 2: down to label7 # BB#27: # %check.exit272 # in Loop: Header=BB2_1 Depth=1 - i32.const $0=, u - i32.const $push113=, u - i32.const $push112=, 66 - i32.call $drop=, memset@FUNCTION, $pop113, $pop112, $3 + i32.const $1=, u + i32.const $push107=, u + i32.const $push106=, 66 + i32.call $drop=, memset@FUNCTION, $pop107, $pop106, $3 block br_if 0, $2 # 0: down to label16 # BB#28: # %for.body6.i278.preheader # in Loop: Header=BB2_1 Depth=1 - i32.const $0=, 0 + i32.const $1=, 0 .LBB2_29: # %for.body6.i278 # Parent Loop BB2_1 Depth=1 # => This Inner Loop Header: Depth=2 loop # label17: - copy_local $push116=, $0 - tee_local $push115=, $1=, $pop116 - i32.load8_u $push39=, u($pop115) - i32.const $push114=, 66 - i32.ne $push40=, $pop39, $pop114 + i32.load8_u $push39=, u($1) + i32.const $push108=, 66 + i32.ne $push40=, $pop39, $pop108 br_if 5, $pop40 # 5: down to label7 # BB#30: # %for.inc12.i283 # in Loop: Header=BB2_29 Depth=2 - i32.const $push119=, 1 - i32.add $push118=, $1, $pop119 - tee_local $push117=, $0=, $pop118 - i32.lt_s $push41=, $pop117, $3 + i32.const $push111=, 1 + i32.add $push110=, $1, $pop111 + tee_local $push109=, $1=, $pop110 + i32.lt_s $push41=, $pop109, $3 br_if 0, $pop41 # 0: up to label17 -# BB#31: # in Loop: Header=BB2_1 Depth=1 +# BB#31: # %for.body19.preheader.i286.loopexit + # in Loop: Header=BB2_1 Depth=1 end_loop # label18: - i32.const $push120=, u+1 - i32.add $0=, $1, $pop120 + i32.add $1=, $1, $0 .LBB2_32: # %for.body19.preheader.i286 # in Loop: Header=BB2_1 Depth=1 end_block # label16: - i32.load8_u $push42=, 0($0) - i32.const $push121=, 97 - i32.ne $push43=, $pop42, $pop121 + i32.load8_u $push42=, 0($1) + i32.const $push112=, 97 + i32.ne $push43=, $pop42, $pop112 br_if 2, $pop43 # 2: down to label7 # BB#33: # %for.inc25.i290 # in Loop: Header=BB2_1 Depth=1 - i32.load8_u $push44=, 1($0) - i32.const $push122=, 97 - i32.ne $push45=, $pop44, $pop122 + i32.load8_u $push44=, 1($1) + i32.const $push113=, 97 + i32.ne $push45=, $pop44, $pop113 br_if 2, $pop45 # 2: down to label7 # BB#34: # %for.inc25.1.i293 # in Loop: Header=BB2_1 Depth=1 - i32.load8_u $push46=, 2($0) - i32.const $push123=, 97 - i32.ne $push47=, $pop46, $pop123 + i32.load8_u $push46=, 2($1) + i32.const $push114=, 97 + i32.ne $push47=, $pop46, $pop114 br_if 2, $pop47 # 2: down to label7 # BB#35: # %for.inc25.2.i296 # in Loop: Header=BB2_1 Depth=1 - i32.load8_u $push48=, 3($0) - i32.const $push124=, 97 - i32.ne $push49=, $pop48, $pop124 + i32.load8_u $push48=, 3($1) + i32.const $push115=, 97 + i32.ne $push49=, $pop48, $pop115 br_if 2, $pop49 # 2: down to label7 # BB#36: # %for.inc25.3.i299 # in Loop: Header=BB2_1 Depth=1 - i32.load8_u $push50=, 4($0) - i32.const $push125=, 97 - i32.ne $push51=, $pop50, $pop125 + i32.load8_u $push50=, 4($1) + i32.const $push116=, 97 + i32.ne $push51=, $pop50, $pop116 br_if 2, $pop51 # 2: down to label7 # BB#37: # %for.inc25.4.i302 # in Loop: Header=BB2_1 Depth=1 - i32.load8_u $push52=, 5($0) - i32.const $push126=, 97 - i32.ne $push53=, $pop52, $pop126 + i32.load8_u $push52=, 5($1) + i32.const $push117=, 97 + i32.ne $push53=, $pop52, $pop117 br_if 2, $pop53 # 2: down to label7 # BB#38: # %for.inc25.5.i305 # in Loop: Header=BB2_1 Depth=1 - i32.load8_u $push54=, 6($0) - i32.const $push127=, 97 - i32.ne $push55=, $pop54, $pop127 + i32.load8_u $push54=, 6($1) + i32.const $push118=, 97 + i32.ne $push55=, $pop54, $pop118 br_if 2, $pop55 # 2: down to label7 # BB#39: # %for.inc25.6.i308 # in Loop: Header=BB2_1 Depth=1 - i32.load8_u $push56=, 7($0) - i32.const $push128=, 97 - i32.ne $push57=, $pop56, $pop128 + i32.load8_u $push56=, 7($1) + i32.const $push119=, 97 + i32.ne $push57=, $pop56, $pop119 br_if 2, $pop57 # 2: down to label7 # BB#40: # %for.cond # in Loop: Header=BB2_1 Depth=1 - i32.const $push132=, 1 - i32.add $push131=, $3, $pop132 - tee_local $push130=, $3=, $pop131 - i32.const $push129=, 15 - i32.lt_s $push58=, $pop130, $pop129 + i32.const $push123=, 1 + i32.add $push122=, $3, $pop123 + tee_local $push121=, $3=, $pop122 + i32.const $push120=, 15 + i32.lt_s $push58=, $pop121, $pop120 br_if 0, $pop58 # 0: up to label8 # BB#41: # %for.body13.preheader end_loop # label9: @@ -403,32 +395,32 @@ main: # @main .LBB2_42: # %for.body13 # =>This Inner Loop Header: Depth=1 loop # label19: - i32.const $push149=, u - i32.const $push148=, 97 - i32.const $push147=, 31 - i32.call $drop=, memset@FUNCTION, $pop149, $pop148, $pop147 - i32.const $push146=, u+1 - i32.const $push145=, 0 - i32.call $0=, memset@FUNCTION, $pop146, $pop145, $3 - i32.const $push144=, 1 - i32.const $push143=, 0 - call check@FUNCTION, $pop144, $3, $pop143 - i32.const $push142=, 0 - i32.load8_u $push59=, A($pop142) - i32.call $drop=, memset@FUNCTION, $0, $pop59, $3 - i32.const $push141=, 1 - i32.const $push140=, 65 - call check@FUNCTION, $pop141, $3, $pop140 - i32.const $push139=, 66 - i32.call $drop=, memset@FUNCTION, $0, $pop139, $3 - i32.const $push138=, 1 - i32.const $push137=, 66 - call check@FUNCTION, $pop138, $3, $pop137 - i32.const $push136=, 1 - i32.add $push135=, $3, $pop136 - tee_local $push134=, $3=, $pop135 - i32.const $push133=, 15 - i32.ne $push60=, $pop134, $pop133 + i32.const $push140=, u + i32.const $push139=, 97 + i32.const $push138=, 31 + i32.call $drop=, memset@FUNCTION, $pop140, $pop139, $pop138 + i32.const $push137=, u+1 + i32.const $push136=, 0 + i32.call $1=, memset@FUNCTION, $pop137, $pop136, $3 + i32.const $push135=, 1 + i32.const $push134=, 0 + call check@FUNCTION, $pop135, $3, $pop134 + i32.const $push133=, 0 + i32.load8_u $push59=, A($pop133) + i32.call $drop=, memset@FUNCTION, $1, $pop59, $3 + i32.const $push132=, 1 + i32.const $push131=, 65 + call check@FUNCTION, $pop132, $3, $pop131 + i32.const $push130=, 66 + i32.call $drop=, memset@FUNCTION, $1, $pop130, $3 + i32.const $push129=, 1 + i32.const $push128=, 66 + call check@FUNCTION, $pop129, $3, $pop128 + i32.const $push127=, 1 + i32.add $push126=, $3, $pop127 + tee_local $push125=, $3=, $pop126 + i32.const $push124=, 15 + i32.ne $push60=, $pop125, $pop124 br_if 0, $pop60 # 0: up to label19 # BB#43: # %for.body33.preheader end_loop # label20: @@ -436,32 +428,32 @@ main: # @main .LBB2_44: # %for.body33 # =>This Inner Loop Header: Depth=1 loop # label21: - i32.const $push166=, u - i32.const $push165=, 97 - i32.const $push164=, 31 - i32.call $drop=, memset@FUNCTION, $pop166, $pop165, $pop164 - i32.const $push163=, u+2 - i32.const $push162=, 0 - i32.call $0=, memset@FUNCTION, $pop163, $pop162, $3 - i32.const $push161=, 2 - i32.const $push160=, 0 - call check@FUNCTION, $pop161, $3, $pop160 - i32.const $push159=, 0 - i32.load8_u $push61=, A($pop159) - i32.call $drop=, memset@FUNCTION, $0, $pop61, $3 - i32.const $push158=, 2 - i32.const $push157=, 65 - call check@FUNCTION, $pop158, $3, $pop157 - i32.const $push156=, 66 - i32.call $drop=, memset@FUNCTION, $0, $pop156, $3 - i32.const $push155=, 2 - i32.const $push154=, 66 - call check@FUNCTION, $pop155, $3, $pop154 - i32.const $push153=, 1 - i32.add $push152=, $3, $pop153 - tee_local $push151=, $3=, $pop152 - i32.const $push150=, 15 - i32.ne $push62=, $pop151, $pop150 + i32.const $push157=, u + i32.const $push156=, 97 + i32.const $push155=, 31 + i32.call $drop=, memset@FUNCTION, $pop157, $pop156, $pop155 + i32.const $push154=, u+2 + i32.const $push153=, 0 + i32.call $1=, memset@FUNCTION, $pop154, $pop153, $3 + i32.const $push152=, 2 + i32.const $push151=, 0 + call check@FUNCTION, $pop152, $3, $pop151 + i32.const $push150=, 0 + i32.load8_u $push61=, A($pop150) + i32.call $drop=, memset@FUNCTION, $1, $pop61, $3 + i32.const $push149=, 2 + i32.const $push148=, 65 + call check@FUNCTION, $pop149, $3, $pop148 + i32.const $push147=, 66 + i32.call $drop=, memset@FUNCTION, $1, $pop147, $3 + i32.const $push146=, 2 + i32.const $push145=, 66 + call check@FUNCTION, $pop146, $3, $pop145 + i32.const $push144=, 1 + i32.add $push143=, $3, $pop144 + tee_local $push142=, $3=, $pop143 + i32.const $push141=, 15 + i32.ne $push62=, $pop142, $pop141 br_if 0, $pop62 # 0: up to label21 # BB#45: # %for.body53.preheader end_loop # label22: @@ -469,32 +461,32 @@ main: # @main .LBB2_46: # %for.body53 # =>This Inner Loop Header: Depth=1 loop # label23: - i32.const $push183=, u - i32.const $push182=, 97 - i32.const $push181=, 31 - i32.call $drop=, memset@FUNCTION, $pop183, $pop182, $pop181 - i32.const $push180=, u+3 - i32.const $push179=, 0 - i32.call $0=, memset@FUNCTION, $pop180, $pop179, $3 - i32.const $push178=, 3 - i32.const $push177=, 0 - call check@FUNCTION, $pop178, $3, $pop177 - i32.const $push176=, 0 - i32.load8_u $push63=, A($pop176) - i32.call $drop=, memset@FUNCTION, $0, $pop63, $3 - i32.const $push175=, 3 - i32.const $push174=, 65 - call check@FUNCTION, $pop175, $3, $pop174 - i32.const $push173=, 66 - i32.call $drop=, memset@FUNCTION, $0, $pop173, $3 - i32.const $push172=, 3 - i32.const $push171=, 66 - call check@FUNCTION, $pop172, $3, $pop171 - i32.const $push170=, 1 - i32.add $push169=, $3, $pop170 - tee_local $push168=, $3=, $pop169 - i32.const $push167=, 15 - i32.ne $push64=, $pop168, $pop167 + i32.const $push174=, u + i32.const $push173=, 97 + i32.const $push172=, 31 + i32.call $drop=, memset@FUNCTION, $pop174, $pop173, $pop172 + i32.const $push171=, u+3 + i32.const $push170=, 0 + i32.call $1=, memset@FUNCTION, $pop171, $pop170, $3 + i32.const $push169=, 3 + i32.const $push168=, 0 + call check@FUNCTION, $pop169, $3, $pop168 + i32.const $push167=, 0 + i32.load8_u $push63=, A($pop167) + i32.call $drop=, memset@FUNCTION, $1, $pop63, $3 + i32.const $push166=, 3 + i32.const $push165=, 65 + call check@FUNCTION, $pop166, $3, $pop165 + i32.const $push164=, 66 + i32.call $drop=, memset@FUNCTION, $1, $pop164, $3 + i32.const $push163=, 3 + i32.const $push162=, 66 + call check@FUNCTION, $pop163, $3, $pop162 + i32.const $push161=, 1 + i32.add $push160=, $3, $pop161 + tee_local $push159=, $3=, $pop160 + i32.const $push158=, 15 + i32.ne $push64=, $pop159, $pop158 br_if 0, $pop64 # 0: up to label23 # BB#47: # %for.body73.preheader end_loop # label24: @@ -502,32 +494,32 @@ main: # @main .LBB2_48: # %for.body73 # =>This Inner Loop Header: Depth=1 loop # label25: - i32.const $push200=, u - i32.const $push199=, 97 - i32.const $push198=, 31 - i32.call $drop=, memset@FUNCTION, $pop200, $pop199, $pop198 - i32.const $push197=, u+4 - i32.const $push196=, 0 - i32.call $0=, memset@FUNCTION, $pop197, $pop196, $3 - i32.const $push195=, 4 - i32.const $push194=, 0 - call check@FUNCTION, $pop195, $3, $pop194 - i32.const $push193=, 0 - i32.load8_u $push65=, A($pop193) - i32.call $drop=, memset@FUNCTION, $0, $pop65, $3 - i32.const $push192=, 4 - i32.const $push191=, 65 - call check@FUNCTION, $pop192, $3, $pop191 - i32.const $push190=, 66 - i32.call $drop=, memset@FUNCTION, $0, $pop190, $3 - i32.const $push189=, 4 - i32.const $push188=, 66 - call check@FUNCTION, $pop189, $3, $pop188 - i32.const $push187=, 1 - i32.add $push186=, $3, $pop187 - tee_local $push185=, $3=, $pop186 - i32.const $push184=, 15 - i32.ne $push66=, $pop185, $pop184 + i32.const $push191=, u + i32.const $push190=, 97 + i32.const $push189=, 31 + i32.call $drop=, memset@FUNCTION, $pop191, $pop190, $pop189 + i32.const $push188=, u+4 + i32.const $push187=, 0 + i32.call $1=, memset@FUNCTION, $pop188, $pop187, $3 + i32.const $push186=, 4 + i32.const $push185=, 0 + call check@FUNCTION, $pop186, $3, $pop185 + i32.const $push184=, 0 + i32.load8_u $push65=, A($pop184) + i32.call $drop=, memset@FUNCTION, $1, $pop65, $3 + i32.const $push183=, 4 + i32.const $push182=, 65 + call check@FUNCTION, $pop183, $3, $pop182 + i32.const $push181=, 66 + i32.call $drop=, memset@FUNCTION, $1, $pop181, $3 + i32.const $push180=, 4 + i32.const $push179=, 66 + call check@FUNCTION, $pop180, $3, $pop179 + i32.const $push178=, 1 + i32.add $push177=, $3, $pop178 + tee_local $push176=, $3=, $pop177 + i32.const $push175=, 15 + i32.ne $push66=, $pop176, $pop175 br_if 0, $pop66 # 0: up to label25 # BB#49: # %for.body93.preheader end_loop # label26: @@ -535,32 +527,32 @@ main: # @main .LBB2_50: # %for.body93 # =>This Inner Loop Header: Depth=1 loop # label27: - i32.const $push217=, u - i32.const $push216=, 97 - i32.const $push215=, 31 - i32.call $drop=, memset@FUNCTION, $pop217, $pop216, $pop215 - i32.const $push214=, u+5 - i32.const $push213=, 0 - i32.call $0=, memset@FUNCTION, $pop214, $pop213, $3 - i32.const $push212=, 5 - i32.const $push211=, 0 - call check@FUNCTION, $pop212, $3, $pop211 - i32.const $push210=, 0 - i32.load8_u $push67=, A($pop210) - i32.call $drop=, memset@FUNCTION, $0, $pop67, $3 - i32.const $push209=, 5 - i32.const $push208=, 65 - call check@FUNCTION, $pop209, $3, $pop208 - i32.const $push207=, 66 - i32.call $drop=, memset@FUNCTION, $0, $pop207, $3 - i32.const $push206=, 5 - i32.const $push205=, 66 - call check@FUNCTION, $pop206, $3, $pop205 - i32.const $push204=, 1 - i32.add $push203=, $3, $pop204 - tee_local $push202=, $3=, $pop203 - i32.const $push201=, 15 - i32.ne $push68=, $pop202, $pop201 + i32.const $push208=, u + i32.const $push207=, 97 + i32.const $push206=, 31 + i32.call $drop=, memset@FUNCTION, $pop208, $pop207, $pop206 + i32.const $push205=, u+5 + i32.const $push204=, 0 + i32.call $1=, memset@FUNCTION, $pop205, $pop204, $3 + i32.const $push203=, 5 + i32.const $push202=, 0 + call check@FUNCTION, $pop203, $3, $pop202 + i32.const $push201=, 0 + i32.load8_u $push67=, A($pop201) + i32.call $drop=, memset@FUNCTION, $1, $pop67, $3 + i32.const $push200=, 5 + i32.const $push199=, 65 + call check@FUNCTION, $pop200, $3, $pop199 + i32.const $push198=, 66 + i32.call $drop=, memset@FUNCTION, $1, $pop198, $3 + i32.const $push197=, 5 + i32.const $push196=, 66 + call check@FUNCTION, $pop197, $3, $pop196 + i32.const $push195=, 1 + i32.add $push194=, $3, $pop195 + tee_local $push193=, $3=, $pop194 + i32.const $push192=, 15 + i32.ne $push68=, $pop193, $pop192 br_if 0, $pop68 # 0: up to label27 # BB#51: # %for.body113.preheader end_loop # label28: @@ -568,32 +560,32 @@ main: # @main .LBB2_52: # %for.body113 # =>This Inner Loop Header: Depth=1 loop # label29: - i32.const $push234=, u - i32.const $push233=, 97 - i32.const $push232=, 31 - i32.call $drop=, memset@FUNCTION, $pop234, $pop233, $pop232 - i32.const $push231=, u+6 - i32.const $push230=, 0 - i32.call $0=, memset@FUNCTION, $pop231, $pop230, $3 - i32.const $push229=, 6 - i32.const $push228=, 0 - call check@FUNCTION, $pop229, $3, $pop228 - i32.const $push227=, 0 - i32.load8_u $push69=, A($pop227) - i32.call $drop=, memset@FUNCTION, $0, $pop69, $3 - i32.const $push226=, 6 - i32.const $push225=, 65 - call check@FUNCTION, $pop226, $3, $pop225 - i32.const $push224=, 66 - i32.call $drop=, memset@FUNCTION, $0, $pop224, $3 - i32.const $push223=, 6 - i32.const $push222=, 66 - call check@FUNCTION, $pop223, $3, $pop222 - i32.const $push221=, 1 - i32.add $push220=, $3, $pop221 - tee_local $push219=, $3=, $pop220 - i32.const $push218=, 15 - i32.ne $push70=, $pop219, $pop218 + i32.const $push225=, u + i32.const $push224=, 97 + i32.const $push223=, 31 + i32.call $drop=, memset@FUNCTION, $pop225, $pop224, $pop223 + i32.const $push222=, u+6 + i32.const $push221=, 0 + i32.call $1=, memset@FUNCTION, $pop222, $pop221, $3 + i32.const $push220=, 6 + i32.const $push219=, 0 + call check@FUNCTION, $pop220, $3, $pop219 + i32.const $push218=, 0 + i32.load8_u $push69=, A($pop218) + i32.call $drop=, memset@FUNCTION, $1, $pop69, $3 + i32.const $push217=, 6 + i32.const $push216=, 65 + call check@FUNCTION, $pop217, $3, $pop216 + i32.const $push215=, 66 + i32.call $drop=, memset@FUNCTION, $1, $pop215, $3 + i32.const $push214=, 6 + i32.const $push213=, 66 + call check@FUNCTION, $pop214, $3, $pop213 + i32.const $push212=, 1 + i32.add $push211=, $3, $pop212 + tee_local $push210=, $3=, $pop211 + i32.const $push209=, 15 + i32.ne $push70=, $pop210, $pop209 br_if 0, $pop70 # 0: up to label29 # BB#53: # %for.body133.preheader end_loop # label30: @@ -601,32 +593,32 @@ main: # @main .LBB2_54: # %for.body133 # =>This Inner Loop Header: Depth=1 loop # label31: - i32.const $push251=, u - i32.const $push250=, 97 - i32.const $push249=, 31 - i32.call $drop=, memset@FUNCTION, $pop251, $pop250, $pop249 - i32.const $push248=, u+7 - i32.const $push247=, 0 - i32.call $0=, memset@FUNCTION, $pop248, $pop247, $3 - i32.const $push246=, 7 - i32.const $push245=, 0 - call check@FUNCTION, $pop246, $3, $pop245 - i32.const $push244=, 0 - i32.load8_u $push71=, A($pop244) - i32.call $drop=, memset@FUNCTION, $0, $pop71, $3 - i32.const $push243=, 7 - i32.const $push242=, 65 - call check@FUNCTION, $pop243, $3, $pop242 - i32.const $push241=, 66 - i32.call $drop=, memset@FUNCTION, $0, $pop241, $3 - i32.const $push240=, 7 - i32.const $push239=, 66 - call check@FUNCTION, $pop240, $3, $pop239 - i32.const $push238=, 1 - i32.add $push237=, $3, $pop238 - tee_local $push236=, $3=, $pop237 - i32.const $push235=, 15 - i32.ne $push72=, $pop236, $pop235 + i32.const $push242=, u + i32.const $push241=, 97 + i32.const $push240=, 31 + i32.call $drop=, memset@FUNCTION, $pop242, $pop241, $pop240 + i32.const $push239=, u+7 + i32.const $push238=, 0 + i32.call $1=, memset@FUNCTION, $pop239, $pop238, $3 + i32.const $push237=, 7 + i32.const $push236=, 0 + call check@FUNCTION, $pop237, $3, $pop236 + i32.const $push235=, 0 + i32.load8_u $push71=, A($pop235) + i32.call $drop=, memset@FUNCTION, $1, $pop71, $3 + i32.const $push234=, 7 + i32.const $push233=, 65 + call check@FUNCTION, $pop234, $3, $pop233 + i32.const $push232=, 66 + i32.call $drop=, memset@FUNCTION, $1, $pop232, $3 + i32.const $push231=, 7 + i32.const $push230=, 66 + call check@FUNCTION, $pop231, $3, $pop230 + i32.const $push229=, 1 + i32.add $push228=, $3, $pop229 + tee_local $push227=, $3=, $pop228 + i32.const $push226=, 15 + i32.ne $push72=, $pop227, $pop226 br_if 0, $pop72 # 0: up to label31 # BB#55: # %for.end149 end_loop # label32: @@ -653,3 +645,5 @@ A: .lcomm u,32,4 .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/mod-1.c.s b/test/torture-s/mod-1.c.s index 56e50e060..3c68529e2 100644 --- a/test/torture-s/mod-1.c.s +++ b/test/torture-s/mod-1.c.s @@ -37,3 +37,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/mode-dependent-address.c.s b/test/torture-s/mode-dependent-address.c.s index 571521203..5cdb4d329 100644 --- a/test/torture-s/mode-dependent-address.c.s +++ b/test/torture-s/mode-dependent-address.c.s @@ -315,3 +315,4 @@ result: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/multi-ix.c.s b/test/torture-s/multi-ix.c.s index 3f70dc0ab..5811ce4ad 100644 --- a/test/torture-s/multi-ix.c.s +++ b/test/torture-s/multi-ix.c.s @@ -1217,3 +1217,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 + .functype abort, void diff --git a/test/torture-s/nestfunc-4.c.s b/test/torture-s/nestfunc-4.c.s index d3b593392..c8c7eb071 100644 --- a/test/torture-s/nestfunc-4.c.s +++ b/test/torture-s/nestfunc-4.c.s @@ -88,3 +88,4 @@ level: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/p18298.c.s b/test/torture-s/p18298.c.s index 103f02747..792ba18f2 100644 --- a/test/torture-s/p18298.c.s +++ b/test/torture-s/p18298.c.s @@ -51,3 +51,4 @@ s: .ident "clang version 3.9.0 " + .functype strcmp, i32, i32, i32 diff --git a/test/torture-s/packed-1.c.s b/test/torture-s/packed-1.c.s index e8a8199e1..9b8a25ac9 100644 --- a/test/torture-s/packed-1.c.s +++ b/test/torture-s/packed-1.c.s @@ -61,3 +61,5 @@ t: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/pending-4.c.s b/test/torture-s/pending-4.c.s index c8efa2c02..757a3ea87 100644 --- a/test/torture-s/pending-4.c.s +++ b/test/torture-s/pending-4.c.s @@ -74,3 +74,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/pr15296.c.s b/test/torture-s/pr15296.c.s index 72f96ac9f..a0ffde671 100644 --- a/test/torture-s/pr15296.c.s +++ b/test/torture-s/pr15296.c.s @@ -198,3 +198,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/pr17133.c.s b/test/torture-s/pr17133.c.s index bef5cd88b..227f2a32a 100644 --- a/test/torture-s/pr17133.c.s +++ b/test/torture-s/pr17133.c.s @@ -128,3 +128,4 @@ baz: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr17252.c.s b/test/torture-s/pr17252.c.s index 7aab4a690..35236ae88 100644 --- a/test/torture-s/pr17252.c.s +++ b/test/torture-s/pr17252.c.s @@ -41,3 +41,4 @@ a: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr19005.c.s b/test/torture-s/pr19005.c.s index 9ae0dd0c8..bffb68e86 100644 --- a/test/torture-s/pr19005.c.s +++ b/test/torture-s/pr19005.c.s @@ -205,3 +205,4 @@ s: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr19449.c.s b/test/torture-s/pr19449.c.s index ef67e03f6..5da3c0779 100644 --- a/test/torture-s/pr19449.c.s +++ b/test/torture-s/pr19449.c.s @@ -62,3 +62,4 @@ y: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr19606.c.s b/test/torture-s/pr19606.c.s index 6ab65cc46..92469f706 100644 --- a/test/torture-s/pr19606.c.s +++ b/test/torture-s/pr19606.c.s @@ -77,3 +77,5 @@ a: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/pr20100-1.c.s b/test/torture-s/pr20100-1.c.s index 2243f3ec2..9055068c9 100644 --- a/test/torture-s/pr20100-1.c.s +++ b/test/torture-s/pr20100-1.c.s @@ -128,3 +128,4 @@ e: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/pr20466-1.c.s b/test/torture-s/pr20466-1.c.s index 5b2d8da71..8acba6d66 100644 --- a/test/torture-s/pr20466-1.c.s +++ b/test/torture-s/pr20466-1.c.s @@ -113,3 +113,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/pr20527-1.c.s b/test/torture-s/pr20527-1.c.s index 35433805d..b9d30dd40 100644 --- a/test/torture-s/pr20527-1.c.s +++ b/test/torture-s/pr20527-1.c.s @@ -114,3 +114,5 @@ b: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/pr20601-1.c.s b/test/torture-s/pr20601-1.c.s index 8b02ec514..2940e558c 100644 --- a/test/torture-s/pr20601-1.c.s +++ b/test/torture-s/pr20601-1.c.s @@ -329,3 +329,5 @@ f: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/pr21173.c.s b/test/torture-s/pr21173.c.s index 3740a071e..032ea7573 100644 --- a/test/torture-s/pr21173.c.s +++ b/test/torture-s/pr21173.c.s @@ -69,3 +69,4 @@ a: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr21964-1.c.s b/test/torture-s/pr21964-1.c.s index 4f81eb3db..ef8596ab2 100644 --- a/test/torture-s/pr21964-1.c.s +++ b/test/torture-s/pr21964-1.c.s @@ -41,3 +41,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 + .functype abort, void diff --git a/test/torture-s/pr22061-1.c.s b/test/torture-s/pr22061-1.c.s index 13f604d91..89043452b 100644 --- a/test/torture-s/pr22061-1.c.s +++ b/test/torture-s/pr22061-1.c.s @@ -57,3 +57,4 @@ N: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/pr22061-2.c.s b/test/torture-s/pr22061-2.c.s index e64c86b18..89a692e76 100644 --- a/test/torture-s/pr22061-2.c.s +++ b/test/torture-s/pr22061-2.c.s @@ -25,3 +25,4 @@ x: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/pr22098-1.c.s b/test/torture-s/pr22098-1.c.s index 1c4e69fe0..dfd87575e 100644 --- a/test/torture-s/pr22098-1.c.s +++ b/test/torture-s/pr22098-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/pr22098-2.c.s b/test/torture-s/pr22098-2.c.s index 4c847658f..903c334e4 100644 --- a/test/torture-s/pr22098-2.c.s +++ b/test/torture-s/pr22098-2.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/pr22098-3.c.s b/test/torture-s/pr22098-3.c.s index a66aa5a59..8176e5ab0 100644 --- a/test/torture-s/pr22098-3.c.s +++ b/test/torture-s/pr22098-3.c.s @@ -58,3 +58,5 @@ n: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/pr22348.c.s b/test/torture-s/pr22348.c.s index 127d52446..5c5be27f0 100644 --- a/test/torture-s/pr22348.c.s +++ b/test/torture-s/pr22348.c.s @@ -36,3 +36,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr22493-1.c.s b/test/torture-s/pr22493-1.c.s index 870d159cb..972d5a769 100644 --- a/test/torture-s/pr22493-1.c.s +++ b/test/torture-s/pr22493-1.c.s @@ -30,3 +30,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr23047.c.s b/test/torture-s/pr23047.c.s index f7222675a..cf48f9c2a 100644 --- a/test/torture-s/pr23047.c.s +++ b/test/torture-s/pr23047.c.s @@ -46,3 +46,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/pr23135.c.s b/test/torture-s/pr23135.c.s index 287ea6c59..03ec7fc95 100644 --- a/test/torture-s/pr23135.c.s +++ b/test/torture-s/pr23135.c.s @@ -293,3 +293,5 @@ k: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/pr23324.c.s b/test/torture-s/pr23324.c.s index 40e3fd00f..cc8e51388 100644 --- a/test/torture-s/pr23324.c.s +++ b/test/torture-s/pr23324.c.s @@ -95,3 +95,4 @@ yv7: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr23467.c.s b/test/torture-s/pr23467.c.s index 795181a03..723e0d225 100644 --- a/test/torture-s/pr23467.c.s +++ b/test/torture-s/pr23467.c.s @@ -25,3 +25,4 @@ v: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/pr23941.c.s b/test/torture-s/pr23941.c.s index 98edf9f78..2b2746012 100644 --- a/test/torture-s/pr23941.c.s +++ b/test/torture-s/pr23941.c.s @@ -35,3 +35,4 @@ d: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr24716.c.s b/test/torture-s/pr24716.c.s index c0630b466..82961f532 100644 --- a/test/torture-s/pr24716.c.s +++ b/test/torture-s/pr24716.c.s @@ -287,3 +287,4 @@ W: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr25125.c.s b/test/torture-s/pr25125.c.s index 5ae373161..449512e2e 100644 --- a/test/torture-s/pr25125.c.s +++ b/test/torture-s/pr25125.c.s @@ -55,3 +55,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/pr27073.c.s b/test/torture-s/pr27073.c.s index 3070b9a6b..c93627ffa 100644 --- a/test/torture-s/pr27073.c.s +++ b/test/torture-s/pr27073.c.s @@ -131,3 +131,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/pr27260.c.s b/test/torture-s/pr27260.c.s index c934d7ec8..bb7dd7c2c 100644 --- a/test/torture-s/pr27260.c.s +++ b/test/torture-s/pr27260.c.s @@ -119,3 +119,4 @@ buf: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr27285.c.s b/test/torture-s/pr27285.c.s index f23fd936d..30fdcbfbe 100644 --- a/test/torture-s/pr27285.c.s +++ b/test/torture-s/pr27285.c.s @@ -151,3 +151,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr27364.c.s b/test/torture-s/pr27364.c.s index 99351b706..8f8bde887 100644 --- a/test/torture-s/pr27364.c.s +++ b/test/torture-s/pr27364.c.s @@ -47,3 +47,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/pr27671-1.c.s b/test/torture-s/pr27671-1.c.s index 502b5df1a..85e5c3878 100644 --- a/test/torture-s/pr27671-1.c.s +++ b/test/torture-s/pr27671-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/pr28289.c.s b/test/torture-s/pr28289.c.s index 36d8f7f16..92069f797 100644 --- a/test/torture-s/pr28289.c.s +++ b/test/torture-s/pr28289.c.s @@ -74,3 +74,4 @@ one: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/pr28403.c.s b/test/torture-s/pr28403.c.s index de5b754ed..f17173808 100644 --- a/test/torture-s/pr28403.c.s +++ b/test/torture-s/pr28403.c.s @@ -84,3 +84,5 @@ global: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/pr28651.c.s b/test/torture-s/pr28651.c.s index ae5032e3c..2e98bb7fd 100644 --- a/test/torture-s/pr28651.c.s +++ b/test/torture-s/pr28651.c.s @@ -41,3 +41,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr28778.c.s b/test/torture-s/pr28778.c.s index 6e88fbd9f..90301e5e3 100644 --- a/test/torture-s/pr28778.c.s +++ b/test/torture-s/pr28778.c.s @@ -78,3 +78,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr29695-2.c.s b/test/torture-s/pr29695-2.c.s index 78476fba2..6483e99fb 100644 --- a/test/torture-s/pr29695-2.c.s +++ b/test/torture-s/pr29695-2.c.s @@ -226,3 +226,4 @@ d: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr30778.c.s b/test/torture-s/pr30778.c.s index 742f5c0b1..f34c25657 100644 --- a/test/torture-s/pr30778.c.s +++ b/test/torture-s/pr30778.c.s @@ -75,3 +75,4 @@ main: # @main .lcomm reg_stat,4,2 .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr31072.c.s b/test/torture-s/pr31072.c.s index 79cd7809c..cf287e55d 100644 --- a/test/torture-s/pr31072.c.s +++ b/test/torture-s/pr31072.c.s @@ -35,3 +35,4 @@ ReadyFlag_NotProperlyInitialized: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr31605.c.s b/test/torture-s/pr31605.c.s index 395fff39d..20da456a1 100644 --- a/test/torture-s/pr31605.c.s +++ b/test/torture-s/pr31605.c.s @@ -43,3 +43,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 + .functype abort, void diff --git a/test/torture-s/pr32244-1.c.s b/test/torture-s/pr32244-1.c.s index 959d92ce8..4f318ccd2 100644 --- a/test/torture-s/pr32244-1.c.s +++ b/test/torture-s/pr32244-1.c.s @@ -56,3 +56,4 @@ x: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr32500.c.s b/test/torture-s/pr32500.c.s index b1024bec9..21589ae16 100644 --- a/test/torture-s/pr32500.c.s +++ b/test/torture-s/pr32500.c.s @@ -60,3 +60,4 @@ x: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/pr33142.c.s b/test/torture-s/pr33142.c.s index 3eb176414..a55c5ffed 100644 --- a/test/torture-s/pr33142.c.s +++ b/test/torture-s/pr33142.c.s @@ -79,3 +79,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr33382.c.s b/test/torture-s/pr33382.c.s index 094d0e662..488f73206 100644 --- a/test/torture-s/pr33382.c.s +++ b/test/torture-s/pr33382.c.s @@ -57,3 +57,4 @@ x: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr33870-1.c.s b/test/torture-s/pr33870-1.c.s index 85e5c776a..a44860069 100644 --- a/test/torture-s/pr33870-1.c.s +++ b/test/torture-s/pr33870-1.c.s @@ -533,3 +533,4 @@ vx: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr33870.c.s b/test/torture-s/pr33870.c.s index af022fc4b..b1042b6d2 100644 --- a/test/torture-s/pr33870.c.s +++ b/test/torture-s/pr33870.c.s @@ -519,3 +519,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr33992.c.s b/test/torture-s/pr33992.c.s index 68470dcb2..fcfdde2fe 100644 --- a/test/torture-s/pr33992.c.s +++ b/test/torture-s/pr33992.c.s @@ -30,55 +30,51 @@ do_test: # @do_test .local i64, i64, i64, i64 # BB#0: # %entry i64.load $1=, 0($0) + i64.const $4=, -4294967296 i64.const $3=, 63 - i64.const $4=, -1 .LBB1_1: # %for.cond.i # =>This Inner Loop Header: Depth=1 loop # label1: - i64.const $push17=, 1 - i64.add $4=, $4, $pop17 - i64.const $push16=, 4294967295 - i64.and $2=, $3, $pop16 - i64.const $push15=, -1 - i64.add $push0=, $3, $pop15 + i64.const $push15=, 4294967296 + i64.add $4=, $4, $pop15 + i64.const $push14=, 4294967295 + i64.and $2=, $3, $pop14 + i64.const $push13=, -1 + i64.add $push0=, $3, $pop13 copy_local $3=, $pop0 - i64.const $push14=, 1 - i64.shl $push2=, $pop14, $2 + i64.const $push12=, 1 + i64.shl $push2=, $pop12, $2 i64.and $push3=, $pop2, $1 i64.eqz $push4=, $pop3 br_if 0, $pop4 # 0: up to label1 # BB#2: # %foo.exit end_loop # label2: i64.const $push5=, 32 - i64.shl $push6=, $4, $pop5 - i64.const $push18=, 32 - i64.shr_s $push7=, $pop6, $pop18 - call bar@FUNCTION, $pop7 + i64.shr_s $push6=, $4, $pop5 + call bar@FUNCTION, $pop6 i64.load $1=, 0($0) + i64.const $4=, -4294967296 i64.const $3=, 63 - i64.const $4=, -1 .LBB1_3: # %for.cond.i.1 # =>This Inner Loop Header: Depth=1 loop # label3: - i64.const $push22=, 1 - i64.add $4=, $4, $pop22 - i64.const $push21=, 4294967295 - i64.and $2=, $3, $pop21 - i64.const $push20=, -1 - i64.add $push1=, $3, $pop20 + i64.const $push19=, 4294967296 + i64.add $4=, $4, $pop19 + i64.const $push18=, 4294967295 + i64.and $2=, $3, $pop18 + i64.const $push17=, -1 + i64.add $push1=, $3, $pop17 copy_local $3=, $pop1 - i64.const $push19=, 1 - i64.shl $push8=, $pop19, $2 - i64.and $push9=, $pop8, $1 - i64.eqz $push10=, $pop9 - br_if 0, $pop10 # 0: up to label3 + i64.const $push16=, 1 + i64.shl $push7=, $pop16, $2 + i64.and $push8=, $pop7, $1 + i64.eqz $push9=, $pop8 + br_if 0, $pop9 # 0: up to label3 # BB#4: # %foo.exit.1 end_loop # label4: - i64.const $push11=, 32 - i64.shl $push12=, $4, $pop11 - i64.const $push23=, 32 - i64.shr_s $push13=, $pop12, $pop23 - call bar@FUNCTION, $pop13 + i64.const $push10=, 32 + i64.shr_s $push11=, $4, $pop10 + call bar@FUNCTION, $pop11 # fallthrough-return .endfunc .Lfunc_end1: @@ -116,3 +112,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr34176.c.s b/test/torture-s/pr34176.c.s index e37f3fb96..652af48f7 100644 --- a/test/torture-s/pr34176.c.s +++ b/test/torture-s/pr34176.c.s @@ -113,3 +113,4 @@ main: # @main .lcomm foo.count,4,2 .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr34456.c.s b/test/torture-s/pr34456.c.s index 769449918..b3ecd13e1 100644 --- a/test/torture-s/pr34456.c.s +++ b/test/torture-s/pr34456.c.s @@ -104,3 +104,4 @@ errors: .ident "clang version 3.9.0 " + .functype qsort, void, i32, i32, i32, i32 diff --git a/test/torture-s/pr34768-1.c.s b/test/torture-s/pr34768-1.c.s index ed68aa1a8..485b8dc08 100644 --- a/test/torture-s/pr34768-1.c.s +++ b/test/torture-s/pr34768-1.c.s @@ -86,3 +86,4 @@ x: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr34768-2.c.s b/test/torture-s/pr34768-2.c.s index 634fd8de6..e4790bf4c 100644 --- a/test/torture-s/pr34768-2.c.s +++ b/test/torture-s/pr34768-2.c.s @@ -90,3 +90,4 @@ x: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr34971.c.s b/test/torture-s/pr34971.c.s index 858449491..6aae0d2ce 100644 --- a/test/torture-s/pr34971.c.s +++ b/test/torture-s/pr34971.c.s @@ -63,3 +63,4 @@ x: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr35231.c.s b/test/torture-s/pr35231.c.s index 3b8901b6d..911934c30 100644 --- a/test/torture-s/pr35231.c.s +++ b/test/torture-s/pr35231.c.s @@ -50,3 +50,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr35456.c.s b/test/torture-s/pr35456.c.s index 357c01daf..cb266844c 100644 --- a/test/torture-s/pr35456.c.s +++ b/test/torture-s/pr35456.c.s @@ -44,3 +44,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr35472.c.s b/test/torture-s/pr35472.c.s index bdd0ff1eb..1eda1d1ab 100644 --- a/test/torture-s/pr35472.c.s +++ b/test/torture-s/pr35472.c.s @@ -135,3 +135,4 @@ p: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr35800.c.s b/test/torture-s/pr35800.c.s index 8695a5900..3413ef7e1 100644 --- a/test/torture-s/pr35800.c.s +++ b/test/torture-s/pr35800.c.s @@ -136,3 +136,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr36034-1.c.s b/test/torture-s/pr36034-1.c.s index b1fef2236..c2ed193f8 100644 --- a/test/torture-s/pr36034-1.c.s +++ b/test/torture-s/pr36034-1.c.s @@ -399,3 +399,4 @@ tmp: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr36034-2.c.s b/test/torture-s/pr36034-2.c.s index 7219ff8bf..40205ce50 100644 --- a/test/torture-s/pr36034-2.c.s +++ b/test/torture-s/pr36034-2.c.s @@ -399,3 +399,4 @@ tmp: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr36038.c.s b/test/torture-s/pr36038.c.s index c01ad82ab..adcfc16d9 100644 --- a/test/torture-s/pr36038.c.s +++ b/test/torture-s/pr36038.c.s @@ -177,3 +177,5 @@ indices: .ident "clang version 3.9.0 " + .functype memcmp, i32, i32, i32, i32 + .functype abort, void diff --git a/test/torture-s/pr36339.c.s b/test/torture-s/pr36339.c.s index 7bba09f69..70de2badc 100644 --- a/test/torture-s/pr36339.c.s +++ b/test/torture-s/pr36339.c.s @@ -93,3 +93,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr36343.c.s b/test/torture-s/pr36343.c.s index cf3965f88..bbbc53399 100644 --- a/test/torture-s/pr36343.c.s +++ b/test/torture-s/pr36343.c.s @@ -91,3 +91,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr36765.c.s b/test/torture-s/pr36765.c.s index e980d177f..6547c73d1 100644 --- a/test/torture-s/pr36765.c.s +++ b/test/torture-s/pr36765.c.s @@ -51,3 +51,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype __builtin_malloc, i32 + .functype abort, void diff --git a/test/torture-s/pr37102.c.s b/test/torture-s/pr37102.c.s index 7918ca3d9..d86d8d0a9 100644 --- a/test/torture-s/pr37102.c.s +++ b/test/torture-s/pr37102.c.s @@ -88,3 +88,4 @@ a: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr37125.c.s b/test/torture-s/pr37125.c.s index 9666e8e77..54248753e 100644 --- a/test/torture-s/pr37125.c.s +++ b/test/torture-s/pr37125.c.s @@ -39,3 +39,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr37573.c.s b/test/torture-s/pr37573.c.s index 4e91b130d..4a7b770fc 100644 --- a/test/torture-s/pr37573.c.s +++ b/test/torture-s/pr37573.c.s @@ -369,3 +369,5 @@ q: .ident "clang version 3.9.0 " + .functype memcmp, i32, i32, i32, i32 + .functype abort, void diff --git a/test/torture-s/pr38051.c.s b/test/torture-s/pr38051.c.s index aa18a9b1f..dd4b1de57 100644 --- a/test/torture-s/pr38051.c.s +++ b/test/torture-s/pr38051.c.s @@ -1029,3 +1029,4 @@ buf: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr38151.c.s b/test/torture-s/pr38151.c.s index 80dee40a8..6fe605d78 100644 --- a/test/torture-s/pr38151.c.s +++ b/test/torture-s/pr38151.c.s @@ -143,3 +143,4 @@ fails: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr38212.c.s b/test/torture-s/pr38212.c.s index eee258829..eff8b5c37 100644 --- a/test/torture-s/pr38212.c.s +++ b/test/torture-s/pr38212.c.s @@ -66,3 +66,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr38236.c.s b/test/torture-s/pr38236.c.s index 1a9a8812f..af76b44f2 100644 --- a/test/torture-s/pr38236.c.s +++ b/test/torture-s/pr38236.c.s @@ -59,3 +59,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr38533.c.s b/test/torture-s/pr38533.c.s index 5739dd2e6..882c0b20d 100644 --- a/test/torture-s/pr38533.c.s +++ b/test/torture-s/pr38533.c.s @@ -1247,3 +1247,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr38819.c.s b/test/torture-s/pr38819.c.s index 95d292bdf..d17e64ccb 100644 --- a/test/torture-s/pr38819.c.s +++ b/test/torture-s/pr38819.c.s @@ -68,3 +68,4 @@ r: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/pr38969.c.s b/test/torture-s/pr38969.c.s index 6626d7342..1d212cf0c 100644 --- a/test/torture-s/pr38969.c.s +++ b/test/torture-s/pr38969.c.s @@ -103,3 +103,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr39100.c.s b/test/torture-s/pr39100.c.s index f3b0b57ff..afaf29b5b 100644 --- a/test/torture-s/pr39100.c.s +++ b/test/torture-s/pr39100.c.s @@ -153,3 +153,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr39120.c.s b/test/torture-s/pr39120.c.s index a1c344245..47a62abd8 100644 --- a/test/torture-s/pr39120.c.s +++ b/test/torture-s/pr39120.c.s @@ -82,3 +82,4 @@ x: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr39228.c.s b/test/torture-s/pr39228.c.s index d33e24b14..0c5a573e2 100644 --- a/test/torture-s/pr39228.c.s +++ b/test/torture-s/pr39228.c.s @@ -37,3 +37,6 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype __builtin_isinff, i32 + .functype __builtin_isinfl, i32 diff --git a/test/torture-s/pr39233.c.s b/test/torture-s/pr39233.c.s index b18157ce6..2ae744a3b 100644 --- a/test/torture-s/pr39233.c.s +++ b/test/torture-s/pr39233.c.s @@ -54,3 +54,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr39240.c.s b/test/torture-s/pr39240.c.s index 370492195..e86a73788 100644 --- a/test/torture-s/pr39240.c.s +++ b/test/torture-s/pr39240.c.s @@ -304,3 +304,4 @@ l6: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr39339.c.s b/test/torture-s/pr39339.c.s index 2e59c33fc..8d1f9f72b 100644 --- a/test/torture-s/pr39339.c.s +++ b/test/torture-s/pr39339.c.s @@ -152,3 +152,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr39501.c.s b/test/torture-s/pr39501.c.s index 90c1b2a0c..f34fe2afe 100644 --- a/test/torture-s/pr39501.c.s +++ b/test/torture-s/pr39501.c.s @@ -479,3 +479,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/pr40022.c.s b/test/torture-s/pr40022.c.s index c1b8beb72..216faa550 100644 --- a/test/torture-s/pr40022.c.s +++ b/test/torture-s/pr40022.c.s @@ -158,3 +158,4 @@ e: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr40057.c.s b/test/torture-s/pr40057.c.s index 6d35efcaa..ad9b4c9a4 100644 --- a/test/torture-s/pr40057.c.s +++ b/test/torture-s/pr40057.c.s @@ -70,3 +70,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr40386.c.s b/test/torture-s/pr40386.c.s index 3fafc0f21..eacaaa36b 100644 --- a/test/torture-s/pr40386.c.s +++ b/test/torture-s/pr40386.c.s @@ -291,3 +291,5 @@ shift2: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/pr40579.c.s b/test/torture-s/pr40579.c.s index 8bdfdbd86..88ec54872 100644 --- a/test/torture-s/pr40579.c.s +++ b/test/torture-s/pr40579.c.s @@ -42,3 +42,4 @@ foo: # @foo .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr40657.c.s b/test/torture-s/pr40657.c.s index 95e5a9e1f..bdf00e66e 100644 --- a/test/torture-s/pr40657.c.s +++ b/test/torture-s/pr40657.c.s @@ -89,3 +89,5 @@ v: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/pr41239.c.s b/test/torture-s/pr41239.c.s index 1c4e732d3..47d3dc125 100644 --- a/test/torture-s/pr41239.c.s +++ b/test/torture-s/pr41239.c.s @@ -186,3 +186,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/pr41395-1.c.s b/test/torture-s/pr41395-1.c.s index e01d677e2..4229a0f2e 100644 --- a/test/torture-s/pr41395-1.c.s +++ b/test/torture-s/pr41395-1.c.s @@ -56,3 +56,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype malloc, i32, i32 + .functype abort, void diff --git a/test/torture-s/pr41395-2.c.s b/test/torture-s/pr41395-2.c.s index c721b2efb..3160575b5 100644 --- a/test/torture-s/pr41395-2.c.s +++ b/test/torture-s/pr41395-2.c.s @@ -56,3 +56,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype malloc, i32, i32 + .functype abort, void diff --git a/test/torture-s/pr41750.c.s b/test/torture-s/pr41750.c.s index 6eea5b8a7..52985e23a 100644 --- a/test/torture-s/pr41750.c.s +++ b/test/torture-s/pr41750.c.s @@ -112,3 +112,4 @@ abfd: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr41917.c.s b/test/torture-s/pr41917.c.s index 22ab58c43..ea4f36fbb 100644 --- a/test/torture-s/pr41917.c.s +++ b/test/torture-s/pr41917.c.s @@ -39,3 +39,4 @@ a: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr42142.c.s b/test/torture-s/pr42142.c.s index f6915bf71..419ef6e85 100644 --- a/test/torture-s/pr42142.c.s +++ b/test/torture-s/pr42142.c.s @@ -48,3 +48,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr42154.c.s b/test/torture-s/pr42154.c.s index 1f84a6f4d..7cd2a3c4e 100644 --- a/test/torture-s/pr42154.c.s +++ b/test/torture-s/pr42154.c.s @@ -40,3 +40,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr42231.c.s b/test/torture-s/pr42231.c.s index 000ce88ad..58bb85d08 100644 --- a/test/torture-s/pr42231.c.s +++ b/test/torture-s/pr42231.c.s @@ -89,3 +89,4 @@ storemax: # @storemax .lcomm max,4,2 .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr42248.c.s b/test/torture-s/pr42248.c.s index c429ddeb2..8ebb50cf1 100644 --- a/test/torture-s/pr42248.c.s +++ b/test/torture-s/pr42248.c.s @@ -73,3 +73,4 @@ g1s: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr42512.c.s b/test/torture-s/pr42512.c.s index aa1e971d4..fadf14de6 100644 --- a/test/torture-s/pr42512.c.s +++ b/test/torture-s/pr42512.c.s @@ -56,3 +56,4 @@ g_3: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr42614.c.s b/test/torture-s/pr42614.c.s index 3cb069138..45f8ec3e4 100644 --- a/test/torture-s/pr42614.c.s +++ b/test/torture-s/pr42614.c.s @@ -70,3 +70,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype malloc, i32, i32 + .functype abort, void diff --git a/test/torture-s/pr42691.c.s b/test/torture-s/pr42691.c.s index d51640495..3b5e82ca4 100644 --- a/test/torture-s/pr42691.c.s +++ b/test/torture-s/pr42691.c.s @@ -103,3 +103,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr42721.c.s b/test/torture-s/pr42721.c.s index d9df0c077..11f00b529 100644 --- a/test/torture-s/pr42721.c.s +++ b/test/torture-s/pr42721.c.s @@ -32,3 +32,4 @@ main: # @main .lcomm b,4,2 .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr43008.c.s b/test/torture-s/pr43008.c.s index fe8147402..796558e0f 100644 --- a/test/torture-s/pr43008.c.s +++ b/test/torture-s/pr43008.c.s @@ -66,3 +66,5 @@ i: .ident "clang version 3.9.0 " + .functype __builtin_malloc, i32 + .functype abort, void diff --git a/test/torture-s/pr43236.c.s b/test/torture-s/pr43236.c.s index ccb7a89f9..8efc0f965 100644 --- a/test/torture-s/pr43236.c.s +++ b/test/torture-s/pr43236.c.s @@ -110,3 +110,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype memcmp, i32, i32, i32, i32 + .functype abort, void diff --git a/test/torture-s/pr43269.c.s b/test/torture-s/pr43269.c.s index 129516a91..d33394f25 100644 --- a/test/torture-s/pr43269.c.s +++ b/test/torture-s/pr43269.c.s @@ -79,3 +79,4 @@ g_211: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr43385.c.s b/test/torture-s/pr43385.c.s index b1bbe7a52..9321ec368 100644 --- a/test/torture-s/pr43385.c.s +++ b/test/torture-s/pr43385.c.s @@ -148,3 +148,4 @@ e: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr43629.c.s b/test/torture-s/pr43629.c.s index a5e597db4..2b229e085 100644 --- a/test/torture-s/pr43629.c.s +++ b/test/torture-s/pr43629.c.s @@ -33,3 +33,4 @@ flag: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr43784.c.s b/test/torture-s/pr43784.c.s index 7d7f37908..daaf59736 100644 --- a/test/torture-s/pr43784.c.s +++ b/test/torture-s/pr43784.c.s @@ -80,3 +80,4 @@ rp: # @rp .lcomm v,260,2 .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr43835.c.s b/test/torture-s/pr43835.c.s index ffef5093d..9b8f82bb3 100644 --- a/test/torture-s/pr43835.c.s +++ b/test/torture-s/pr43835.c.s @@ -95,3 +95,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr44164.c.s b/test/torture-s/pr44164.c.s index 9e6430732..68ca230d7 100644 --- a/test/torture-s/pr44164.c.s +++ b/test/torture-s/pr44164.c.s @@ -57,3 +57,4 @@ a: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr44202-1.c.s b/test/torture-s/pr44202-1.c.s index acb49ba59..aa94adef0 100644 --- a/test/torture-s/pr44202-1.c.s +++ b/test/torture-s/pr44202-1.c.s @@ -102,3 +102,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/pr44468.c.s b/test/torture-s/pr44468.c.s index d44d7191b..0aab9fc4e 100644 --- a/test/torture-s/pr44468.c.s +++ b/test/torture-s/pr44468.c.s @@ -116,3 +116,4 @@ s: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr44575.c.s b/test/torture-s/pr44575.c.s index f0e97999e..68cc2c2ec 100644 --- a/test/torture-s/pr44575.c.s +++ b/test/torture-s/pr44575.c.s @@ -161,3 +161,4 @@ a: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr44683.c.s b/test/torture-s/pr44683.c.s index b7471d1c2..80a826229 100644 --- a/test/torture-s/pr44683.c.s +++ b/test/torture-s/pr44683.c.s @@ -63,3 +63,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype copysign, f64, f64, f64 + .functype abort, void diff --git a/test/torture-s/pr44828.c.s b/test/torture-s/pr44828.c.s index 05598a412..6d927fb2a 100644 --- a/test/torture-s/pr44828.c.s +++ b/test/torture-s/pr44828.c.s @@ -39,3 +39,4 @@ a: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr44852.c.s b/test/torture-s/pr44852.c.s index faccb8534..95f8ea067 100644 --- a/test/torture-s/pr44852.c.s +++ b/test/torture-s/pr44852.c.s @@ -15,36 +15,36 @@ sf: # @sf # =>This Inner Loop Header: Depth=1 block loop # label1: + copy_local $push15=, $0 + tee_local $push14=, $2=, $pop15 i32.const $push13=, -1 - i32.add $push12=, $0, $pop13 - tee_local $push11=, $3=, $pop12 + i32.add $push12=, $pop14, $pop13 + tee_local $push11=, $0=, $pop12 i32.load8_u $push10=, 0($pop11) - tee_local $push9=, $2=, $pop10 + tee_local $push9=, $3=, $pop10 i32.const $push8=, 57 i32.ne $push0=, $pop9, $pop8 br_if 2, $pop0 # 2: down to label0 # BB#2: # %while.body # in Loop: Header=BB0_1 Depth=1 - copy_local $0=, $3 - i32.ne $push2=, $1, $3 - br_if 0, $pop2 # 0: up to label1 + i32.ne $push3=, $1, $0 + br_if 0, $pop3 # 0: up to label1 # BB#3: # %if.then end_loop # label2: - i32.const $push3=, 48 - i32.store8 $drop=, 0($1), $pop3 + i32.const $push4=, 48 + i32.store8 $drop=, 0($1), $pop4 i32.const $push6=, 49 i32.store8 $drop=, 0($1), $pop6 - i32.const $push14=, 1 - i32.add $push4=, $3, $pop14 - return $pop4 + return $2 .LBB0_4: # %while.end.loopexit end_block # label0: - copy_local $push7=, $3 - i32.const $push1=, 1 - i32.add $push5=, $2, $pop1 + i32.const $push1=, -1 + i32.add $push7=, $2, $pop1 + i32.const $push2=, 1 + i32.add $push5=, $3, $pop2 i32.store8 $drop=, 0($pop7), $pop5 - copy_local $push15=, $0 - # fallthrough-return: $pop15 + copy_local $push16=, $2 + # fallthrough-return: $pop16 .endfunc .Lfunc_end0: .size sf, .Lfunc_end0-sf @@ -125,3 +125,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype strcmp, i32, i32, i32 + .functype abort, void diff --git a/test/torture-s/pr44858.c.s b/test/torture-s/pr44858.c.s index 0e9ca1cfa..19002bda7 100644 --- a/test/torture-s/pr44858.c.s +++ b/test/torture-s/pr44858.c.s @@ -79,3 +79,4 @@ b: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr44942.c.s b/test/torture-s/pr44942.c.s index f1239448c..e06fc7860 100644 --- a/test/torture-s/pr44942.c.s +++ b/test/torture-s/pr44942.c.s @@ -213,3 +213,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr45034.c.s b/test/torture-s/pr45034.c.s index 079007ede..72e7a0f01 100644 --- a/test/torture-s/pr45034.c.s +++ b/test/torture-s/pr45034.c.s @@ -141,3 +141,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr45070.c.s b/test/torture-s/pr45070.c.s index cb77859d7..931c1f01e 100644 --- a/test/torture-s/pr45070.c.s +++ b/test/torture-s/pr45070.c.s @@ -135,3 +135,4 @@ fetch: # @fetch .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr45695.c.s b/test/torture-s/pr45695.c.s index 22ec1f50e..3f0262df5 100644 --- a/test/torture-s/pr45695.c.s +++ b/test/torture-s/pr45695.c.s @@ -72,3 +72,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr46309.c.s b/test/torture-s/pr46309.c.s index 15e7dec9c..57cafe0ff 100644 --- a/test/torture-s/pr46309.c.s +++ b/test/torture-s/pr46309.c.s @@ -101,3 +101,4 @@ q: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr46316.c.s b/test/torture-s/pr46316.c.s index 1b0c17e80..fdee18b19 100644 --- a/test/torture-s/pr46316.c.s +++ b/test/torture-s/pr46316.c.s @@ -51,3 +51,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr46909-1.c.s b/test/torture-s/pr46909-1.c.s index 85a274a54..bad7cfe78 100644 --- a/test/torture-s/pr46909-1.c.s +++ b/test/torture-s/pr46909-1.c.s @@ -73,3 +73,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr46909-2.c.s b/test/torture-s/pr46909-2.c.s index 032ef44c0..5f4919544 100644 --- a/test/torture-s/pr46909-2.c.s +++ b/test/torture-s/pr46909-2.c.s @@ -76,3 +76,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr47237.c.s b/test/torture-s/pr47237.c.s index 9c1028948..085c3453b 100644 --- a/test/torture-s/pr47237.c.s +++ b/test/torture-s/pr47237.c.s @@ -38,3 +38,6 @@ foo: # @foo .ident "clang version 3.9.0 " + .functype __builtin_apply, i32 + .functype __builtin_apply_args, i32 + .functype abort, void diff --git a/test/torture-s/pr47299.c.s b/test/torture-s/pr47299.c.s index 6441915ae..4a1e34ddd 100644 --- a/test/torture-s/pr47299.c.s +++ b/test/torture-s/pr47299.c.s @@ -41,3 +41,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr47337.c.s b/test/torture-s/pr47337.c.s index 849e5a923..f93acc032 100644 --- a/test/torture-s/pr47337.c.s +++ b/test/torture-s/pr47337.c.s @@ -110,3 +110,4 @@ w: .lcomm b,4,2 .ident "clang version 3.9.0 " + .functype strcmp, i32, i32, i32 diff --git a/test/torture-s/pr47538.c.s b/test/torture-s/pr47538.c.s index a41be6e9f..3eabc9d49 100644 --- a/test/torture-s/pr47538.c.s +++ b/test/torture-s/pr47538.c.s @@ -390,3 +390,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr48571-1.c.s b/test/torture-s/pr48571-1.c.s index d25ac7aa1..783654152 100644 --- a/test/torture-s/pr48571-1.c.s +++ b/test/torture-s/pr48571-1.c.s @@ -96,3 +96,4 @@ c: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr48717.c.s b/test/torture-s/pr48717.c.s index 2407b33af..c54d75b05 100644 --- a/test/torture-s/pr48717.c.s +++ b/test/torture-s/pr48717.c.s @@ -91,3 +91,4 @@ w: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr48814-1.c.s b/test/torture-s/pr48814-1.c.s index 262239458..0450d2240 100644 --- a/test/torture-s/pr48814-1.c.s +++ b/test/torture-s/pr48814-1.c.s @@ -81,3 +81,4 @@ count: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr48814-2.c.s b/test/torture-s/pr48814-2.c.s index 75f5c0662..d118b6f90 100644 --- a/test/torture-s/pr48814-2.c.s +++ b/test/torture-s/pr48814-2.c.s @@ -82,3 +82,4 @@ count: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr48973-1.c.s b/test/torture-s/pr48973-1.c.s index 95cfa4fdb..6cd13bc57 100644 --- a/test/torture-s/pr48973-1.c.s +++ b/test/torture-s/pr48973-1.c.s @@ -75,3 +75,4 @@ s: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr48973-2.c.s b/test/torture-s/pr48973-2.c.s index c4e0dd988..4d20622ba 100644 --- a/test/torture-s/pr48973-2.c.s +++ b/test/torture-s/pr48973-2.c.s @@ -55,3 +55,4 @@ s: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr49039.c.s b/test/torture-s/pr49039.c.s index b58441e72..caa579d38 100644 --- a/test/torture-s/pr49039.c.s +++ b/test/torture-s/pr49039.c.s @@ -89,3 +89,4 @@ cnt: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr49073.c.s b/test/torture-s/pr49073.c.s index 36a59be4a..6b74cac47 100644 --- a/test/torture-s/pr49073.c.s +++ b/test/torture-s/pr49073.c.s @@ -93,3 +93,4 @@ c: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr49161.c.s b/test/torture-s/pr49161.c.s index fe97e600f..052b39033 100644 --- a/test/torture-s/pr49161.c.s +++ b/test/torture-s/pr49161.c.s @@ -118,3 +118,4 @@ c: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr49279.c.s b/test/torture-s/pr49279.c.s index cbe892bab..9277a1f84 100644 --- a/test/torture-s/pr49279.c.s +++ b/test/torture-s/pr49279.c.s @@ -96,3 +96,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr49281.c.s b/test/torture-s/pr49281.c.s index 419a37b23..e34e5d90d 100644 --- a/test/torture-s/pr49281.c.s +++ b/test/torture-s/pr49281.c.s @@ -90,3 +90,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr49390.c.s b/test/torture-s/pr49390.c.s index 3e3b641dd..349223402 100644 --- a/test/torture-s/pr49390.c.s +++ b/test/torture-s/pr49390.c.s @@ -306,3 +306,4 @@ b: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr49419.c.s b/test/torture-s/pr49419.c.s index 046b2aace..74f9a314a 100644 --- a/test/torture-s/pr49419.c.s +++ b/test/torture-s/pr49419.c.s @@ -114,134 +114,136 @@ main: # @main .local i32, i32, i32, i32, i32, i32 # BB#0: # %for.body.i.preheader i32.const $1=, 0 - i32.const $push32=, 0 - i32.const $push29=, 0 - i32.load $push30=, __stack_pointer($pop29) - i32.const $push31=, 48 - i32.sub $push38=, $pop30, $pop31 - i32.store $push1=, __stack_pointer($pop32), $pop38 - i32.const $push45=, 0 + i32.const $push34=, 0 + i32.const $push31=, 0 + i32.load $push32=, __stack_pointer($pop31) + i32.const $push33=, 48 + i32.sub $push40=, $pop32, $pop33 + i32.store $push1=, __stack_pointer($pop34), $pop40 + i32.const $push47=, 0 i32.const $push2=, 36 - i32.call $push44=, memset@FUNCTION, $pop1, $pop45, $pop2 - tee_local $push43=, $0=, $pop44 + i32.call $push46=, memset@FUNCTION, $pop1, $pop47, $pop2 + tee_local $push45=, $0=, $pop46 i32.const $push3=, 2 - i32.store $5=, 8($pop43), $pop3 + i32.store $5=, 8($pop45), $pop3 i64.const $push4=, 4294967297 i64.store $drop=, 0($0), $pop4 i32.const $3=, 1 block - i32.const $push42=, 0 - i32.store $push41=, t($pop42), $0 - tee_local $push40=, $0=, $pop41 - i32.load $push5=, 12($pop40) - i32.const $push39=, 1 - i32.ne $push6=, $pop5, $pop39 + i32.const $push44=, 0 + i32.store $push43=, t($pop44), $0 + tee_local $push42=, $0=, $pop43 + i32.load $push5=, 12($pop42) + i32.const $push41=, 1 + i32.ne $push6=, $pop5, $pop41 br_if 0, $pop6 # 0: down to label8 # BB#1: # %for.body.i.for.body.i_crit_edge.preheader i32.const $4=, 0 - i32.const $2=, 1 + i32.const $3=, 1 .LBB1_2: # %for.body.i.for.body.i_crit_edge # =>This Inner Loop Header: Depth=1 loop # label9: i32.const $push48=, 1 i32.add $1=, $4, $pop48 - i32.add $push47=, $4, $5 - tee_local $push46=, $3=, $pop47 - i32.gt_s $push8=, $pop46, $5 - br_if 1, $pop8 # 1: down to label10 + i32.add $push8=, $4, $5 + i32.gt_s $push9=, $pop8, $5 + br_if 1, $pop9 # 1: down to label10 # BB#3: # %for.body.i.for.body.i_crit_edge # in Loop: Header=BB1_2 Depth=1 copy_local $4=, $1 i32.const $push53=, 12 - i32.mul $push9=, $2, $pop53 - i32.add $push10=, $0, $pop9 - i32.load $push52=, 4($pop10) - tee_local $push51=, $2=, $pop52 + i32.mul $push10=, $3, $pop53 + i32.add $push11=, $0, $pop10 + i32.load $push52=, 4($pop11) + tee_local $push51=, $3=, $pop52 i32.const $push50=, 12 - i32.mul $push11=, $pop51, $pop50 - i32.add $push12=, $0, $pop11 - i32.load $push7=, 0($pop12) + i32.mul $push12=, $pop51, $pop50 + i32.add $push13=, $0, $pop12 + i32.load $push7=, 0($pop13) i32.const $push49=, 1 - i32.eq $push13=, $pop7, $pop49 - br_if 0, $pop13 # 0: up to label9 -.LBB1_4: # %for.end.i + i32.eq $push14=, $pop7, $pop49 + br_if 0, $pop14 # 0: up to label9 +.LBB1_4: # %for.end.i.loopexit end_loop # label10: + i32.const $push15=, 1 + i32.add $3=, $1, $pop15 +.LBB1_5: # %for.end.i end_block # label8: block block block - i32.const $push14=, 3 - i32.eq $push15=, $3, $pop14 - br_if 0, $pop15 # 0: down to label13 -# BB#5: # %if.end7.i + i32.const $push16=, 3 + i32.eq $push17=, $3, $pop16 + br_if 0, $pop17 # 0: down to label13 +# BB#6: # %if.end7.i i32.const $push54=, 0 - i32.lt_s $push16=, $1, $pop54 - br_if 1, $pop16 # 1: down to label12 -# BB#6: # %for.body10.i.preheader + i32.lt_s $push18=, $1, $pop54 + br_if 1, $pop18 # 1: down to label12 +# BB#7: # %for.body10.i.preheader i32.const $5=, 1 block - i32.const $push36=, 36 - i32.add $push37=, $0, $pop36 - i32.const $push17=, 2 - i32.shl $push18=, $3, $pop17 - i32.add $push57=, $pop37, $pop18 + i32.const $push38=, 36 + i32.add $push39=, $0, $pop38 + i32.const $push19=, 2 + i32.shl $push20=, $3, $pop19 + i32.add $push57=, $pop39, $pop20 tee_local $push56=, $4=, $pop57 i32.const $push55=, 2 i32.store $push0=, 0($pop56), $pop55 - i32.lt_s $push19=, $3, $pop0 - br_if 0, $pop19 # 0: down to label14 -# BB#7: # %for.body10.i.for.body10.i_crit_edge.preheader + i32.lt_s $push21=, $3, $pop0 + br_if 0, $pop21 # 0: down to label14 +# BB#8: # %for.body10.i.for.body10.i_crit_edge.preheader i32.const $push58=, -4 i32.add $4=, $4, $pop58 i32.const $5=, 1 -.LBB1_8: # %for.body10.i.for.body10.i_crit_edge +.LBB1_9: # %for.body10.i.for.body10.i_crit_edge # =>This Inner Loop Header: Depth=1 loop # label15: i32.const $push66=, 12 - i32.mul $push20=, $5, $pop66 - i32.add $push65=, $0, $pop20 + i32.mul $push22=, $5, $pop66 + i32.add $push65=, $0, $pop22 tee_local $push64=, $2=, $pop65 i32.load $5=, 4($pop64) - i32.load $push21=, 8($2) - i32.store $drop=, 0($4), $pop21 + i32.load $push23=, 8($2) + i32.store $drop=, 0($4), $pop23 i32.const $push63=, -4 i32.add $4=, $4, $pop63 i32.const $push62=, -1 i32.add $push61=, $3, $pop62 tee_local $push60=, $3=, $pop61 i32.const $push59=, 1 - i32.gt_s $push22=, $pop60, $pop59 - br_if 0, $pop22 # 0: up to label15 -.LBB1_9: # %foo.exit + i32.gt_s $push24=, $pop60, $pop59 + br_if 0, $pop24 # 0: up to label15 +.LBB1_10: # %foo.exit end_loop # label16: end_block # label14: - i32.store $3=, 36($0), $5 + i32.store $4=, 36($0), $5 br_if 2, $1 # 2: down to label11 -# BB#10: # %if.end - i32.const $push23=, 1 - i32.ne $push24=, $3, $pop23 - br_if 2, $pop24 # 2: down to label11 -# BB#11: # %lor.lhs.false - i32.load $push26=, 40($0) - i32.const $push25=, 2 - i32.ne $push27=, $pop26, $pop25 - br_if 2, $pop27 # 2: down to label11 -# BB#12: # %if.end6 - i32.const $push35=, 0 - i32.const $push33=, 48 - i32.add $push34=, $0, $pop33 - i32.store $drop=, __stack_pointer($pop35), $pop34 - i32.const $push28=, 0 - return $pop28 -.LBB1_13: # %if.then6.i +# BB#11: # %if.end + i32.const $push25=, 1 + i32.ne $push26=, $4, $pop25 + br_if 2, $pop26 # 2: down to label11 +# BB#12: # %lor.lhs.false + i32.load $push28=, 40($0) + i32.const $push27=, 2 + i32.ne $push29=, $pop28, $pop27 + br_if 2, $pop29 # 2: down to label11 +# BB#13: # %if.end6 + i32.const $push37=, 0 + i32.const $push35=, 48 + i32.add $push36=, $0, $pop35 + i32.store $drop=, __stack_pointer($pop37), $pop36 + i32.const $push30=, 0 + return $pop30 +.LBB1_14: # %if.then6.i end_block # label13: call abort@FUNCTION unreachable -.LBB1_14: # %foo.exit.thread +.LBB1_15: # %foo.exit.thread end_block # label12: i32.const $push67=, 0 i32.store $drop=, 36($0), $pop67 -.LBB1_15: # %if.then5 +.LBB1_16: # %if.then5 end_block # label11: call abort@FUNCTION unreachable @@ -260,3 +262,4 @@ t: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr49886.c.s b/test/torture-s/pr49886.c.s index 8fc99c734..398e5b734 100644 --- a/test/torture-s/pr49886.c.s +++ b/test/torture-s/pr49886.c.s @@ -228,3 +228,4 @@ gi: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr51323.c.s b/test/torture-s/pr51323.c.s index b100bd11c..6d98ca92c 100644 --- a/test/torture-s/pr51323.c.s +++ b/test/torture-s/pr51323.c.s @@ -125,3 +125,4 @@ v: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr51466.c.s b/test/torture-s/pr51466.c.s index 01c5ed1d6..0a5e79c48 100644 --- a/test/torture-s/pr51466.c.s +++ b/test/torture-s/pr51466.c.s @@ -116,3 +116,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr51581-1.c.s b/test/torture-s/pr51581-1.c.s index 791419c3e..ddc55ca9f 100644 --- a/test/torture-s/pr51581-1.c.s +++ b/test/torture-s/pr51581-1.c.s @@ -661,3 +661,4 @@ d: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr51581-2.c.s b/test/torture-s/pr51581-2.c.s index 595bcf810..d9fe6e9e9 100644 --- a/test/torture-s/pr51581-2.c.s +++ b/test/torture-s/pr51581-2.c.s @@ -685,3 +685,4 @@ d: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr51877.c.s b/test/torture-s/pr51877.c.s index 84d29fc73..7a31f03a6 100644 --- a/test/torture-s/pr51877.c.s +++ b/test/torture-s/pr51877.c.s @@ -236,3 +236,4 @@ b: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr51933.c.s b/test/torture-s/pr51933.c.s index 6d04c9794..8f42d4d2c 100644 --- a/test/torture-s/pr51933.c.s +++ b/test/torture-s/pr51933.c.s @@ -176,3 +176,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype memcmp, i32, i32, i32, i32 + .functype abort, void diff --git a/test/torture-s/pr52129.c.s b/test/torture-s/pr52129.c.s index 3a1f94549..4cbb9ce53 100644 --- a/test/torture-s/pr52129.c.s +++ b/test/torture-s/pr52129.c.s @@ -128,3 +128,4 @@ t: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr52209.c.s b/test/torture-s/pr52209.c.s index 1742311a9..2c3f127b0 100644 --- a/test/torture-s/pr52209.c.s +++ b/test/torture-s/pr52209.c.s @@ -54,3 +54,4 @@ b: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr52286.c.s b/test/torture-s/pr52286.c.s index 7316b96d9..27033e313 100644 --- a/test/torture-s/pr52286.c.s +++ b/test/torture-s/pr52286.c.s @@ -28,3 +28,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr52760.c.s b/test/torture-s/pr52760.c.s index 057ae9418..84a4a5dca 100644 --- a/test/torture-s/pr52760.c.s +++ b/test/torture-s/pr52760.c.s @@ -130,3 +130,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr52979-1.c.s b/test/torture-s/pr52979-1.c.s index 0166d7a24..b2bc7ecba 100644 --- a/test/torture-s/pr52979-1.c.s +++ b/test/torture-s/pr52979-1.c.s @@ -239,3 +239,4 @@ b: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr52979-2.c.s b/test/torture-s/pr52979-2.c.s index 224ce1303..63fa732b5 100644 --- a/test/torture-s/pr52979-2.c.s +++ b/test/torture-s/pr52979-2.c.s @@ -239,3 +239,4 @@ b: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr53084.c.s b/test/torture-s/pr53084.c.s index 88c0aed02..47eae76d5 100644 --- a/test/torture-s/pr53084.c.s +++ b/test/torture-s/pr53084.c.s @@ -53,3 +53,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr53160.c.s b/test/torture-s/pr53160.c.s index 34c6cdced..beb68d153 100644 --- a/test/torture-s/pr53160.c.s +++ b/test/torture-s/pr53160.c.s @@ -145,3 +145,4 @@ a: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr53465.c.s b/test/torture-s/pr53465.c.s index 6e08779cb..b87efd84b 100644 --- a/test/torture-s/pr53465.c.s +++ b/test/torture-s/pr53465.c.s @@ -72,3 +72,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr53645-2.c.s b/test/torture-s/pr53645-2.c.s index a1ac8150a..b6befbca2 100644 --- a/test/torture-s/pr53645-2.c.s +++ b/test/torture-s/pr53645-2.c.s @@ -4407,3 +4407,4 @@ s: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr53645.c.s b/test/torture-s/pr53645.c.s index ae1f4fddf..b677e0c1d 100644 --- a/test/torture-s/pr53645.c.s +++ b/test/torture-s/pr53645.c.s @@ -2061,3 +2061,4 @@ s: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr53688.c.s b/test/torture-s/pr53688.c.s index 138490031..0594e5467 100644 --- a/test/torture-s/pr53688.c.s +++ b/test/torture-s/pr53688.c.s @@ -95,3 +95,4 @@ headline: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr54471.c.s b/test/torture-s/pr54471.c.s index 3d719f94a..bc7787123 100644 --- a/test/torture-s/pr54471.c.s +++ b/test/torture-s/pr54471.c.s @@ -100,3 +100,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr54937.c.s b/test/torture-s/pr54937.c.s index f9bb85a80..0cf123e94 100644 --- a/test/torture-s/pr54937.c.s +++ b/test/torture-s/pr54937.c.s @@ -85,3 +85,5 @@ a: .ident "clang version 3.9.0 " + .functype exit, void, i32 + .functype abort, void diff --git a/test/torture-s/pr54985.c.s b/test/torture-s/pr54985.c.s index 3ab337425..38264a94f 100644 --- a/test/torture-s/pr54985.c.s +++ b/test/torture-s/pr54985.c.s @@ -91,3 +91,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr55750.c.s b/test/torture-s/pr55750.c.s index 90a6f0057..495e193a1 100644 --- a/test/torture-s/pr55750.c.s +++ b/test/torture-s/pr55750.c.s @@ -70,3 +70,4 @@ arr: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr55875.c.s b/test/torture-s/pr55875.c.s index 27407e38d..0cbb39550 100644 --- a/test/torture-s/pr55875.c.s +++ b/test/torture-s/pr55875.c.s @@ -66,3 +66,5 @@ a: .ident "clang version 3.9.0 " + .functype exit, void, i32 + .functype abort, void diff --git a/test/torture-s/pr56205.c.s b/test/torture-s/pr56205.c.s index 24bee6a73..540473d1c 100644 --- a/test/torture-s/pr56205.c.s +++ b/test/torture-s/pr56205.c.s @@ -282,3 +282,5 @@ a: .ident "clang version 3.9.0 " + .functype abort, void + .functype strcmp, i32, i32, i32 diff --git a/test/torture-s/pr56799.c.s b/test/torture-s/pr56799.c.s index 76687d3a1..08079300f 100644 --- a/test/torture-s/pr56799.c.s +++ b/test/torture-s/pr56799.c.s @@ -112,3 +112,5 @@ lo: .ident "clang version 3.9.0 " + .functype exit, void, i32 + .functype abort, void diff --git a/test/torture-s/pr56837.c.s b/test/torture-s/pr56837.c.s index 46dabdbab..82de5897b 100644 --- a/test/torture-s/pr56837.c.s +++ b/test/torture-s/pr56837.c.s @@ -82,3 +82,4 @@ a: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr56866.c.s b/test/torture-s/pr56866.c.s index 225289cc1..3d7dfce5e 100644 --- a/test/torture-s/pr56866.c.s +++ b/test/torture-s/pr56866.c.s @@ -243,3 +243,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr56899.c.s b/test/torture-s/pr56899.c.s index 9d5467a1e..a3585657d 100644 --- a/test/torture-s/pr56899.c.s +++ b/test/torture-s/pr56899.c.s @@ -115,3 +115,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr56962.c.s b/test/torture-s/pr56962.c.s index 53cc8326f..de9a5a746 100644 --- a/test/torture-s/pr56962.c.s +++ b/test/torture-s/pr56962.c.s @@ -104,3 +104,4 @@ v: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr56982.c.s b/test/torture-s/pr56982.c.s index 17e810829..859f4c34e 100644 --- a/test/torture-s/pr56982.c.s +++ b/test/torture-s/pr56982.c.s @@ -86,3 +86,6 @@ main: # @main .lcomm env,156,4 .ident "clang version 3.9.0 " + .functype setjmp, i32, i32 + .functype exit, void, i32 + .functype longjmp, void, i32, i32 diff --git a/test/torture-s/pr57124.c.s b/test/torture-s/pr57124.c.s index 5c48b462c..46c6425c9 100644 --- a/test/torture-s/pr57124.c.s +++ b/test/torture-s/pr57124.c.s @@ -56,3 +56,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/pr57130.c.s b/test/torture-s/pr57130.c.s index 21c4ca2ee..108e0fb16 100644 --- a/test/torture-s/pr57130.c.s +++ b/test/torture-s/pr57130.c.s @@ -129,3 +129,5 @@ s: .ident "clang version 3.9.0 " + .functype memcmp, i32, i32, i32, i32 + .functype abort, void diff --git a/test/torture-s/pr57131.c.s b/test/torture-s/pr57131.c.s index 3f3e0c3dd..f5527ec42 100644 --- a/test/torture-s/pr57131.c.s +++ b/test/torture-s/pr57131.c.s @@ -56,3 +56,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr57144.c.s b/test/torture-s/pr57144.c.s index 7a8606569..5afe62650 100644 --- a/test/torture-s/pr57144.c.s +++ b/test/torture-s/pr57144.c.s @@ -30,3 +30,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/pr57344-1.c.s b/test/torture-s/pr57344-1.c.s index 71479e923..7f54f05ac 100644 --- a/test/torture-s/pr57344-1.c.s +++ b/test/torture-s/pr57344-1.c.s @@ -111,3 +111,4 @@ i: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr57344-2.c.s b/test/torture-s/pr57344-2.c.s index 4549944cc..4ddc7da18 100644 --- a/test/torture-s/pr57344-2.c.s +++ b/test/torture-s/pr57344-2.c.s @@ -114,3 +114,4 @@ i: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr57344-3.c.s b/test/torture-s/pr57344-3.c.s index 1a4ee40c3..c2191967c 100644 --- a/test/torture-s/pr57344-3.c.s +++ b/test/torture-s/pr57344-3.c.s @@ -139,3 +139,4 @@ i: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr57344-4.c.s b/test/torture-s/pr57344-4.c.s index 4716a5627..9ff3b2fb2 100644 --- a/test/torture-s/pr57344-4.c.s +++ b/test/torture-s/pr57344-4.c.s @@ -146,3 +146,4 @@ i: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr57568.c.s b/test/torture-s/pr57568.c.s index 00d79635c..d30a8b2fa 100644 --- a/test/torture-s/pr57568.c.s +++ b/test/torture-s/pr57568.c.s @@ -65,3 +65,4 @@ c: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr57829.c.s b/test/torture-s/pr57829.c.s index bf5fcf562..fa5572c00 100644 --- a/test/torture-s/pr57829.c.s +++ b/test/torture-s/pr57829.c.s @@ -103,3 +103,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr57860.c.s b/test/torture-s/pr57860.c.s index f3989fd6f..d7322e069 100644 --- a/test/torture-s/pr57860.c.s +++ b/test/torture-s/pr57860.c.s @@ -219,3 +219,4 @@ g: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr57861.c.s b/test/torture-s/pr57861.c.s index 41c97e38e..f22f4460d 100644 --- a/test/torture-s/pr57861.c.s +++ b/test/torture-s/pr57861.c.s @@ -151,3 +151,4 @@ e: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr57875.c.s b/test/torture-s/pr57875.c.s index fac3ff4e3..13a566df5 100644 --- a/test/torture-s/pr57875.c.s +++ b/test/torture-s/pr57875.c.s @@ -153,3 +153,4 @@ b: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr57876.c.s b/test/torture-s/pr57876.c.s index c728c0e08..06021dd82 100644 --- a/test/torture-s/pr57876.c.s +++ b/test/torture-s/pr57876.c.s @@ -245,3 +245,4 @@ g: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr57877.c.s b/test/torture-s/pr57877.c.s index 3e8746d25..925e5138b 100644 --- a/test/torture-s/pr57877.c.s +++ b/test/torture-s/pr57877.c.s @@ -151,3 +151,4 @@ d: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr58209.c.s b/test/torture-s/pr58209.c.s index 84804ca93..0903b1e84 100644 --- a/test/torture-s/pr58209.c.s +++ b/test/torture-s/pr58209.c.s @@ -123,3 +123,4 @@ buf: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr58277-1.c.s b/test/torture-s/pr58277-1.c.s index b4f997b28..51e8a5f21 100644 --- a/test/torture-s/pr58277-1.c.s +++ b/test/torture-s/pr58277-1.c.s @@ -456,3 +456,4 @@ p: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr58364.c.s b/test/torture-s/pr58364.c.s index d0ab1d490..90b93a06e 100644 --- a/test/torture-s/pr58364.c.s +++ b/test/torture-s/pr58364.c.s @@ -73,3 +73,4 @@ b: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr58365.c.s b/test/torture-s/pr58365.c.s index 7e1eedf15..74b5ec4e7 100644 --- a/test/torture-s/pr58365.c.s +++ b/test/torture-s/pr58365.c.s @@ -127,3 +127,4 @@ f: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr58387.c.s b/test/torture-s/pr58387.c.s index 3a35648c9..1f67aec61 100644 --- a/test/torture-s/pr58387.c.s +++ b/test/torture-s/pr58387.c.s @@ -35,3 +35,4 @@ a: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr58419.c.s b/test/torture-s/pr58419.c.s index b6b6beea8..32edc5bfd 100644 --- a/test/torture-s/pr58419.c.s +++ b/test/torture-s/pr58419.c.s @@ -369,3 +369,4 @@ g: .ident "clang version 3.9.0 " + .functype getpid, i32 diff --git a/test/torture-s/pr58431.c.s b/test/torture-s/pr58431.c.s index 676560057..20791f63b 100644 --- a/test/torture-s/pr58431.c.s +++ b/test/torture-s/pr58431.c.s @@ -186,3 +186,4 @@ e: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr58570.c.s b/test/torture-s/pr58570.c.s index 383a426e4..09b6e6345 100644 --- a/test/torture-s/pr58570.c.s +++ b/test/torture-s/pr58570.c.s @@ -83,3 +83,4 @@ i: .lcomm d,36,4 .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr58574.c.s b/test/torture-s/pr58574.c.s index ac047dec3..fd61a12ca 100644 --- a/test/torture-s/pr58574.c.s +++ b/test/torture-s/pr58574.c.s @@ -1852,3 +1852,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr58640-2.c.s b/test/torture-s/pr58640-2.c.s index 31dcd28f7..d12b5dcb3 100644 --- a/test/torture-s/pr58640-2.c.s +++ b/test/torture-s/pr58640-2.c.s @@ -103,3 +103,4 @@ c: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr58640.c.s b/test/torture-s/pr58640.c.s index 57a931184..36d80d9cf 100644 --- a/test/torture-s/pr58640.c.s +++ b/test/torture-s/pr58640.c.s @@ -89,3 +89,4 @@ e: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/pr58662.c.s b/test/torture-s/pr58662.c.s index 7f48d5a89..4abfbb456 100644 --- a/test/torture-s/pr58662.c.s +++ b/test/torture-s/pr58662.c.s @@ -80,3 +80,4 @@ b: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr58943.c.s b/test/torture-s/pr58943.c.s index 88f466d00..47bc5b835 100644 --- a/test/torture-s/pr58943.c.s +++ b/test/torture-s/pr58943.c.s @@ -58,3 +58,4 @@ x: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr58984.c.s b/test/torture-s/pr58984.c.s index d1461f65f..65128b78c 100644 --- a/test/torture-s/pr58984.c.s +++ b/test/torture-s/pr58984.c.s @@ -115,3 +115,4 @@ b: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr59014-2.c.s b/test/torture-s/pr59014-2.c.s index a110adc1d..a657f9794 100644 --- a/test/torture-s/pr59014-2.c.s +++ b/test/torture-s/pr59014-2.c.s @@ -45,3 +45,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr59014.c.s b/test/torture-s/pr59014.c.s index 38cddf248..1470adbe3 100644 --- a/test/torture-s/pr59014.c.s +++ b/test/torture-s/pr59014.c.s @@ -119,3 +119,4 @@ c: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr59101.c.s b/test/torture-s/pr59101.c.s index 02b957a2c..e0307597f 100644 --- a/test/torture-s/pr59101.c.s +++ b/test/torture-s/pr59101.c.s @@ -45,3 +45,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr59221.c.s b/test/torture-s/pr59221.c.s index fff737366..458aec4ca 100644 --- a/test/torture-s/pr59221.c.s +++ b/test/torture-s/pr59221.c.s @@ -89,3 +89,4 @@ d: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr59229.c.s b/test/torture-s/pr59229.c.s index a486f85d3..f826582eb 100644 --- a/test/torture-s/pr59229.c.s +++ b/test/torture-s/pr59229.c.s @@ -138,3 +138,5 @@ i: .ident "clang version 3.9.0 " + .functype abort, void + .functype memcmp, i32, i32, i32, i32 diff --git a/test/torture-s/pr59358.c.s b/test/torture-s/pr59358.c.s index 77e658ccd..087782623 100644 --- a/test/torture-s/pr59358.c.s +++ b/test/torture-s/pr59358.c.s @@ -166,3 +166,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr59643.c.s b/test/torture-s/pr59643.c.s index 5bb2275c8..4f991017a 100644 --- a/test/torture-s/pr59643.c.s +++ b/test/torture-s/pr59643.c.s @@ -204,3 +204,4 @@ expected: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr59747.c.s b/test/torture-s/pr59747.c.s index 737605170..173776a08 100644 --- a/test/torture-s/pr59747.c.s +++ b/test/torture-s/pr59747.c.s @@ -107,3 +107,5 @@ d: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/pr60017.c.s b/test/torture-s/pr60017.c.s index 88d6e47a9..ad9daecb7 100644 --- a/test/torture-s/pr60017.c.s +++ b/test/torture-s/pr60017.c.s @@ -63,3 +63,4 @@ x: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr60454.c.s b/test/torture-s/pr60454.c.s index a4eac4c90..8a22b6bfa 100644 --- a/test/torture-s/pr60454.c.s +++ b/test/torture-s/pr60454.c.s @@ -57,3 +57,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr60960.c.s b/test/torture-s/pr60960.c.s index 3d6ab8b68..2fb25953e 100644 --- a/test/torture-s/pr60960.c.s +++ b/test/torture-s/pr60960.c.s @@ -190,3 +190,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr61306-1.c.s b/test/torture-s/pr61306-1.c.s index b54601d67..2aad97c18 100644 --- a/test/torture-s/pr61306-1.c.s +++ b/test/torture-s/pr61306-1.c.s @@ -54,3 +54,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr61306-2.c.s b/test/torture-s/pr61306-2.c.s index 75d3c00b2..e840ed4f4 100644 --- a/test/torture-s/pr61306-2.c.s +++ b/test/torture-s/pr61306-2.c.s @@ -56,3 +56,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr61306-3.c.s b/test/torture-s/pr61306-3.c.s index cb9fc1b42..d71831b77 100644 --- a/test/torture-s/pr61306-3.c.s +++ b/test/torture-s/pr61306-3.c.s @@ -63,3 +63,4 @@ b: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr61375.c.s b/test/torture-s/pr61375.c.s index 0d70f1e37..f4e40180d 100644 --- a/test/torture-s/pr61375.c.s +++ b/test/torture-s/pr61375.c.s @@ -50,3 +50,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr61673.c.s b/test/torture-s/pr61673.c.s index e498c7c1f..0f394da55 100644 --- a/test/torture-s/pr61673.c.s +++ b/test/torture-s/pr61673.c.s @@ -145,3 +145,4 @@ main.c: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr63302.c.s b/test/torture-s/pr63302.c.s index 22a07e200..c06da84a9 100644 --- a/test/torture-s/pr63302.c.s +++ b/test/torture-s/pr63302.c.s @@ -162,3 +162,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr63659.c.s b/test/torture-s/pr63659.c.s index 6bcb7a522..2e3ec5a13 100644 --- a/test/torture-s/pr63659.c.s +++ b/test/torture-s/pr63659.c.s @@ -143,3 +143,4 @@ e: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pr7284-1.c.s b/test/torture-s/pr7284-1.c.s index 0a9db9e65..befb723d1 100644 --- a/test/torture-s/pr7284-1.c.s +++ b/test/torture-s/pr7284-1.c.s @@ -55,3 +55,5 @@ x: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/printf-1.c.s b/test/torture-s/printf-1.c.s index 56b00d16e..1bacb5971 100644 --- a/test/torture-s/printf-1.c.s +++ b/test/torture-s/printf-1.c.s @@ -191,3 +191,7 @@ main: # @main .ident "clang version 3.9.0 " + .functype printf, i32, i32 + .functype abort, void + .functype puts, i32, i32 + .functype putchar, i32, i32 diff --git a/test/torture-s/printf-chk-1.c.s b/test/torture-s/printf-chk-1.c.s index 4b64377c4..337bc85a1 100644 --- a/test/torture-s/printf-chk-1.c.s +++ b/test/torture-s/printf-chk-1.c.s @@ -415,3 +415,5 @@ should_optimize: .ident "clang version 3.9.0 " + .functype abort, void + .functype vprintf, i32, i32, i32 diff --git a/test/torture-s/pta-field-1.c.s b/test/torture-s/pta-field-1.c.s index e8e99f317..c28cf7cab 100644 --- a/test/torture-s/pta-field-1.c.s +++ b/test/torture-s/pta-field-1.c.s @@ -100,3 +100,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/pta-field-2.c.s b/test/torture-s/pta-field-2.c.s index 7b3d94323..1b6416cfd 100644 --- a/test/torture-s/pta-field-2.c.s +++ b/test/torture-s/pta-field-2.c.s @@ -106,3 +106,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/ptr-arith-1.c.s b/test/torture-s/ptr-arith-1.c.s index a5a475c75..399b142f8 100644 --- a/test/torture-s/ptr-arith-1.c.s +++ b/test/torture-s/ptr-arith-1.c.s @@ -32,3 +32,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/regstack-1.c.s b/test/torture-s/regstack-1.c.s index d45078c10..8e879774f 100644 --- a/test/torture-s/regstack-1.c.s +++ b/test/torture-s/regstack-1.c.s @@ -411,3 +411,5 @@ S: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/restrict-1.c.s b/test/torture-s/restrict-1.c.s index 9b5b27487..6a13d075b 100644 --- a/test/torture-s/restrict-1.c.s +++ b/test/torture-s/restrict-1.c.s @@ -61,3 +61,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/scope-1.c.s b/test/torture-s/scope-1.c.s index 86c124a63..f4a6fe433 100644 --- a/test/torture-s/scope-1.c.s +++ b/test/torture-s/scope-1.c.s @@ -50,3 +50,5 @@ v: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/simd-1.c.s b/test/torture-s/simd-1.c.s index e1bfa6b4d..cdb6b955c 100644 --- a/test/torture-s/simd-1.c.s +++ b/test/torture-s/simd-1.c.s @@ -408,3 +408,5 @@ res: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/simd-2.c.s b/test/torture-s/simd-2.c.s index 27280cde4..5b8d82a0c 100644 --- a/test/torture-s/simd-2.c.s +++ b/test/torture-s/simd-2.c.s @@ -824,3 +824,5 @@ res: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/simd-5.c.s b/test/torture-s/simd-5.c.s index c453b5ff6..4cd070bbc 100644 --- a/test/torture-s/simd-5.c.s +++ b/test/torture-s/simd-5.c.s @@ -362,3 +362,4 @@ z4: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/stdarg-1.c.s b/test/torture-s/stdarg-1.c.s index cd26cb2ab..c2cd71c9d 100644 --- a/test/torture-s/stdarg-1.c.s +++ b/test/torture-s/stdarg-1.c.s @@ -631,3 +631,4 @@ x: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/stdarg-2.c.s b/test/torture-s/stdarg-2.c.s index 9328b976d..4f7fefe4b 100644 --- a/test/torture-s/stdarg-2.c.s +++ b/test/torture-s/stdarg-2.c.s @@ -1031,3 +1031,4 @@ d: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/stdarg-3.c.s b/test/torture-s/stdarg-3.c.s index 2150b97e4..2d5956ca0 100644 --- a/test/torture-s/stdarg-3.c.s +++ b/test/torture-s/stdarg-3.c.s @@ -1259,3 +1259,4 @@ gap: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/stdarg-4.c.s b/test/torture-s/stdarg-4.c.s index a1204f641..2f6a810a4 100644 --- a/test/torture-s/stdarg-4.c.s +++ b/test/torture-s/stdarg-4.c.s @@ -588,3 +588,4 @@ y: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/strcmp-1.c.s b/test/torture-s/strcmp-1.c.s index 0d529e4eb..30e22957e 100644 --- a/test/torture-s/strcmp-1.c.s +++ b/test/torture-s/strcmp-1.c.s @@ -254,3 +254,6 @@ main: # @main .lcomm u2,96,4 .ident "clang version 3.9.0 " + .functype strcmp, i32, i32, i32 + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/strcpy-1.c.s b/test/torture-s/strcpy-1.c.s index db80b7d90..2692fd1d9 100644 --- a/test/torture-s/strcpy-1.c.s +++ b/test/torture-s/strcpy-1.c.s @@ -6,9 +6,9 @@ .type main,@function main: # @main .result i32 - .local i32, i32, i32, i32, i32, i32, i32, i32, i32 + .local i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 # BB#0: # %entry - i32.const $0=, 0 + i32.const $1=, 0 .LBB0_1: # %for.cond1.preheader # =>This Loop Header: Depth=1 # Child Loop BB0_2 Depth 2 @@ -20,8 +20,8 @@ main: # @main block loop # label2: i32.const $push49=, u1 - i32.add $1=, $0, $pop49 - i32.const $2=, 0 + i32.add $2=, $1, $pop49 + i32.const $3=, 0 .LBB0_2: # %for.cond4.preheader # Parent Loop BB0_1 Depth=1 # => This Loop Header: Depth=2 @@ -31,10 +31,10 @@ main: # @main # Child Loop BB0_12 Depth 4 loop # label4: i32.const $push51=, 65 - i32.add $4=, $2, $pop51 + i32.add $5=, $3, $pop51 i32.const $push50=, u2 - i32.add $3=, $2, $pop50 - i32.const $5=, 1 + i32.add $4=, $3, $pop50 + i32.const $6=, 1 .LBB0_3: # %for.cond7.preheader # Parent Loop BB0_1 Depth=1 # Parent Loop BB0_2 Depth=2 @@ -46,9 +46,9 @@ main: # @main i32.const $push54=, u1 i32.const $push53=, 97 i32.const $push52=, 97 - i32.call $drop=, memset@FUNCTION, $pop54, $pop53, $pop52 - i32.const $8=, 65 - i32.const $6=, -97 + i32.call $0=, memset@FUNCTION, $pop54, $pop53, $pop52 + i32.const $9=, 65 + i32.const $7=, -97 .LBB0_4: # %for.body9 # Parent Loop BB0_1 Depth=1 # Parent Loop BB0_2 Depth=2 @@ -57,192 +57,190 @@ main: # @main loop # label8: i32.const $push62=, 65 i32.const $push61=, 24 - i32.shl $push1=, $8, $pop61 + i32.shl $push1=, $9, $pop61 i32.const $push60=, 24 i32.shr_s $push2=, $pop1, $pop60 i32.const $push59=, 95 i32.gt_s $push3=, $pop2, $pop59 - i32.select $push4=, $pop62, $8, $pop3 - i32.store8 $push0=, u2+97($6), $pop4 + i32.select $push4=, $pop62, $9, $pop3 + i32.store8 $push0=, u2+97($7), $pop4 i32.const $push58=, 1 - i32.add $8=, $pop0, $pop58 + i32.add $9=, $pop0, $pop58 i32.const $push57=, 1 - i32.add $push56=, $6, $pop57 - tee_local $push55=, $6=, $pop56 + i32.add $push56=, $7, $pop57 + tee_local $push55=, $7=, $pop56 br_if 0, $pop55 # 0: up to label8 # BB#5: # %for.end # in Loop: Header=BB0_3 Depth=3 end_loop # label9: - i32.add $push5=, $5, $2 + i32.add $push5=, $6, $3 i32.const $push63=, 0 i32.store8 $drop=, u2($pop5), $pop63 - i32.call $push6=, strcpy@FUNCTION, $1, $3 - i32.ne $push7=, $pop6, $1 + i32.call $push6=, strcpy@FUNCTION, $2, $4 + i32.ne $push7=, $pop6, $2 br_if 6, $pop7 # 6: down to label1 # BB#6: # %for.cond21.preheader # in Loop: Header=BB0_3 Depth=3 - i32.const $7=, u1 + i32.const $8=, u1 block i32.const $push64=, 1 - i32.lt_s $push8=, $0, $pop64 + i32.lt_s $push8=, $1, $pop64 br_if 0, $pop8 # 0: down to label10 # BB#7: # %for.body24.preheader # in Loop: Header=BB0_3 Depth=3 - i32.const $8=, 0 + i32.const $9=, 0 .LBB0_8: # %for.body24 # Parent Loop BB0_1 Depth=1 # Parent Loop BB0_2 Depth=2 # Parent Loop BB0_3 Depth=3 # => This Inner Loop Header: Depth=4 loop # label11: - copy_local $push67=, $8 - tee_local $push66=, $6=, $pop67 - i32.load8_u $push9=, u1($pop66) + i32.load8_u $push9=, u1($9) i32.const $push65=, 97 i32.ne $push10=, $pop9, $pop65 br_if 9, $pop10 # 9: down to label1 # BB#9: # %for.inc30 # in Loop: Header=BB0_8 Depth=4 - i32.const $push70=, 1 - i32.add $push69=, $6, $pop70 - tee_local $push68=, $8=, $pop69 - i32.lt_s $push11=, $pop68, $0 + i32.const $push68=, 1 + i32.add $push67=, $9, $pop68 + tee_local $push66=, $9=, $pop67 + i32.lt_s $push11=, $pop66, $1 br_if 0, $pop11 # 0: up to label11 -# BB#10: # in Loop: Header=BB0_3 Depth=3 +# BB#10: # %for.body38.preheader.loopexit + # in Loop: Header=BB0_3 Depth=3 end_loop # label12: - i32.const $push71=, u1+1 - i32.add $7=, $6, $pop71 + i32.add $8=, $9, $0 .LBB0_11: # %for.body38.preheader # in Loop: Header=BB0_3 Depth=3 end_block # label10: - i32.const $8=, 0 - copy_local $6=, $4 + i32.const $9=, 0 + copy_local $7=, $5 .LBB0_12: # %for.body38 # Parent Loop BB0_1 Depth=1 # Parent Loop BB0_2 Depth=2 # Parent Loop BB0_3 Depth=3 # => This Inner Loop Header: Depth=4 loop # label13: - i32.add $push16=, $7, $8 + i32.add $push16=, $8, $9 i32.load8_u $push17=, 0($pop16) - i32.const $push78=, 65 - i32.const $push77=, 24 - i32.shl $push12=, $6, $pop77 - i32.const $push76=, 24 - i32.shr_s $push13=, $pop12, $pop76 - i32.const $push75=, 95 - i32.gt_s $push14=, $pop13, $pop75 - i32.select $push74=, $pop78, $6, $pop14 - tee_local $push73=, $6=, $pop74 - i32.const $push72=, 255 - i32.and $push15=, $pop73, $pop72 + i32.const $push75=, 65 + i32.const $push74=, 24 + i32.shl $push12=, $7, $pop74 + i32.const $push73=, 24 + i32.shr_s $push13=, $pop12, $pop73 + i32.const $push72=, 95 + i32.gt_s $push14=, $pop13, $pop72 + i32.select $push71=, $pop75, $7, $pop14 + tee_local $push70=, $7=, $pop71 + i32.const $push69=, 255 + i32.and $push15=, $pop70, $pop69 i32.ne $push18=, $pop17, $pop15 br_if 8, $pop18 # 8: down to label1 # BB#13: # %for.inc50 # in Loop: Header=BB0_12 Depth=4 - i32.const $push82=, 1 - i32.add $6=, $6, $pop82 - i32.const $push81=, 1 - i32.add $push80=, $8, $pop81 - tee_local $push79=, $8=, $pop80 - i32.lt_s $push19=, $pop79, $5 + i32.const $push79=, 1 + i32.add $7=, $7, $pop79 + i32.const $push78=, 1 + i32.add $push77=, $9, $pop78 + tee_local $push76=, $9=, $pop77 + i32.lt_s $push19=, $pop76, $6 br_if 0, $pop19 # 0: up to label13 # BB#14: # %for.end54 # in Loop: Header=BB0_3 Depth=3 end_loop # label14: - i32.add $push84=, $7, $8 - tee_local $push83=, $8=, $pop84 - i32.load8_u $push20=, 0($pop83) + i32.add $push81=, $8, $9 + tee_local $push80=, $9=, $pop81 + i32.load8_u $push20=, 0($pop80) br_if 6, $pop20 # 6: down to label1 # BB#15: # %for.cond61.preheader # in Loop: Header=BB0_3 Depth=3 - i32.const $push86=, 1 - i32.add $push21=, $8, $pop86 + i32.const $push83=, 1 + i32.add $push21=, $9, $pop83 i32.load8_u $push22=, 0($pop21) - i32.const $push85=, 97 - i32.ne $push23=, $pop22, $pop85 + i32.const $push82=, 97 + i32.ne $push23=, $pop22, $pop82 br_if 7, $pop23 # 7: down to label0 # BB#16: # %for.cond61 # in Loop: Header=BB0_3 Depth=3 - i32.const $push88=, 2 - i32.add $push24=, $8, $pop88 + i32.const $push85=, 2 + i32.add $push24=, $9, $pop85 i32.load8_u $push25=, 0($pop24) - i32.const $push87=, 97 - i32.ne $push26=, $pop25, $pop87 + i32.const $push84=, 97 + i32.ne $push26=, $pop25, $pop84 br_if 7, $pop26 # 7: down to label0 # BB#17: # %for.cond61.1 # in Loop: Header=BB0_3 Depth=3 - i32.const $push90=, 3 - i32.add $push27=, $8, $pop90 + i32.const $push87=, 3 + i32.add $push27=, $9, $pop87 i32.load8_u $push28=, 0($pop27) - i32.const $push89=, 97 - i32.ne $push29=, $pop28, $pop89 + i32.const $push86=, 97 + i32.ne $push29=, $pop28, $pop86 br_if 7, $pop29 # 7: down to label0 # BB#18: # %for.cond61.2 # in Loop: Header=BB0_3 Depth=3 - i32.const $push92=, 4 - i32.add $push30=, $8, $pop92 + i32.const $push89=, 4 + i32.add $push30=, $9, $pop89 i32.load8_u $push31=, 0($pop30) - i32.const $push91=, 97 - i32.ne $push32=, $pop31, $pop91 + i32.const $push88=, 97 + i32.ne $push32=, $pop31, $pop88 br_if 7, $pop32 # 7: down to label0 # BB#19: # %for.cond61.3 # in Loop: Header=BB0_3 Depth=3 - i32.const $push94=, 5 - i32.add $push33=, $8, $pop94 + i32.const $push91=, 5 + i32.add $push33=, $9, $pop91 i32.load8_u $push34=, 0($pop33) - i32.const $push93=, 97 - i32.ne $push35=, $pop34, $pop93 + i32.const $push90=, 97 + i32.ne $push35=, $pop34, $pop90 br_if 7, $pop35 # 7: down to label0 # BB#20: # %for.cond61.4 # in Loop: Header=BB0_3 Depth=3 - i32.const $push96=, 6 - i32.add $push36=, $8, $pop96 + i32.const $push93=, 6 + i32.add $push36=, $9, $pop93 i32.load8_u $push37=, 0($pop36) - i32.const $push95=, 97 - i32.ne $push38=, $pop37, $pop95 + i32.const $push92=, 97 + i32.ne $push38=, $pop37, $pop92 br_if 7, $pop38 # 7: down to label0 # BB#21: # %for.cond61.5 # in Loop: Header=BB0_3 Depth=3 - i32.const $push98=, 7 - i32.add $push39=, $8, $pop98 + i32.const $push95=, 7 + i32.add $push39=, $9, $pop95 i32.load8_u $push40=, 0($pop39) - i32.const $push97=, 97 - i32.ne $push41=, $pop40, $pop97 + i32.const $push94=, 97 + i32.ne $push41=, $pop40, $pop94 br_if 7, $pop41 # 7: down to label0 # BB#22: # %for.cond61.6 # in Loop: Header=BB0_3 Depth=3 - i32.const $push100=, 8 - i32.add $push42=, $8, $pop100 + i32.const $push97=, 8 + i32.add $push42=, $9, $pop97 i32.load8_u $push43=, 0($pop42) - i32.const $push99=, 97 - i32.ne $push44=, $pop43, $pop99 + i32.const $push96=, 97 + i32.ne $push44=, $pop43, $pop96 br_if 7, $pop44 # 7: down to label0 # BB#23: # %for.cond61.7 # in Loop: Header=BB0_3 Depth=3 - i32.const $push104=, 1 - i32.add $push103=, $5, $pop104 - tee_local $push102=, $5=, $pop103 - i32.const $push101=, 80 - i32.lt_u $push45=, $pop102, $pop101 + i32.const $push101=, 1 + i32.add $push100=, $6, $pop101 + tee_local $push99=, $6=, $pop100 + i32.const $push98=, 80 + i32.lt_u $push45=, $pop99, $pop98 br_if 0, $pop45 # 0: up to label6 # BB#24: # %for.inc77 # in Loop: Header=BB0_2 Depth=2 end_loop # label7: - i32.const $push108=, 1 - i32.add $push107=, $2, $pop108 - tee_local $push106=, $2=, $pop107 - i32.const $push105=, 8 - i32.lt_u $push46=, $pop106, $pop105 + i32.const $push105=, 1 + i32.add $push104=, $3, $pop105 + tee_local $push103=, $3=, $pop104 + i32.const $push102=, 8 + i32.lt_u $push46=, $pop103, $pop102 br_if 0, $pop46 # 0: up to label4 # BB#25: # %for.inc80 # in Loop: Header=BB0_1 Depth=1 end_loop # label5: - i32.const $push112=, 1 - i32.add $push111=, $0, $pop112 - tee_local $push110=, $0=, $pop111 - i32.const $push109=, 8 - i32.lt_u $push47=, $pop110, $pop109 + i32.const $push109=, 1 + i32.add $push108=, $1, $pop109 + tee_local $push107=, $1=, $pop108 + i32.const $push106=, 8 + i32.lt_u $push47=, $pop107, $pop106 br_if 0, $pop47 # 0: up to label2 # BB#26: # %for.end82 end_loop # label3: @@ -267,3 +265,6 @@ main: # @main .lcomm u2,112,4 .ident "clang version 3.9.0 " + .functype strcpy, i32, i32, i32 + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/strct-pack-1.c.s b/test/torture-s/strct-pack-1.c.s index 871c03c90..3fa504c16 100644 --- a/test/torture-s/strct-pack-1.c.s +++ b/test/torture-s/strct-pack-1.c.s @@ -46,3 +46,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/strct-pack-2.c.s b/test/torture-s/strct-pack-2.c.s index e43752bd2..ba7e5ab37 100644 --- a/test/torture-s/strct-pack-2.c.s +++ b/test/torture-s/strct-pack-2.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/strct-pack-3.c.s b/test/torture-s/strct-pack-3.c.s index baff894b0..dd5b61c17 100644 --- a/test/torture-s/strct-pack-3.c.s +++ b/test/torture-s/strct-pack-3.c.s @@ -45,3 +45,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/strct-pack-4.c.s b/test/torture-s/strct-pack-4.c.s index 1e7cb1114..788bf7108 100644 --- a/test/torture-s/strct-pack-4.c.s +++ b/test/torture-s/strct-pack-4.c.s @@ -42,3 +42,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/strct-stdarg-1.c.s b/test/torture-s/strct-stdarg-1.c.s index a9402f08d..bb1c9d352 100644 --- a/test/torture-s/strct-stdarg-1.c.s +++ b/test/torture-s/strct-stdarg-1.c.s @@ -7,7 +7,7 @@ f: # @f .param i32, i32 .result i32 - .local i32, i32, i32 + .local i32, i32 # BB#0: # %entry i32.const $push31=, 0 i32.const $push28=, 0 @@ -16,78 +16,79 @@ f: # @f i32.sub $push35=, $pop29, $pop30 i32.store $push38=, __stack_pointer($pop31), $pop35 tee_local $push37=, $3=, $pop38 - i32.store $4=, 12($pop37), $1 + i32.store $2=, 12($pop37), $1 block block block i32.const $push36=, 1 - i32.lt_s $push4=, $0, $pop36 - br_if 0, $pop4 # 0: down to label2 + i32.lt_s $push3=, $0, $pop36 + br_if 0, $pop3 # 0: down to label2 # BB#1: # %for.body.preheader i32.const $push39=, 8 - i32.add $2=, $4, $pop39 - i32.const $4=, 0 + i32.add $2=, $2, $pop39 + i32.const $1=, 0 .LBB0_2: # %for.body # =>This Inner Loop Header: Depth=1 loop # label3: i32.const $push43=, 10 - i32.add $push5=, $4, $pop43 + i32.add $push4=, $1, $pop43 i32.store $push42=, 12($3), $2 tee_local $push41=, $2=, $pop42 i32.const $push40=, -8 - i32.add $push6=, $pop41, $pop40 - i32.load8_s $push7=, 0($pop6) - i32.ne $push8=, $pop5, $pop7 - br_if 3, $pop8 # 3: down to label1 + i32.add $push5=, $pop41, $pop40 + i32.load8_s $push6=, 0($pop5) + i32.ne $push7=, $pop4, $pop6 + br_if 3, $pop7 # 3: down to label1 # BB#3: # %if.end # in Loop: Header=BB0_2 Depth=1 i32.const $push45=, 20 - i32.add $push12=, $4, $pop45 + i32.add $push11=, $1, $pop45 i32.const $push44=, -7 - i32.add $push13=, $2, $pop44 - i32.load8_s $push14=, 0($pop13) - i32.ne $push15=, $pop12, $pop14 - br_if 3, $pop15 # 3: down to label1 + i32.add $push12=, $2, $pop44 + i32.load8_s $push13=, 0($pop12) + i32.ne $push14=, $pop11, $pop13 + br_if 3, $pop14 # 3: down to label1 # BB#4: # %if.end9 # in Loop: Header=BB0_2 Depth=1 i32.const $push47=, 30 - i32.add $push16=, $4, $pop47 + i32.add $push15=, $1, $pop47 i32.const $push46=, -6 - i32.add $push11=, $2, $pop46 - i32.load8_s $push1=, 0($pop11) - i32.ne $push17=, $pop16, $pop1 - br_if 3, $pop17 # 3: down to label1 + i32.add $push10=, $2, $pop46 + i32.load8_s $push0=, 0($pop10) + i32.ne $push16=, $pop15, $pop0 + br_if 3, $pop16 # 3: down to label1 # BB#5: # %if.end15 # in Loop: Header=BB0_2 Depth=1 i32.const $push49=, 40 - i32.add $push18=, $4, $pop49 + i32.add $push17=, $1, $pop49 i32.const $push48=, -5 - i32.add $push10=, $2, $pop48 - i32.load8_s $push2=, 0($pop10) - i32.ne $push19=, $pop18, $pop2 - br_if 3, $pop19 # 3: down to label1 + i32.add $push9=, $2, $pop48 + i32.load8_s $push1=, 0($pop9) + i32.ne $push18=, $pop17, $pop1 + br_if 3, $pop18 # 3: down to label1 # BB#6: # %if.end21 # in Loop: Header=BB0_2 Depth=1 i32.const $push51=, 50 - i32.add $push20=, $4, $pop51 + i32.add $push19=, $1, $pop51 i32.const $push50=, -4 - i32.add $push9=, $2, $pop50 - i32.load8_s $push3=, 0($pop9) - i32.ne $push21=, $pop20, $pop3 - br_if 4, $pop21 # 4: down to label0 + i32.add $push8=, $2, $pop50 + i32.load8_s $push2=, 0($pop8) + i32.ne $push20=, $pop19, $pop2 + br_if 4, $pop20 # 4: down to label0 # BB#7: # %for.cond # in Loop: Header=BB0_2 Depth=1 - copy_local $1=, $2 i32.const $push55=, 8 - i32.add $push0=, $2, $pop55 - copy_local $2=, $pop0 + i32.add $2=, $2, $pop55 i32.const $push54=, 1 - i32.add $push53=, $4, $pop54 - tee_local $push52=, $4=, $pop53 - i32.lt_s $push22=, $pop52, $0 - br_if 0, $pop22 # 0: up to label3 -.LBB0_8: # %for.end + i32.add $push53=, $1, $pop54 + tee_local $push52=, $1=, $pop53 + i32.lt_s $push21=, $pop52, $0 + br_if 0, $pop21 # 0: up to label3 +# BB#8: # %for.end.loopexit end_loop # label4: + i32.const $push22=, -8 + i32.add $1=, $2, $pop22 +.LBB0_9: # %for.end end_block # label2: i32.const $push23=, 4 i32.add $push24=, $1, $pop23 @@ -96,17 +97,17 @@ f: # @f i32.const $push26=, 123 i32.ne $push27=, $pop25, $pop26 br_if 0, $pop27 # 0: down to label1 -# BB#9: # %if.end34 +# BB#10: # %if.end34 i32.const $push34=, 0 i32.const $push32=, 16 i32.add $push33=, $3, $pop32 i32.store $drop=, __stack_pointer($pop34), $pop33 - return $4 -.LBB0_10: # %if.then33 + return $1 +.LBB0_11: # %if.then33 end_block # label1: call abort@FUNCTION unreachable -.LBB0_11: # %if.then26 +.LBB0_12: # %if.then26 end_block # label0: call abort@FUNCTION unreachable @@ -219,3 +220,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/strct-varg-1.c.s b/test/torture-s/strct-varg-1.c.s index 724bc9ef9..5c4de38bd 100644 --- a/test/torture-s/strct-varg-1.c.s +++ b/test/torture-s/strct-varg-1.c.s @@ -119,3 +119,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/string-opt-17.c.s b/test/torture-s/string-opt-17.c.s index b24eab075..1eac3c1f0 100644 --- a/test/torture-s/string-opt-17.c.s +++ b/test/torture-s/string-opt-17.c.s @@ -153,3 +153,7 @@ check2.r: .ident "clang version 3.9.0 " + .functype strcpy, i32, i32, i32 + .functype abort, void + .functype memcmp, i32, i32, i32, i32 + .functype exit, void, i32 diff --git a/test/torture-s/string-opt-18.c.s b/test/torture-s/string-opt-18.c.s index 59d10648a..c35f16304 100644 --- a/test/torture-s/string-opt-18.c.s +++ b/test/torture-s/string-opt-18.c.s @@ -141,3 +141,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype mempcpy, i32, i32, i32, i32 diff --git a/test/torture-s/string-opt-5.c.s b/test/torture-s/string-opt-5.c.s index 9923c39e4..1252b95be 100644 --- a/test/torture-s/string-opt-5.c.s +++ b/test/torture-s/string-opt-5.c.s @@ -385,3 +385,10 @@ buf: .ident "clang version 3.9.0 " + .functype strlen, i32, i32 + .functype abort, void + .functype strcmp, i32, i32, i32 + .functype strchr, i32, i32, i32 + .functype strrchr, i32, i32, i32 + .functype strncpy, i32, i32, i32, i32 + .functype memcmp, i32, i32, i32, i32 diff --git a/test/torture-s/strlen-1.c.s b/test/torture-s/strlen-1.c.s index d658f161d..2277b5394 100644 --- a/test/torture-s/strlen-1.c.s +++ b/test/torture-s/strlen-1.c.s @@ -91,3 +91,6 @@ main: # @main .lcomm u,96,4 .ident "clang version 3.9.0 " + .functype strlen, i32, i32 + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/strncmp-1.c.s b/test/torture-s/strncmp-1.c.s index d444954c2..b44674eb4 100644 --- a/test/torture-s/strncmp-1.c.s +++ b/test/torture-s/strncmp-1.c.s @@ -291,3 +291,6 @@ main: # @main .lcomm u2,80,4 .ident "clang version 3.9.0 " + .functype strncmp, i32, i32, i32, i32 + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/struct-aliasing-1.c.s b/test/torture-s/struct-aliasing-1.c.s index 4237f7c6c..79e2f0b23 100644 --- a/test/torture-s/struct-aliasing-1.c.s +++ b/test/torture-s/struct-aliasing-1.c.s @@ -61,3 +61,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/struct-ini-1.c.s b/test/torture-s/struct-ini-1.c.s index 60ba615d6..243916f68 100644 --- a/test/torture-s/struct-ini-1.c.s +++ b/test/torture-s/struct-ini-1.c.s @@ -51,3 +51,5 @@ object: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/struct-ini-2.c.s b/test/torture-s/struct-ini-2.c.s index 82e063dc4..03d5dfb8c 100644 --- a/test/torture-s/struct-ini-2.c.s +++ b/test/torture-s/struct-ini-2.c.s @@ -54,3 +54,5 @@ x: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/struct-ini-3.c.s b/test/torture-s/struct-ini-3.c.s index fc24560f2..a6d2c773f 100644 --- a/test/torture-s/struct-ini-3.c.s +++ b/test/torture-s/struct-ini-3.c.s @@ -27,3 +27,4 @@ result: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/struct-ini-4.c.s b/test/torture-s/struct-ini-4.c.s index c18828dde..d682fa049 100644 --- a/test/torture-s/struct-ini-4.c.s +++ b/test/torture-s/struct-ini-4.c.s @@ -39,3 +39,5 @@ s: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/struct-ret-1.c.s b/test/torture-s/struct-ret-1.c.s index ef7f9e62d..63148a775 100644 --- a/test/torture-s/struct-ret-1.c.s +++ b/test/torture-s/struct-ret-1.c.s @@ -420,3 +420,8 @@ fp: .ident "clang version 3.9.0 " + .functype sprintf, i32, i32, i32 + .functype strcpy, i32, i32, i32 + .functype strcmp, i32, i32, i32 + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/struct-ret-2.c.s b/test/torture-s/struct-ret-2.c.s index 338a7c2ed..5f44acd41 100644 --- a/test/torture-s/struct-ret-2.c.s +++ b/test/torture-s/struct-ret-2.c.s @@ -42,3 +42,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/switch-1.c.s b/test/torture-s/switch-1.c.s index a1543dc8e..2b326e7df 100644 --- a/test/torture-s/switch-1.c.s +++ b/test/torture-s/switch-1.c.s @@ -169,3 +169,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/tstdi-1.c.s b/test/torture-s/tstdi-1.c.s index 1ffbb5c46..e0fe3484c 100644 --- a/test/torture-s/tstdi-1.c.s +++ b/test/torture-s/tstdi-1.c.s @@ -122,3 +122,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/unroll-1.c.s b/test/torture-s/unroll-1.c.s index 04ecc2601..119e357bc 100644 --- a/test/torture-s/unroll-1.c.s +++ b/test/torture-s/unroll-1.c.s @@ -31,3 +31,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/usmul.c.s b/test/torture-s/usmul.c.s index c21fa1ba4..54254f2ee 100644 --- a/test/torture-s/usmul.c.s +++ b/test/torture-s/usmul.c.s @@ -105,3 +105,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/va-arg-1.c.s b/test/torture-s/va-arg-1.c.s index 0587b0c6f..85f97204e 100644 --- a/test/torture-s/va-arg-1.c.s +++ b/test/torture-s/va-arg-1.c.s @@ -82,3 +82,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/va-arg-10.c.s b/test/torture-s/va-arg-10.c.s index 8b81a13e7..2a8a716d1 100644 --- a/test/torture-s/va-arg-10.c.s +++ b/test/torture-s/va-arg-10.c.s @@ -909,3 +909,6 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype strlen, i32, i32 + .functype exit, void, i32 diff --git a/test/torture-s/va-arg-11.c.s b/test/torture-s/va-arg-11.c.s index 9b24b38f1..c83266b1d 100644 --- a/test/torture-s/va-arg-11.c.s +++ b/test/torture-s/va-arg-11.c.s @@ -64,3 +64,5 @@ foo: # @foo .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/va-arg-12.c.s b/test/torture-s/va-arg-12.c.s index 412b0b766..3ea7dbb6b 100644 --- a/test/torture-s/va-arg-12.c.s +++ b/test/torture-s/va-arg-12.c.s @@ -92,3 +92,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/va-arg-13.c.s b/test/torture-s/va-arg-13.c.s index de8af7eb2..f3e3413ed 100644 --- a/test/torture-s/va-arg-13.c.s +++ b/test/torture-s/va-arg-13.c.s @@ -94,3 +94,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/va-arg-14.c.s b/test/torture-s/va-arg-14.c.s index af5b3104d..5aa01586b 100644 --- a/test/torture-s/va-arg-14.c.s +++ b/test/torture-s/va-arg-14.c.s @@ -149,3 +149,5 @@ global: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/va-arg-15.c.s b/test/torture-s/va-arg-15.c.s index 7c9d98237..ae58696d9 100644 --- a/test/torture-s/va-arg-15.c.s +++ b/test/torture-s/va-arg-15.c.s @@ -176,3 +176,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/va-arg-16.c.s b/test/torture-s/va-arg-16.c.s index 5f20f038c..5fcd6b7d8 100644 --- a/test/torture-s/va-arg-16.c.s +++ b/test/torture-s/va-arg-16.c.s @@ -175,3 +175,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/va-arg-17.c.s b/test/torture-s/va-arg-17.c.s index 323ccc993..2d090f402 100644 --- a/test/torture-s/va-arg-17.c.s +++ b/test/torture-s/va-arg-17.c.s @@ -164,3 +164,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/va-arg-18.c.s b/test/torture-s/va-arg-18.c.s index 111bad88a..3a84f45d5 100644 --- a/test/torture-s/va-arg-18.c.s +++ b/test/torture-s/va-arg-18.c.s @@ -84,3 +84,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/va-arg-19.c.s b/test/torture-s/va-arg-19.c.s index e3ba2356a..4f4dd923b 100644 --- a/test/torture-s/va-arg-19.c.s +++ b/test/torture-s/va-arg-19.c.s @@ -144,3 +144,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/va-arg-2.c.s b/test/torture-s/va-arg-2.c.s index abad792b1..aa3a91a2b 100644 --- a/test/torture-s/va-arg-2.c.s +++ b/test/torture-s/va-arg-2.c.s @@ -1460,3 +1460,6 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype strlen, i32, i32 + .functype exit, void, i32 diff --git a/test/torture-s/va-arg-20.c.s b/test/torture-s/va-arg-20.c.s index 813cabbd3..6c68d26ec 100644 --- a/test/torture-s/va-arg-20.c.s +++ b/test/torture-s/va-arg-20.c.s @@ -94,3 +94,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/va-arg-21.c.s b/test/torture-s/va-arg-21.c.s index 14b2dc1cf..a7f8042cd 100644 --- a/test/torture-s/va-arg-21.c.s +++ b/test/torture-s/va-arg-21.c.s @@ -68,3 +68,7 @@ doit: # @doit .ident "clang version 3.9.0 " + .functype exit, void, i32 + .functype malloc, i32, i32 + .functype vprintf, i32, i32, i32 + .functype abort, void diff --git a/test/torture-s/va-arg-22.c.s b/test/torture-s/va-arg-22.c.s index bc0879e25..7827ff3b7 100644 --- a/test/torture-s/va-arg-22.c.s +++ b/test/torture-s/va-arg-22.c.s @@ -2397,3 +2397,5 @@ bar.lastc: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/va-arg-23.c.s b/test/torture-s/va-arg-23.c.s index 46b12c6a0..214264a2e 100644 --- a/test/torture-s/va-arg-23.c.s +++ b/test/torture-s/va-arg-23.c.s @@ -78,3 +78,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/va-arg-24.c.s b/test/torture-s/va-arg-24.c.s index e5d770593..3f86be613 100644 --- a/test/torture-s/va-arg-24.c.s +++ b/test/torture-s/va-arg-24.c.s @@ -1121,3 +1121,6 @@ varargs9: # @varargs9 .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 + .functype printf, i32, i32 diff --git a/test/torture-s/va-arg-26.c.s b/test/torture-s/va-arg-26.c.s index c58b80612..6d94f473a 100644 --- a/test/torture-s/va-arg-26.c.s +++ b/test/torture-s/va-arg-26.c.s @@ -65,3 +65,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/va-arg-4.c.s b/test/torture-s/va-arg-4.c.s index 6e06c52cb..b9c345046 100644 --- a/test/torture-s/va-arg-4.c.s +++ b/test/torture-s/va-arg-4.c.s @@ -121,3 +121,5 @@ main.x: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/va-arg-5.c.s b/test/torture-s/va-arg-5.c.s index 066d968f5..ab3435ee9 100644 --- a/test/torture-s/va-arg-5.c.s +++ b/test/torture-s/va-arg-5.c.s @@ -222,3 +222,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/va-arg-6.c.s b/test/torture-s/va-arg-6.c.s index 38a816071..99490b282 100644 --- a/test/torture-s/va-arg-6.c.s +++ b/test/torture-s/va-arg-6.c.s @@ -185,3 +185,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/va-arg-7.c.s b/test/torture-s/va-arg-7.c.s index ab6f96de3..b5dcf0b79 100644 --- a/test/torture-s/va-arg-7.c.s +++ b/test/torture-s/va-arg-7.c.s @@ -86,3 +86,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/va-arg-8.c.s b/test/torture-s/va-arg-8.c.s index 0b525129f..5178bd676 100644 --- a/test/torture-s/va-arg-8.c.s +++ b/test/torture-s/va-arg-8.c.s @@ -81,3 +81,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/va-arg-9.c.s b/test/torture-s/va-arg-9.c.s index 1d8d7433b..fface45db 100644 --- a/test/torture-s/va-arg-9.c.s +++ b/test/torture-s/va-arg-9.c.s @@ -1482,3 +1482,6 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype strlen, i32, i32 + .functype exit, void, i32 diff --git a/test/torture-s/va-arg-pack-1.c.s b/test/torture-s/va-arg-pack-1.c.s index 8c4b02c89..21f9779c4 100644 --- a/test/torture-s/va-arg-pack-1.c.s +++ b/test/torture-s/va-arg-pack-1.c.s @@ -659,3 +659,6 @@ cnt: .ident "clang version 3.9.0 " + .functype abort, void + .functype memcmp, i32, i32, i32, i32 + .functype bar, i32, i32 diff --git a/test/torture-s/va-arg-trap-1.c.s b/test/torture-s/va-arg-trap-1.c.s index bae3b40eb..2755a7636 100644 --- a/test/torture-s/va-arg-trap-1.c.s +++ b/test/torture-s/va-arg-trap-1.c.s @@ -72,3 +72,4 @@ f: .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/vfprintf-1.c.s b/test/torture-s/vfprintf-1.c.s index e3b85eab5..8b283a446 100644 --- a/test/torture-s/vfprintf-1.c.s +++ b/test/torture-s/vfprintf-1.c.s @@ -362,3 +362,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype vfprintf, i32, i32, i32, i32 + .functype abort, void diff --git a/test/torture-s/vfprintf-chk-1.c.s b/test/torture-s/vfprintf-chk-1.c.s index 94d658ce3..8012a9707 100644 --- a/test/torture-s/vfprintf-chk-1.c.s +++ b/test/torture-s/vfprintf-chk-1.c.s @@ -537,3 +537,5 @@ should_optimize: .ident "clang version 3.9.0 " + .functype abort, void + .functype vfprintf, i32, i32, i32, i32 diff --git a/test/torture-s/vprintf-1.c.s b/test/torture-s/vprintf-1.c.s index 685994c76..6af76d762 100644 --- a/test/torture-s/vprintf-1.c.s +++ b/test/torture-s/vprintf-1.c.s @@ -329,3 +329,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype vprintf, i32, i32, i32 + .functype abort, void diff --git a/test/torture-s/vprintf-chk-1.c.s b/test/torture-s/vprintf-chk-1.c.s index 07c1842cb..5b483ade0 100644 --- a/test/torture-s/vprintf-chk-1.c.s +++ b/test/torture-s/vprintf-chk-1.c.s @@ -501,3 +501,5 @@ should_optimize: .ident "clang version 3.9.0 " + .functype abort, void + .functype vprintf, i32, i32, i32 diff --git a/test/torture-s/vrp-1.c.s b/test/torture-s/vrp-1.c.s index 2f373fece..89ff0edc6 100644 --- a/test/torture-s/vrp-1.c.s +++ b/test/torture-s/vrp-1.c.s @@ -36,3 +36,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/vrp-2.c.s b/test/torture-s/vrp-2.c.s index e812daf73..f35c829ca 100644 --- a/test/torture-s/vrp-2.c.s +++ b/test/torture-s/vrp-2.c.s @@ -47,3 +47,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/vrp-3.c.s b/test/torture-s/vrp-3.c.s index 1e22f4bd1..4bcbc5283 100644 --- a/test/torture-s/vrp-3.c.s +++ b/test/torture-s/vrp-3.c.s @@ -49,3 +49,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/vrp-4.c.s b/test/torture-s/vrp-4.c.s index 19a2a97f0..b39e70ccf 100644 --- a/test/torture-s/vrp-4.c.s +++ b/test/torture-s/vrp-4.c.s @@ -46,3 +46,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/vrp-5.c.s b/test/torture-s/vrp-5.c.s index 238146dac..f73a0809f 100644 --- a/test/torture-s/vrp-5.c.s +++ b/test/torture-s/vrp-5.c.s @@ -47,3 +47,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/vrp-6.c.s b/test/torture-s/vrp-6.c.s index 8a119f4bc..f974a4a8b 100644 --- a/test/torture-s/vrp-6.c.s +++ b/test/torture-s/vrp-6.c.s @@ -79,3 +79,5 @@ main: # @main .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/vrp-7.c.s b/test/torture-s/vrp-7.c.s index 7fad8df79..870b61775 100644 --- a/test/torture-s/vrp-7.c.s +++ b/test/torture-s/vrp-7.c.s @@ -61,3 +61,4 @@ t: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/wchar_t-1.c.s b/test/torture-s/wchar_t-1.c.s index 5cbc72c2e..05059c068 100644 --- a/test/torture-s/wchar_t-1.c.s +++ b/test/torture-s/wchar_t-1.c.s @@ -56,3 +56,5 @@ y: .ident "clang version 3.9.0 " + .functype abort, void + .functype exit, void, i32 diff --git a/test/torture-s/widechar-1.c.s b/test/torture-s/widechar-1.c.s index a69541e6c..48cbadc76 100644 --- a/test/torture-s/widechar-1.c.s +++ b/test/torture-s/widechar-1.c.s @@ -16,3 +16,4 @@ main: # @main .ident "clang version 3.9.0 " + .functype exit, void, i32 diff --git a/test/torture-s/zero-struct-1.c.s b/test/torture-s/zero-struct-1.c.s index 99bfcad41..0fa51e038 100644 --- a/test/torture-s/zero-struct-1.c.s +++ b/test/torture-s/zero-struct-1.c.s @@ -90,3 +90,4 @@ ff: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/zero-struct-2.c.s b/test/torture-s/zero-struct-2.c.s index 368b2dac6..8f0d1c128 100644 --- a/test/torture-s/zero-struct-2.c.s +++ b/test/torture-s/zero-struct-2.c.s @@ -56,3 +56,4 @@ ii: .ident "clang version 3.9.0 " + .functype abort, void diff --git a/test/torture-s/zerolen-1.c.s b/test/torture-s/zerolen-1.c.s index bbedfead9..ceb08a68c 100644 --- a/test/torture-s/zerolen-1.c.s +++ b/test/torture-s/zerolen-1.c.s @@ -41,3 +41,4 @@ entry: .ident "clang version 3.9.0 " + .functype exit, void, i32 |