llvm.org GIT mirror llvm / 514ca3a
we are past the point where these tests are useful. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112887 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 10 years ago
14 changed file(s) with 0 addition(s) and 329 deletion(s). Raw diff Collapse all Expand all
+0
-27
test/Integer/a15.ll less more
None ; RUN: llvm-as %s -o - | llvm-dis > %t.ll
1 ; RUN: diff %t.ll %s.out
2
3 ; test 15 bits
4 ;
5 @b = constant i15 add(i15 32767, i15 1)
6 @c = constant i15 add(i15 32767, i15 32767)
7 @d = constant i15 add(i15 32760, i15 8)
8 @e = constant i15 sub(i15 0 , i15 1)
9 @f = constant i15 sub(i15 0 , i15 32767)
10 @g = constant i15 sub(i15 2 , i15 32767)
11
12 @h = constant i15 shl(i15 1 , i15 15)
13 @i = constant i15 shl(i15 1 , i15 14)
14 @j = constant i15 lshr(i15 32767 , i15 14)
15 @l = constant i15 ashr(i15 32767 , i15 14)
16
17 @n = constant i15 mul(i15 32767, i15 2)
18 @q = constant i15 mul(i15 -16383,i15 -3)
19 @r = constant i15 sdiv(i15 -1, i15 16383)
20 @s = constant i15 udiv(i15 -1, i15 16383)
21 @t = constant i15 srem(i15 1, i15 32766)
22 @u = constant i15 urem(i15 32767,i15 -1)
23 @o = constant i15 trunc( i16 32768 to i15 )
24 @p = constant i15 trunc( i16 32767 to i15 )
25 @v = constant i15 srem(i15 -1, i15 768)
26
+0
-21
test/Integer/a15.ll.out less more
None ; ModuleID = ''
1
2 @b = constant i15 0 ; [#uses=0]
3 @c = constant i15 -2 ; [#uses=0]
4 @d = constant i15 0 ; [#uses=0]
5 @e = constant i15 -1 ; [#uses=0]
6 @f = constant i15 1 ; [#uses=0]
7 @g = constant i15 3 ; [#uses=0]
8 @h = constant i15 undef ; [#uses=0]
9 @i = constant i15 -16384 ; [#uses=0]
10 @j = constant i15 1 ; [#uses=0]
11 @l = constant i15 -1 ; [#uses=0]
12 @n = constant i15 -2 ; [#uses=0]
13 @q = constant i15 16381 ; [#uses=0]
14 @r = constant i15 0 ; [#uses=0]
15 @s = constant i15 2 ; [#uses=0]
16 @t = constant i15 1 ; [#uses=0]
17 @u = constant i15 0 ; [#uses=0]
18 @o = constant i15 0 ; [#uses=0]
19 @p = constant i15 -1 ; [#uses=0]
20 @v = constant i15 -1 ; [#uses=0]
+0
-25
test/Integer/a17.ll less more
None ; RUN: llvm-as %s -o - | llvm-dis > %t.ll
1 ; RUN: diff %t.ll %s.out
2
3 ; test 17 bits
4 ;
5 @b = constant i17 add(i17 131071, i17 1)
6 @c = constant i17 add(i17 131071, i17 131071)
7 @d = constant i17 add(i17 131064, i17 8)
8 @e = constant i17 sub(i17 0 , i17 1)
9 @f = constant i17 sub(i17 0 , i17 131071)
10 @g = constant i17 sub(i17 2 , i17 131071)
11
12 @h = constant i17 shl(i17 1 , i17 17)
13 @i = constant i17 shl(i17 1 , i17 16)
14 @j = constant i17 lshr(i17 131071 , i17 16)
15 @l = constant i17 ashr(i17 131071 , i17 16)
16
17 @n = constant i17 mul(i17 131071, i17 2)
18 @q = constant i17 sdiv(i17 -1, i17 65535)
19 @r = constant i17 udiv(i17 -1, i17 65535)
20 @s = constant i17 srem(i17 1, i17 131070)
21 @t = constant i17 urem(i17 131071,i17 -1)
22 @o = constant i17 trunc( i18 131072 to i17 )
23 @p = constant i17 trunc( i18 131071 to i17 )
24 @v = constant i17 srem(i17 -1, i17 15)
+0
-20
test/Integer/a17.ll.out less more
None ; ModuleID = ''
1
2 @b = constant i17 0 ; [#uses=0]
3 @c = constant i17 -2 ; [#uses=0]
4 @d = constant i17 0 ; [#uses=0]
5 @e = constant i17 -1 ; [#uses=0]
6 @f = constant i17 1 ; [#uses=0]
7 @g = constant i17 3 ; [#uses=0]
8 @h = constant i17 undef ; [#uses=0]
9 @i = constant i17 -65536 ; [#uses=0]
10 @j = constant i17 1 ; [#uses=0]
11 @l = constant i17 -1 ; [#uses=0]
12 @n = constant i17 -2 ; [#uses=0]
13 @q = constant i17 0 ; [#uses=0]
14 @r = constant i17 2 ; [#uses=0]
15 @s = constant i17 1 ; [#uses=0]
16 @t = constant i17 0 ; [#uses=0]
17 @o = constant i17 0 ; [#uses=0]
18 @p = constant i17 -1 ; [#uses=0]
19 @v = constant i17 -1 ; [#uses=0]
+0
-25
test/Integer/a31.ll less more
None ; RUN: llvm-as %s -o - | llvm-dis > %t.ll
1 ; RUN: diff %t.ll %s.out
2
3 ; test 31 bits
4 ;
5 @b = constant i31 add(i31 2147483647, i31 1)
6 @c = constant i31 add(i31 2147483647, i31 2147483647)
7 @d = constant i31 add(i31 2147483640, i31 8)
8 @e = constant i31 sub(i31 0 , i31 1)
9 @f = constant i31 sub(i31 0 , i31 2147483647)
10 @g = constant i31 sub(i31 2 , i31 2147483647)
11
12 @h = constant i31 shl(i31 1 , i31 31)
13 @i = constant i31 shl(i31 1 , i31 30)
14 @j = constant i31 lshr(i31 2147483647 , i31 30)
15 @l = constant i31 ashr(i31 2147483647 , i31 30)
16
17 @n = constant i31 mul(i31 2147483647, i31 2)
18 @q = constant i31 sdiv(i31 -1, i31 1073741823)
19 @r = constant i31 udiv(i31 -1, i31 1073741823)
20 @s = constant i31 srem(i31 1, i31 2147483646)
21 @t = constant i31 urem(i31 2147483647,i31 -1)
22 @o = constant i31 trunc( i32 2147483648 to i31 )
23 @p = constant i31 trunc( i32 2147483647 to i31 )
24 @u = constant i31 srem(i31 -3, i31 17)
+0
-20
test/Integer/a31.ll.out less more
None ; ModuleID = ''
1
2 @b = constant i31 0 ; [#uses=0]
3 @c = constant i31 -2 ; [#uses=0]
4 @d = constant i31 0 ; [#uses=0]
5 @e = constant i31 -1 ; [#uses=0]
6 @f = constant i31 1 ; [#uses=0]
7 @g = constant i31 3 ; [#uses=0]
8 @h = constant i31 undef ; [#uses=0]
9 @i = constant i31 -1073741824 ; [#uses=0]
10 @j = constant i31 1 ; [#uses=0]
11 @l = constant i31 -1 ; [#uses=0]
12 @n = constant i31 -2 ; [#uses=0]
13 @q = constant i31 0 ; [#uses=0]
14 @r = constant i31 2 ; [#uses=0]
15 @s = constant i31 1 ; [#uses=0]
16 @t = constant i31 0 ; [#uses=0]
17 @o = constant i31 0 ; [#uses=0]
18 @p = constant i31 -1 ; [#uses=0]
19 @u = constant i31 -3 ; [#uses=0]
+0
-26
test/Integer/a33.ll less more
None ; RUN: llvm-as %s -o - | llvm-dis > %t.ll
1 ; RUN: diff %t.ll %s.out
2
3 ; test 33 bits
4 ;
5 @b = constant i33 add(i33 8589934591, i33 1)
6 @c = constant i33 add(i33 8589934591, i33 8589934591)
7 @d = constant i33 add(i33 8589934584, i33 8)
8 @e = constant i33 sub(i33 0 , i33 1)
9 @f = constant i33 sub(i33 0 , i33 8589934591)
10 @g = constant i33 sub(i33 2 , i33 8589934591)
11
12 @h = constant i33 shl(i33 1 , i33 33)
13 @i = constant i33 shl(i33 1 , i33 32)
14 @j = constant i33 lshr(i33 8589934591 , i33 32)
15 @l = constant i33 ashr(i33 8589934591 , i33 32)
16
17 @n = constant i33 mul(i33 8589934591, i33 2)
18 @q = constant i33 sdiv(i33 -1, i33 4294967295)
19 @r = constant i33 udiv(i33 -1, i33 4294967295)
20 @s = constant i33 srem(i33 1, i33 8589934590)
21 @t = constant i33 urem(i33 8589934591,i33 -1)
22 @o = constant i33 trunc( i34 8589934592 to i33 )
23 @p = constant i33 trunc( i34 8589934591 to i33 )
24 @u = constant i33 srem(i33 -1, i33 17)
25
+0
-20
test/Integer/a33.ll.out less more
None ; ModuleID = ''
1
2 @b = constant i33 0 ; [#uses=0]
3 @c = constant i33 -2 ; [#uses=0]
4 @d = constant i33 0 ; [#uses=0]
5 @e = constant i33 -1 ; [#uses=0]
6 @f = constant i33 1 ; [#uses=0]
7 @g = constant i33 3 ; [#uses=0]
8 @h = constant i33 undef ; [#uses=0]
9 @i = constant i33 -4294967296 ; [#uses=0]
10 @j = constant i33 1 ; [#uses=0]
11 @l = constant i33 -1 ; [#uses=0]
12 @n = constant i33 -2 ; [#uses=0]
13 @q = constant i33 0 ; [#uses=0]
14 @r = constant i33 2 ; [#uses=0]
15 @s = constant i33 1 ; [#uses=0]
16 @t = constant i33 0 ; [#uses=0]
17 @o = constant i33 0 ; [#uses=0]
18 @p = constant i33 -1 ; [#uses=0]
19 @u = constant i33 -1 ; [#uses=0]
+0
-25
test/Integer/a63.ll less more
None ; RUN: llvm-as %s -o - | llvm-dis > %t.ll
1 ; RUN: diff %t.ll %s.out
2
3 ; test 63 bits
4 ;
5 @b = constant i63 add(i63 9223372036854775807, i63 1)
6 @c = constant i63 add(i63 9223372036854775807, i63 9223372036854775807)
7 @d = constant i63 add(i63 9223372036854775800, i63 8)
8 @e = constant i63 sub(i63 0 , i63 1)
9 @f = constant i63 sub(i63 0 , i63 9223372036854775807)
10 @g = constant i63 sub(i63 2 , i63 9223372036854775807)
11
12 @h = constant i63 shl(i63 1 , i63 63)
13 @i = constant i63 shl(i63 1 , i63 62)
14 @j = constant i63 lshr(i63 9223372036854775807 , i63 62)
15 @l = constant i63 ashr(i63 9223372036854775807 , i63 62)
16
17 @n = constant i63 mul(i63 9223372036854775807, i63 2)
18 @q = constant i63 sdiv(i63 -1, i63 4611686018427387903)
19 @u = constant i63 sdiv(i63 -1, i63 1)
20 @r = constant i63 udiv(i63 -1, i63 4611686018427387903)
21 @s = constant i63 srem(i63 3, i63 9223372036854775806)
22 @t = constant i63 urem(i63 9223372036854775807,i63 -1)
23 @o = constant i63 trunc( i64 9223372036854775808 to i63 )
24 @p = constant i63 trunc( i64 9223372036854775807 to i63 )
+0
-20
test/Integer/a63.ll.out less more
None ; ModuleID = ''
1
2 @b = constant i63 0 ; [#uses=0]
3 @c = constant i63 -2 ; [#uses=0]
4 @d = constant i63 0 ; [#uses=0]
5 @e = constant i63 -1 ; [#uses=0]
6 @f = constant i63 1 ; [#uses=0]
7 @g = constant i63 3 ; [#uses=0]
8 @h = constant i63 undef ; [#uses=0]
9 @i = constant i63 -4611686018427387904 ; [#uses=0]
10 @j = constant i63 1 ; [#uses=0]
11 @l = constant i63 -1 ; [#uses=0]
12 @n = constant i63 -2 ; [#uses=0]
13 @q = constant i63 0 ; [#uses=0]
14 @u = constant i63 -1 ; [#uses=0]
15 @r = constant i63 2 ; [#uses=0]
16 @s = constant i63 1 ; [#uses=0]
17 @t = constant i63 0 ; [#uses=0]
18 @o = constant i63 0 ; [#uses=0]
19 @p = constant i63 -1 ; [#uses=0]
+0
-31
test/Integer/a7.ll less more
None ; RUN: llvm-as %s -o - | llvm-dis > %t.ll
1 ; RUN: diff %t.ll %s.out
2
3 ; test 7 bits
4 ;
5 @b = constant i7 add(i7 127, i7 1)
6 @q = constant i7 add(i7 -64, i7 -1)
7 @c = constant i7 add(i7 127, i7 127)
8 @d = constant i7 add(i7 120, i7 8)
9 @e = constant i7 sub(i7 0 , i7 1)
10 @f = constant i7 sub(i7 0 , i7 127)
11 @g = constant i7 sub(i7 2 , i7 127)
12 @r = constant i7 sub(i7 -3, i7 120)
13 @s = constant i7 sub(i7 -3, i7 -8)
14
15 @h = constant i7 shl(i7 1 , i7 7)
16 @i = constant i7 shl(i7 1 , i7 6)
17 @j = constant i7 lshr(i7 127 , i7 6)
18 @l = constant i7 ashr(i7 127 , i7 6)
19 @m2= constant i7 ashr(i7 -1 , i7 3)
20
21 @n = constant i7 mul(i7 127, i7 2)
22 @t = constant i7 mul(i7 -63, i7 -2)
23 @u = constant i7 mul(i7 -32, i7 2)
24 @v = constant i7 sdiv(i7 -1, i7 63)
25 @w = constant i7 udiv(i7 -1, i7 63)
26 @x = constant i7 srem(i7 1 , i7 126)
27 @y = constant i7 urem(i7 127, i7 -1)
28 @o = constant i7 trunc( i8 128 to i7 )
29 @p = constant i7 trunc( i8 255 to i7 )
30
+0
-25
test/Integer/a7.ll.out less more
None ; ModuleID = ''
1
2 @b = constant i7 0 ; [#uses=0]
3 @q = constant i7 63 ; [#uses=0]
4 @c = constant i7 -2 ; [#uses=0]
5 @d = constant i7 0 ; [#uses=0]
6 @e = constant i7 -1 ; [#uses=0]
7 @f = constant i7 1 ; [#uses=0]
8 @g = constant i7 3 ; [#uses=0]
9 @r = constant i7 5 ; [#uses=0]
10 @s = constant i7 5 ; [#uses=0]
11 @h = constant i7 undef ; [#uses=0]
12 @i = constant i7 -64 ; [#uses=0]
13 @j = constant i7 1 ; [#uses=0]
14 @l = constant i7 -1 ; [#uses=0]
15 @m2 = constant i7 -1 ; [#uses=0]
16 @n = constant i7 -2 ; [#uses=0]
17 @t = constant i7 -2 ; [#uses=0]
18 @u = constant i7 -64 ; [#uses=0]
19 @v = constant i7 0 ; [#uses=0]
20 @w = constant i7 2 ; [#uses=0]
21 @x = constant i7 1 ; [#uses=0]
22 @y = constant i7 0 ; [#uses=0]
23 @o = constant i7 0 ; [#uses=0]
24 @p = constant i7 -1 ; [#uses=0]
+0
-25
test/Integer/a9.ll less more
None ; RUN: llvm-as %s -o - | llvm-dis > %t.ll
1 ; RUN: diff %t.ll %s.out
2
3 ; test 9 bits
4 ;
5 @b = constant i9 add(i9 511, i9 1)
6 @c = constant i9 add(i9 511, i9 511)
7 @d = constant i9 add(i9 504, i9 8)
8 @e = constant i9 sub(i9 0 , i9 1)
9 @f = constant i9 sub(i9 0 , i9 511)
10 @g = constant i9 sub(i9 2 , i9 511)
11
12 @h = constant i9 shl(i9 1 , i9 9)
13 @i = constant i9 shl(i9 1 , i9 8)
14 @j = constant i9 lshr(i9 511 , i9 8)
15 @l = constant i9 ashr(i9 511 , i9 8)
16
17 @n = constant i9 mul(i9 511, i9 2)
18 @q = constant i9 sdiv(i9 511, i9 2)
19 @r = constant i9 udiv(i9 511, i9 2)
20 @s = constant i9 urem(i9 511, i9 -1)
21 @t = constant i9 srem(i9 1, i9 510)
22 @o = constant i9 trunc( i10 512 to i9 )
23 @p = constant i9 trunc( i10 511 to i9 )
24
+0
-19
test/Integer/a9.ll.out less more
None ; ModuleID = ''
1
2 @b = constant i9 0 ; [#uses=0]
3 @c = constant i9 -2 ; [#uses=0]
4 @d = constant i9 0 ; [#uses=0]
5 @e = constant i9 -1 ; [#uses=0]
6 @f = constant i9 1 ; [#uses=0]
7 @g = constant i9 3 ; [#uses=0]
8 @h = constant i9 undef ; [#uses=0]
9 @i = constant i9 -256 ; [#uses=0]
10 @j = constant i9 1 ; [#uses=0]
11 @l = constant i9 -1 ; [#uses=0]
12 @n = constant i9 -2 ; [#uses=0]
13 @q = constant i9 0 ; [#uses=0]
14 @r = constant i9 255 ; [#uses=0]
15 @s = constant i9 0 ; [#uses=0]
16 @t = constant i9 1 ; [#uses=0]
17 @o = constant i9 0 ; [#uses=0]
18 @p = constant i9 -1 ; [#uses=0]