diff options
Diffstat (limited to 'test/torture-s/const-addr-expr-1.c.s')
-rw-r--r-- | test/torture-s/const-addr-expr-1.c.s | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/test/torture-s/const-addr-expr-1.c.s b/test/torture-s/const-addr-expr-1.c.s new file mode 100644 index 000000000..5b41d7468 --- /dev/null +++ b/test/torture-s/const-addr-expr-1.c.s @@ -0,0 +1,74 @@ + .text + .file "/b/build/slave/linux/build/src/buildbot/work/gcc/gcc/testsuite/gcc.c-torture/execute/const-addr-expr-1.c" + .globl main + .type main,@function +main: # @main + .param i32, i32 + .result i32 + .local i32 +# BB#0: # %entry + i32.const $2=, 0 + block BB0_4 + i32.load $push0=, Upgd_minor_ID($2) + i32.load $push1=, 0($pop0) + i32.const $push2=, 2 + i32.ne $push3=, $pop1, $pop2 + br_if $pop3, BB0_4 +# BB#1: # %if.end + block BB0_3 + i32.load $push4=, Upgd_minor_ID1($2) + i32.load $push5=, 0($pop4) + i32.const $push6=, 1 + i32.ne $push7=, $pop5, $pop6 + br_if $pop7, BB0_3 +# BB#2: # %if.end3 + return $2 +BB0_3: # %if.then2 + call abort + unreachable +BB0_4: # %if.then + call abort + unreachable +func_end0: + .size main, func_end0-main + + .type .str,@object # @.str + .section .rodata.str1.1,"aMS",@progbits,1 +.str: + .asciz "1" + .size .str, 2 + + .type .str.1,@object # @.str.1 +.str.1: + .asciz "2" + .size .str.1, 2 + + .type Upgrade_items,@object # @Upgrade_items + .data + .globl Upgrade_items + .align 4 +Upgrade_items: + .int32 1 # 0x1 + .int32 .str + .int32 2 # 0x2 + .int32 .str.1 + .zero 8 + .size Upgrade_items, 24 + + .type Upgd_minor_ID,@object # @Upgd_minor_ID + .globl Upgd_minor_ID + .align 2 +Upgd_minor_ID: + .int32 Upgrade_items+8 + .size Upgd_minor_ID, 4 + + .type Upgd_minor_ID1,@object # @Upgd_minor_ID1 + .globl Upgd_minor_ID1 + .align 2 +Upgd_minor_ID1: + .int32 Upgrade_items + .size Upgd_minor_ID1, 4 + + + .ident "clang version 3.8.0 " + .section ".note.GNU-stack","",@progbits |