summaryrefslogtreecommitdiff
path: root/test/torture-s/zero-struct-2.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/zero-struct-2.c.s')
-rw-r--r--test/torture-s/zero-struct-2.c.s48
1 files changed, 48 insertions, 0 deletions
diff --git a/test/torture-s/zero-struct-2.c.s b/test/torture-s/zero-struct-2.c.s
new file mode 100644
index 000000000..514709a13
--- /dev/null
+++ b/test/torture-s/zero-struct-2.c.s
@@ -0,0 +1,48 @@
+ .text
+ .file "/b/build/slave/linux/build/src/buildbot/work/gcc/gcc/testsuite/gcc.c-torture/execute/zero-struct-2.c"
+ .globl one_raw_spinlock
+ .type one_raw_spinlock,@function
+one_raw_spinlock: # @one_raw_spinlock
+ .local i32
+# BB#0: # %entry
+ i32.const $0=, 0
+ i32.load $push0=, ii($0)
+ i32.const $push1=, 1
+ i32.add $push2=, $pop0, $pop1
+ i32.store $discard=, ii($0), $pop2
+ return
+func_end0:
+ .size one_raw_spinlock, func_end0-one_raw_spinlock
+
+ .globl main
+ .type main,@function
+main: # @main
+ .result i32
+ .local i32, i32
+# BB#0: # %entry
+ i32.const $0=, 0
+ i32.load $1=, ii($0)
+ block BB1_2
+ i32.const $push0=, 1
+ i32.add $push1=, $1, $pop0
+ i32.store $discard=, ii($0), $pop1
+ br_if $1, BB1_2
+# BB#1: # %if.end
+ return $0
+BB1_2: # %if.then
+ call abort
+ unreachable
+func_end1:
+ .size main, func_end1-main
+
+ .type ii,@object # @ii
+ .bss
+ .globl ii
+ .align 2
+ii:
+ .int32 0 # 0x0
+ .size ii, 4
+
+
+ .ident "clang version 3.8.0 "
+ .section ".note.GNU-stack","",@progbits