summaryrefslogtreecommitdiff
path: root/test/torture-s/complex-2.c.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/torture-s/complex-2.c.s')
-rw-r--r--test/torture-s/complex-2.c.s76
1 files changed, 76 insertions, 0 deletions
diff --git a/test/torture-s/complex-2.c.s b/test/torture-s/complex-2.c.s
new file mode 100644
index 000000000..5dc23b760
--- /dev/null
+++ b/test/torture-s/complex-2.c.s
@@ -0,0 +1,76 @@
+ .text
+ .file "/b/build/slave/linux/build/src/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/complex-2.c"
+ .section .text.f,"ax",@progbits
+ .hidden f
+ .globl f
+ .type f,@function
+f: # @f
+ .param i32, i32, i32
+ .local f64, f64
+# BB#0: # %entry
+ f64.load $3=, 8($2)
+ f64.load $4=, 8($1)
+ f64.load $push0=, 0($2)
+ f64.load $push1=, 0($1)
+ f64.add $push2=, $pop0, $pop1
+ f64.store $discard=, 0($0), $pop2
+ f64.add $push3=, $3, $4
+ f64.store $discard=, 8($0), $pop3
+ return
+ .endfunc
+.Lfunc_end0:
+ .size f, .Lfunc_end0-f
+
+ .section .text.main,"ax",@progbits
+ .hidden main
+ .globl main
+ .type main,@function
+main: # @main
+ .result i32
+# BB#0: # %entry
+ block
+ i32.const $push6=, 0
+ f64.load $push1=, ag($pop6)
+ f64.const $push5=, 0x1p0
+ f64.ne $push2=, $pop1, $pop5
+ br_if $pop2, 0 # 0: down to label0
+# BB#1: # %entry
+ i32.const $push8=, 0
+ f64.load $push0=, ag+8($pop8)
+ f64.const $push7=, 0x1p0
+ f64.ne $push3=, $pop0, $pop7
+ br_if $pop3, 0 # 0: down to label0
+# BB#2: # %if.end26
+ i32.const $push4=, 0
+ call exit@FUNCTION, $pop4
+ unreachable
+.LBB1_3: # %if.then
+ end_block # label0:
+ call abort@FUNCTION
+ unreachable
+ .endfunc
+.Lfunc_end1:
+ .size main, .Lfunc_end1-main
+
+ .hidden ag # @ag
+ .type ag,@object
+ .section .data.ag,"aw",@progbits
+ .globl ag
+ .p2align 3
+ag:
+ .int64 4607182418800017408 # double 1
+ .int64 4607182418800017408 # double 1
+ .size ag, 16
+
+ .hidden bg # @bg
+ .type bg,@object
+ .section .data.bg,"aw",@progbits
+ .globl bg
+ .p2align 3
+bg:
+ .int64 -4611686018427387904 # double -2
+ .int64 4611686018427387904 # double 2
+ .size bg, 16
+
+
+ .ident "clang version 3.9.0 "