summaryrefslogtreecommitdiff
path: root/test/torture-s/inst-check.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/inst-check.c.s')
-rw-r--r--test/torture-s/inst-check.c.s46
1 files changed, 46 insertions, 0 deletions
diff --git a/test/torture-s/inst-check.c.s b/test/torture-s/inst-check.c.s
new file mode 100644
index 000000000..b8bd97dd3
--- /dev/null
+++ b/test/torture-s/inst-check.c.s
@@ -0,0 +1,46 @@
+ .text
+ .file "/b/build/slave/linux/build/src/buildbot/work/gcc/gcc/testsuite/gcc.c-torture/execute/inst-check.c"
+ .globl f
+ .type f,@function
+f: # @f
+ .param i32
+ .result i32
+ .local i32
+# BB#0: # %entry
+ i32.const $1=, 0
+ block BB0_2
+ i32.const $push0=, 1
+ i32.lt_s $push1=, $0, $pop0
+ br_if $pop1, BB0_2
+# BB#1: # %for.body.preheader
+ i32.const $1=, -1
+ i32.add $push2=, $0, $1
+ i64.extend_u/i32 $push3=, $pop2
+ i32.const $push4=, -2
+ i32.add $push5=, $0, $pop4
+ i64.extend_u/i32 $push6=, $pop5
+ i64.mul $push7=, $pop3, $pop6
+ i64.const $push8=, 1
+ i64.shr_u $push9=, $pop7, $pop8
+ i32.wrap/i64 $push10=, $pop9
+ i32.add $push11=, $pop10, $0
+ i32.add $1=, $pop11, $1
+BB0_2: # %for.end
+ return $1
+func_end0:
+ .size f, func_end0-f
+
+ .globl main
+ .type main,@function
+main: # @main
+ .result i32
+# BB#0: # %entry
+ i32.const $push0=, 0
+ call exit, $pop0
+ unreachable
+func_end1:
+ .size main, func_end1-main
+
+
+ .ident "clang version 3.8.0 "
+ .section ".note.GNU-stack","",@progbits