diff options
Diffstat (limited to 'code/tools/lcc/sparc/solaris/tst/limits.sbk')
-rw-r--r-- | code/tools/lcc/sparc/solaris/tst/limits.sbk | 384 |
1 files changed, 384 insertions, 0 deletions
diff --git a/code/tools/lcc/sparc/solaris/tst/limits.sbk b/code/tools/lcc/sparc/solaris/tst/limits.sbk new file mode 100644 index 0000000..2537c0c --- /dev/null +++ b/code/tools/lcc/sparc/solaris/tst/limits.sbk @@ -0,0 +1,384 @@ +.global main +.section ".text" +.align 4 +main: +save %sp,-96,%sp +set .L2,%o0 +set 255,%i5 +mov %i5,%o1 +mov %i5,%o2 +call printf; nop +set .L3,%o0 +set 65535,%i5 +mov %i5,%o1 +mov %i5,%o2 +call printf; nop +set .L4,%o0 +set 0xffffffff,%i5 +mov %i5,%o1 +mov %i5,%o2 +call printf; nop +set .L5,%o0 +set 0xffffffff,%i5 +mov %i5,%o1 +mov %i5,%o2 +call printf; nop +set .L6,%o0 +set 127,%i5 +mov %i5,%o1 +mov %i5,%o2 +call printf; nop +set .L7,%o0 +set 127,%i5 +mov %i5,%o1 +mov %i5,%o2 +call printf; nop +set .L8,%o0 +set 32767,%i5 +mov %i5,%o1 +mov %i5,%o2 +call printf; nop +set .L9,%o0 +set 2147483647,%i5 +mov %i5,%o1 +mov %i5,%o2 +call printf; nop +set .L10,%o0 +set 2147483647,%i5 +mov %i5,%o1 +mov %i5,%o2 +call printf; nop +set .L11,%o0 +set -128,%i5 +mov %i5,%o1 +mov %i5,%o2 +call printf; nop +set .L12,%o0 +set -128,%i5 +mov %i5,%o1 +mov %i5,%o2 +call printf; nop +set .L13,%o0 +set -32768,%i5 +mov %i5,%o1 +mov %i5,%o2 +call printf; nop +set .L14,%o0 +set -2147483648,%i5 +mov %i5,%o1 +mov %i5,%o2 +call printf; nop +set .L15,%o0 +set -2147483648,%i5 +mov %i5,%o1 +mov %i5,%o2 +call printf; nop +mov %g0,%i0 +.L1: +ret; restore +.type main,#function +.size main,.-main +.section ".rodata" +.align 1 +.L15: +.byte 76 +.byte 79 +.byte 78 +.byte 71 +.byte 95 +.byte 77 +.byte 73 +.byte 78 +.byte 58 +.byte 9 +.byte 37 +.byte 48 +.byte 56 +.byte 108 +.byte 120 +.byte 61 +.byte 37 +.byte 108 +.byte 100 +.byte 10 +.byte 0 +.align 1 +.L14: +.byte 73 +.byte 78 +.byte 84 +.byte 95 +.byte 77 +.byte 73 +.byte 78 +.byte 58 +.byte 9 +.byte 37 +.byte 48 +.byte 56 +.byte 120 +.byte 61 +.byte 37 +.byte 100 +.byte 10 +.byte 0 +.align 1 +.L13: +.byte 83 +.byte 72 +.byte 82 +.byte 84 +.byte 95 +.byte 77 +.byte 73 +.byte 78 +.byte 58 +.byte 9 +.byte 37 +.byte 48 +.byte 56 +.byte 120 +.byte 61 +.byte 37 +.byte 100 +.byte 10 +.byte 0 +.align 1 +.L12: +.byte 83 +.byte 67 +.byte 72 +.byte 65 +.byte 82 +.byte 95 +.byte 77 +.byte 73 +.byte 78 +.byte 58 +.byte 9 +.byte 37 +.byte 48 +.byte 56 +.byte 120 +.byte 61 +.byte 37 +.byte 100 +.byte 10 +.byte 0 +.align 1 +.L11: +.byte 67 +.byte 72 +.byte 65 +.byte 82 +.byte 95 +.byte 77 +.byte 73 +.byte 78 +.byte 58 +.byte 9 +.byte 37 +.byte 48 +.byte 56 +.byte 120 +.byte 61 +.byte 37 +.byte 100 +.byte 10 +.byte 0 +.align 1 +.L10: +.byte 76 +.byte 79 +.byte 78 +.byte 71 +.byte 95 +.byte 77 +.byte 65 +.byte 88 +.byte 58 +.byte 9 +.byte 37 +.byte 48 +.byte 56 +.byte 108 +.byte 120 +.byte 61 +.byte 37 +.byte 108 +.byte 100 +.byte 10 +.byte 0 +.align 1 +.L9: +.byte 73 +.byte 78 +.byte 84 +.byte 95 +.byte 77 +.byte 65 +.byte 88 +.byte 58 +.byte 9 +.byte 37 +.byte 48 +.byte 56 +.byte 120 +.byte 61 +.byte 37 +.byte 100 +.byte 10 +.byte 0 +.align 1 +.L8: +.byte 83 +.byte 72 +.byte 82 +.byte 84 +.byte 95 +.byte 77 +.byte 65 +.byte 88 +.byte 58 +.byte 9 +.byte 37 +.byte 48 +.byte 56 +.byte 120 +.byte 61 +.byte 37 +.byte 100 +.byte 10 +.byte 0 +.align 1 +.L7: +.byte 83 +.byte 67 +.byte 72 +.byte 65 +.byte 82 +.byte 95 +.byte 77 +.byte 65 +.byte 88 +.byte 58 +.byte 9 +.byte 37 +.byte 48 +.byte 56 +.byte 120 +.byte 61 +.byte 37 +.byte 100 +.byte 10 +.byte 0 +.align 1 +.L6: +.byte 67 +.byte 72 +.byte 65 +.byte 82 +.byte 95 +.byte 77 +.byte 65 +.byte 88 +.byte 58 +.byte 9 +.byte 37 +.byte 48 +.byte 56 +.byte 120 +.byte 61 +.byte 37 +.byte 100 +.byte 10 +.byte 0 +.align 1 +.L5: +.byte 85 +.byte 76 +.byte 79 +.byte 78 +.byte 71 +.byte 95 +.byte 77 +.byte 65 +.byte 88 +.byte 58 +.byte 9 +.byte 37 +.byte 48 +.byte 56 +.byte 108 +.byte 120 +.byte 61 +.byte 37 +.byte 108 +.byte 100 +.byte 10 +.byte 0 +.align 1 +.L4: +.byte 85 +.byte 73 +.byte 78 +.byte 84 +.byte 95 +.byte 77 +.byte 65 +.byte 88 +.byte 58 +.byte 9 +.byte 37 +.byte 48 +.byte 56 +.byte 120 +.byte 61 +.byte 37 +.byte 100 +.byte 10 +.byte 0 +.align 1 +.L3: +.byte 85 +.byte 83 +.byte 72 +.byte 82 +.byte 84 +.byte 95 +.byte 77 +.byte 65 +.byte 88 +.byte 58 +.byte 9 +.byte 37 +.byte 48 +.byte 56 +.byte 120 +.byte 61 +.byte 37 +.byte 100 +.byte 10 +.byte 0 +.align 1 +.L2: +.byte 85 +.byte 67 +.byte 72 +.byte 65 +.byte 82 +.byte 95 +.byte 77 +.byte 65 +.byte 88 +.byte 58 +.byte 9 +.byte 37 +.byte 48 +.byte 56 +.byte 120 +.byte 61 +.byte 37 +.byte 100 +.byte 10 +.byte 0 |