diff options
-rw-r--r-- | test/dot_s/alternate-lcomm.s | 5 | ||||
-rw-r--r-- | test/dot_s/data-offset-folding.s | 19 | ||||
-rw-r--r-- | test/dot_s/exit.s | 11 | ||||
-rw-r--r-- | test/dot_s/lcomm-in-text-segment.s | 12 | ||||
-rw-r--r-- | test/dot_s/permute.s | 6 | ||||
-rw-r--r-- | test/dot_s/relocation.s | 30 | ||||
-rw-r--r-- | test/dot_s/symbolic-offset.s | 19 |
7 files changed, 102 insertions, 0 deletions
diff --git a/test/dot_s/alternate-lcomm.s b/test/dot_s/alternate-lcomm.s new file mode 100644 index 000000000..70966ef05 --- /dev/null +++ b/test/dot_s/alternate-lcomm.s @@ -0,0 +1,5 @@ + .data + .type a,@object + .lcomm a,1 + .type b,@object + .lcomm b,3 diff --git a/test/dot_s/data-offset-folding.s b/test/dot_s/data-offset-folding.s new file mode 100644 index 000000000..628646794 --- /dev/null +++ b/test/dot_s/data-offset-folding.s @@ -0,0 +1,19 @@ + .data + .type pad,@object + .globl pad + .align 2 +pad: + .int32 0 + .type arr,@object + .globl arr + .align 4 +arr: + .zero 400 + .size arr, 400 + + .type ptr,@object + .globl ptr + .align 2 +ptr: + .int32 arr+80 + .size ptr, 4 diff --git a/test/dot_s/exit.s b/test/dot_s/exit.s new file mode 100644 index 000000000..ced6b4e61 --- /dev/null +++ b/test/dot_s/exit.s @@ -0,0 +1,11 @@ +.text + .file "/s/newgit/native_client/toolchain_build/src/pnacl-gcc/gcc/testsuite/gcc.c-torture/execute/enum-1.c" + .globl main + .type main,@function +main: + .result i32 + .local i32 + i32.const $push0=, 0 + call exit, $pop0 +func_end0: + .size main, func_end0-main diff --git a/test/dot_s/lcomm-in-text-segment.s b/test/dot_s/lcomm-in-text-segment.s new file mode 100644 index 000000000..b059e6309 --- /dev/null +++ b/test/dot_s/lcomm-in-text-segment.s @@ -0,0 +1,12 @@ + .text + .type a,@object + .lcomm a,4,2 + .type b,@object + .lcomm b,4,2 + .type c,@object + .data + .globl c + .align 2 +c: + .int32 b + .size c, 4 diff --git a/test/dot_s/permute.s b/test/dot_s/permute.s new file mode 100644 index 000000000..a2df647c9 --- /dev/null +++ b/test/dot_s/permute.s @@ -0,0 +1,6 @@ + .data + .type _ZL7permute,@object + .align 4 +_ZL7permute: + .ascii "hE?\215s\0167\333[g\217\2255it\304k\013\342\357\274ld\340\375\214\236\206&~\330\224\211+\310\244\302\362\373\022\034ej\3319\267\263W\306w\257\256\312M>\222ub\226\204\266\260N\354;q\021\367\277\3431\346\247\220\374\003\344\252\327\314- \025\203DH\200r\372\001X\353:_\000A\315\351o`n\254(\255\2720\334yS#\364$\"\202\177}\216\366\223L'\273\275Z\3554\030\363\300\317\377\243\370\007\005\234\323\017\240\006m%\\\371^B<\347\261\027\230]\f\335\305\365p\345\376zJ\253,F\245@\bR\205!\270\032\316\325\004\nI\246\321\237\212\311\251|\227\232G\2768Y\213\301\033\324\352\271\031\024\233\22163\320\035\322\337=C\037\rc\341\307QUv\002\265aK\264\tV\303x\350\241\036\201\336/{\332\326Pf\020T\360)\210\026\356\250\235\361\313O*\262\231\0232\207.\242" + .size _ZL7permute, 256 diff --git a/test/dot_s/relocation.s b/test/dot_s/relocation.s new file mode 100644 index 000000000..d65a9e165 --- /dev/null +++ b/test/dot_s/relocation.s @@ -0,0 +1,30 @@ + .text + .file "relocation.c" + .globl main + .type main,@function +main: + .result i32 + .local i32 + i32.const $push0=, a + i32.load $push1=, 0($pop0) + return $pop1 +func_end0: + .size main, func_end0-main + + .type b,@object + .data + .globl b + .align 2 +b: + .int32 a + .size b, 4 + + .type a,@object + .globl a + .align 2 +a: + .int32 b + .size a, 4 + + + diff --git a/test/dot_s/symbolic-offset.s b/test/dot_s/symbolic-offset.s new file mode 100644 index 000000000..c704fda34 --- /dev/null +++ b/test/dot_s/symbolic-offset.s @@ -0,0 +1,19 @@ + .text + .globl f + .type f,@function +f: + .param i32 + .param i32 + i32.store $discard=, m+4($0), $1 + return +func_end0: + .size f, func_end0-f + + .type m,@object + .data + .align 2 +m: + .int32 1 + .int32 0 + .int32 0 + .size m, 12 |