summaryrefslogtreecommitdiff
path: root/test/torture-s/restrict-1.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/restrict-1.c.s')
-rw-r--r--test/torture-s/restrict-1.c.s57
1 files changed, 57 insertions, 0 deletions
diff --git a/test/torture-s/restrict-1.c.s b/test/torture-s/restrict-1.c.s
new file mode 100644
index 000000000..da4b91335
--- /dev/null
+++ b/test/torture-s/restrict-1.c.s
@@ -0,0 +1,57 @@
+ .text
+ .file "/b/build/slave/linux/build/src/buildbot/work/gcc/gcc/testsuite/gcc.c-torture/execute/restrict-1.c"
+ .globl foo
+ .type foo,@function
+foo: # @foo
+ .param i32, i32, i32
+# BB#0: # %entry
+ i32.load $push1=, 0($2)
+ i32.load $push0=, 0($1)
+ i32.add $push2=, $pop1, $pop0
+ i32.store $discard=, 0($0), $pop2
+ i32.const $push3=, 0
+ i32.store $discard=, 4($0), $pop3
+ return
+func_end0:
+ .size foo, func_end0-foo
+
+ .globl bar
+ .type bar,@function
+bar: # @bar
+ .param i32
+ .local i32
+# BB#0: # %entry
+ block BB1_2
+ i32.load $push0=, 0($0)
+ i32.const $push1=, 1
+ i32.shl $1=, $pop0, $pop1
+ i32.const $push3=, 4
+ i32.add $push4=, $0, $pop3
+ i64.const $push5=, 0
+ i64.store32 $discard=, 0($pop4), $pop5
+ i64.extend_u/i32 $push2=, $1
+ i64.store32 $discard=, 0($0), $pop2
+ i32.const $push6=, 2
+ i32.ne $push7=, $1, $pop6
+ br_if $pop7, BB1_2
+# BB#1: # %if.end
+ return
+BB1_2: # %if.then
+ call abort
+ unreachable
+func_end1:
+ .size bar, func_end1-bar
+
+ .globl main
+ .type main,@function
+main: # @main
+ .result i32
+# BB#0: # %bar.exit
+ i32.const $push0=, 0
+ return $pop0
+func_end2:
+ .size main, func_end2-main
+
+
+ .ident "clang version 3.8.0 "
+ .section ".note.GNU-stack","",@progbits