diff options
author | Dan Gohman <gohman@apple.com> | 2009-08-12 17:23:50 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-08-12 17:23:50 +0000 |
commit | 683e922d299bdfa9ec609bd58a0eed20568303f1 (patch) | |
tree | df0b957ed51dc0206a04ac9731797c53e71d7324 /test/Integer | |
parent | 9f7d60f460151bf5ba9f90372618cd769216b314 (diff) | |
download | external_llvm-683e922d299bdfa9ec609bd58a0eed20568303f1.zip external_llvm-683e922d299bdfa9ec609bd58a0eed20568303f1.tar.gz external_llvm-683e922d299bdfa9ec609bd58a0eed20568303f1.tar.bz2 |
Make LLVM Assembly dramatically easier to read by aligning the comments,
using formatted_raw_ostream's PadToColumn.
Before:
bb1: ; preds = %bb
%2 = sext i32 %i.01 to i64 ; <i64> [#uses=1]
%3 = getelementptr double* %p, i64 %2 ; <double*> [#uses=1]
%4 = load double* %3, align 8 ; <double> [#uses=1]
%5 = fmul double %4, 1.100000e+00 ; <double> [#uses=1]
%6 = sext i32 %i.01 to i64 ; <i64> [#uses=1]
%7 = getelementptr double* %p, i64 %6 ; <double*> [#uses=1]
After:
bb1: ; preds = %bb
%2 = sext i32 %i.01 to i64 ; <i64> [#uses=1]
%3 = getelementptr double* %p, i64 %2 ; <double*> [#uses=1]
%4 = load double* %3, align 8 ; <double> [#uses=1]
%5 = fmul double %4, 1.100000e+00 ; <double> [#uses=1]
%6 = sext i32 %i.01 to i64 ; <i64> [#uses=1]
%7 = getelementptr double* %p, i64 %6 ; <double*> [#uses=1]
Several tests required whitespace adjustments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78816 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Integer')
-rw-r--r-- | test/Integer/a15.ll.out | 38 | ||||
-rw-r--r-- | test/Integer/a17.ll.out | 36 | ||||
-rw-r--r-- | test/Integer/a31.ll.out | 36 | ||||
-rw-r--r-- | test/Integer/a33.ll.out | 36 | ||||
-rw-r--r-- | test/Integer/a63.ll.out | 36 | ||||
-rw-r--r-- | test/Integer/a7.ll.out | 46 | ||||
-rw-r--r-- | test/Integer/a9.ll.out | 34 |
7 files changed, 131 insertions, 131 deletions
diff --git a/test/Integer/a15.ll.out b/test/Integer/a15.ll.out index e9eb800..74387cc 100644 --- a/test/Integer/a15.ll.out +++ b/test/Integer/a15.ll.out @@ -1,20 +1,20 @@ ; ModuleID = '<stdin>' -@b = constant i15 0 ; <i15*> [#uses=0] -@c = constant i15 -2 ; <i15*> [#uses=0] -@d = constant i15 0 ; <i15*> [#uses=0] -@e = constant i15 -1 ; <i15*> [#uses=0] -@f = constant i15 1 ; <i15*> [#uses=0] -@g = constant i15 3 ; <i15*> [#uses=0] -@h = constant i15 undef ; <i15*> [#uses=0] -@i = constant i15 -16384 ; <i15*> [#uses=0] -@j = constant i15 1 ; <i15*> [#uses=0] -@l = constant i15 -1 ; <i15*> [#uses=0] -@n = constant i15 -2 ; <i15*> [#uses=0] -@q = constant i15 16381 ; <i15*> [#uses=0] -@r = constant i15 0 ; <i15*> [#uses=0] -@s = constant i15 2 ; <i15*> [#uses=0] -@t = constant i15 1 ; <i15*> [#uses=0] -@u = constant i15 0 ; <i15*> [#uses=0] -@o = constant i15 0 ; <i15*> [#uses=0] -@p = constant i15 -1 ; <i15*> [#uses=0] -@v = constant i15 -1 ; <i15*> [#uses=0] +@b = constant i15 0 ; <i15*> [#uses=0] +@c = constant i15 -2 ; <i15*> [#uses=0] +@d = constant i15 0 ; <i15*> [#uses=0] +@e = constant i15 -1 ; <i15*> [#uses=0] +@f = constant i15 1 ; <i15*> [#uses=0] +@g = constant i15 3 ; <i15*> [#uses=0] +@h = constant i15 undef ; <i15*> [#uses=0] +@i = constant i15 -16384 ; <i15*> [#uses=0] +@j = constant i15 1 ; <i15*> [#uses=0] +@l = constant i15 -1 ; <i15*> [#uses=0] +@n = constant i15 -2 ; <i15*> [#uses=0] +@q = constant i15 16381 ; <i15*> [#uses=0] +@r = constant i15 0 ; <i15*> [#uses=0] +@s = constant i15 2 ; <i15*> [#uses=0] +@t = constant i15 1 ; <i15*> [#uses=0] +@u = constant i15 0 ; <i15*> [#uses=0] +@o = constant i15 0 ; <i15*> [#uses=0] +@p = constant i15 -1 ; <i15*> [#uses=0] +@v = constant i15 -1 ; <i15*> [#uses=0] diff --git a/test/Integer/a17.ll.out b/test/Integer/a17.ll.out index d24f62b..6ded845 100644 --- a/test/Integer/a17.ll.out +++ b/test/Integer/a17.ll.out @@ -1,19 +1,19 @@ ; ModuleID = '<stdin>' -@b = constant i17 0 ; <i17*> [#uses=0] -@c = constant i17 -2 ; <i17*> [#uses=0] -@d = constant i17 0 ; <i17*> [#uses=0] -@e = constant i17 -1 ; <i17*> [#uses=0] -@f = constant i17 1 ; <i17*> [#uses=0] -@g = constant i17 3 ; <i17*> [#uses=0] -@h = constant i17 undef ; <i17*> [#uses=0] -@i = constant i17 -65536 ; <i17*> [#uses=0] -@j = constant i17 1 ; <i17*> [#uses=0] -@l = constant i17 -1 ; <i17*> [#uses=0] -@n = constant i17 -2 ; <i17*> [#uses=0] -@q = constant i17 0 ; <i17*> [#uses=0] -@r = constant i17 2 ; <i17*> [#uses=0] -@s = constant i17 1 ; <i17*> [#uses=0] -@t = constant i17 0 ; <i17*> [#uses=0] -@o = constant i17 0 ; <i17*> [#uses=0] -@p = constant i17 -1 ; <i17*> [#uses=0] -@v = constant i17 -1 ; <i17*> [#uses=0] +@b = constant i17 0 ; <i17*> [#uses=0] +@c = constant i17 -2 ; <i17*> [#uses=0] +@d = constant i17 0 ; <i17*> [#uses=0] +@e = constant i17 -1 ; <i17*> [#uses=0] +@f = constant i17 1 ; <i17*> [#uses=0] +@g = constant i17 3 ; <i17*> [#uses=0] +@h = constant i17 undef ; <i17*> [#uses=0] +@i = constant i17 -65536 ; <i17*> [#uses=0] +@j = constant i17 1 ; <i17*> [#uses=0] +@l = constant i17 -1 ; <i17*> [#uses=0] +@n = constant i17 -2 ; <i17*> [#uses=0] +@q = constant i17 0 ; <i17*> [#uses=0] +@r = constant i17 2 ; <i17*> [#uses=0] +@s = constant i17 1 ; <i17*> [#uses=0] +@t = constant i17 0 ; <i17*> [#uses=0] +@o = constant i17 0 ; <i17*> [#uses=0] +@p = constant i17 -1 ; <i17*> [#uses=0] +@v = constant i17 -1 ; <i17*> [#uses=0] diff --git a/test/Integer/a31.ll.out b/test/Integer/a31.ll.out index fb8d250..c7892ea 100644 --- a/test/Integer/a31.ll.out +++ b/test/Integer/a31.ll.out @@ -1,19 +1,19 @@ ; ModuleID = '<stdin>' -@b = constant i31 0 ; <i31*> [#uses=0] -@c = constant i31 -2 ; <i31*> [#uses=0] -@d = constant i31 0 ; <i31*> [#uses=0] -@e = constant i31 -1 ; <i31*> [#uses=0] -@f = constant i31 1 ; <i31*> [#uses=0] -@g = constant i31 3 ; <i31*> [#uses=0] -@h = constant i31 undef ; <i31*> [#uses=0] -@i = constant i31 -1073741824 ; <i31*> [#uses=0] -@j = constant i31 1 ; <i31*> [#uses=0] -@l = constant i31 -1 ; <i31*> [#uses=0] -@n = constant i31 -2 ; <i31*> [#uses=0] -@q = constant i31 0 ; <i31*> [#uses=0] -@r = constant i31 2 ; <i31*> [#uses=0] -@s = constant i31 1 ; <i31*> [#uses=0] -@t = constant i31 0 ; <i31*> [#uses=0] -@o = constant i31 0 ; <i31*> [#uses=0] -@p = constant i31 -1 ; <i31*> [#uses=0] -@u = constant i31 -3 ; <i31*> [#uses=0] +@b = constant i31 0 ; <i31*> [#uses=0] +@c = constant i31 -2 ; <i31*> [#uses=0] +@d = constant i31 0 ; <i31*> [#uses=0] +@e = constant i31 -1 ; <i31*> [#uses=0] +@f = constant i31 1 ; <i31*> [#uses=0] +@g = constant i31 3 ; <i31*> [#uses=0] +@h = constant i31 undef ; <i31*> [#uses=0] +@i = constant i31 -1073741824 ; <i31*> [#uses=0] +@j = constant i31 1 ; <i31*> [#uses=0] +@l = constant i31 -1 ; <i31*> [#uses=0] +@n = constant i31 -2 ; <i31*> [#uses=0] +@q = constant i31 0 ; <i31*> [#uses=0] +@r = constant i31 2 ; <i31*> [#uses=0] +@s = constant i31 1 ; <i31*> [#uses=0] +@t = constant i31 0 ; <i31*> [#uses=0] +@o = constant i31 0 ; <i31*> [#uses=0] +@p = constant i31 -1 ; <i31*> [#uses=0] +@u = constant i31 -3 ; <i31*> [#uses=0] diff --git a/test/Integer/a33.ll.out b/test/Integer/a33.ll.out index f495d0d..6f723b4 100644 --- a/test/Integer/a33.ll.out +++ b/test/Integer/a33.ll.out @@ -1,19 +1,19 @@ ; ModuleID = '<stdin>' -@b = constant i33 0 ; <i33*> [#uses=0] -@c = constant i33 -2 ; <i33*> [#uses=0] -@d = constant i33 0 ; <i33*> [#uses=0] -@e = constant i33 -1 ; <i33*> [#uses=0] -@f = constant i33 1 ; <i33*> [#uses=0] -@g = constant i33 3 ; <i33*> [#uses=0] -@h = constant i33 undef ; <i33*> [#uses=0] -@i = constant i33 -4294967296 ; <i33*> [#uses=0] -@j = constant i33 1 ; <i33*> [#uses=0] -@l = constant i33 -1 ; <i33*> [#uses=0] -@n = constant i33 -2 ; <i33*> [#uses=0] -@q = constant i33 0 ; <i33*> [#uses=0] -@r = constant i33 2 ; <i33*> [#uses=0] -@s = constant i33 1 ; <i33*> [#uses=0] -@t = constant i33 0 ; <i33*> [#uses=0] -@o = constant i33 0 ; <i33*> [#uses=0] -@p = constant i33 -1 ; <i33*> [#uses=0] -@u = constant i33 -1 ; <i33*> [#uses=0] +@b = constant i33 0 ; <i33*> [#uses=0] +@c = constant i33 -2 ; <i33*> [#uses=0] +@d = constant i33 0 ; <i33*> [#uses=0] +@e = constant i33 -1 ; <i33*> [#uses=0] +@f = constant i33 1 ; <i33*> [#uses=0] +@g = constant i33 3 ; <i33*> [#uses=0] +@h = constant i33 undef ; <i33*> [#uses=0] +@i = constant i33 -4294967296 ; <i33*> [#uses=0] +@j = constant i33 1 ; <i33*> [#uses=0] +@l = constant i33 -1 ; <i33*> [#uses=0] +@n = constant i33 -2 ; <i33*> [#uses=0] +@q = constant i33 0 ; <i33*> [#uses=0] +@r = constant i33 2 ; <i33*> [#uses=0] +@s = constant i33 1 ; <i33*> [#uses=0] +@t = constant i33 0 ; <i33*> [#uses=0] +@o = constant i33 0 ; <i33*> [#uses=0] +@p = constant i33 -1 ; <i33*> [#uses=0] +@u = constant i33 -1 ; <i33*> [#uses=0] diff --git a/test/Integer/a63.ll.out b/test/Integer/a63.ll.out index c770608..21cef72 100644 --- a/test/Integer/a63.ll.out +++ b/test/Integer/a63.ll.out @@ -1,19 +1,19 @@ ; ModuleID = '<stdin>' -@b = constant i63 0 ; <i63*> [#uses=0] -@c = constant i63 -2 ; <i63*> [#uses=0] -@d = constant i63 0 ; <i63*> [#uses=0] -@e = constant i63 -1 ; <i63*> [#uses=0] -@f = constant i63 1 ; <i63*> [#uses=0] -@g = constant i63 3 ; <i63*> [#uses=0] -@h = constant i63 undef ; <i63*> [#uses=0] -@i = constant i63 -4611686018427387904 ; <i63*> [#uses=0] -@j = constant i63 1 ; <i63*> [#uses=0] -@l = constant i63 -1 ; <i63*> [#uses=0] -@n = constant i63 -2 ; <i63*> [#uses=0] -@q = constant i63 0 ; <i63*> [#uses=0] -@u = constant i63 -1 ; <i63*> [#uses=0] -@r = constant i63 2 ; <i63*> [#uses=0] -@s = constant i63 1 ; <i63*> [#uses=0] -@t = constant i63 0 ; <i63*> [#uses=0] -@o = constant i63 0 ; <i63*> [#uses=0] -@p = constant i63 -1 ; <i63*> [#uses=0] +@b = constant i63 0 ; <i63*> [#uses=0] +@c = constant i63 -2 ; <i63*> [#uses=0] +@d = constant i63 0 ; <i63*> [#uses=0] +@e = constant i63 -1 ; <i63*> [#uses=0] +@f = constant i63 1 ; <i63*> [#uses=0] +@g = constant i63 3 ; <i63*> [#uses=0] +@h = constant i63 undef ; <i63*> [#uses=0] +@i = constant i63 -4611686018427387904 ; <i63*> [#uses=0] +@j = constant i63 1 ; <i63*> [#uses=0] +@l = constant i63 -1 ; <i63*> [#uses=0] +@n = constant i63 -2 ; <i63*> [#uses=0] +@q = constant i63 0 ; <i63*> [#uses=0] +@u = constant i63 -1 ; <i63*> [#uses=0] +@r = constant i63 2 ; <i63*> [#uses=0] +@s = constant i63 1 ; <i63*> [#uses=0] +@t = constant i63 0 ; <i63*> [#uses=0] +@o = constant i63 0 ; <i63*> [#uses=0] +@p = constant i63 -1 ; <i63*> [#uses=0] diff --git a/test/Integer/a7.ll.out b/test/Integer/a7.ll.out index a6ed288..78a114c 100644 --- a/test/Integer/a7.ll.out +++ b/test/Integer/a7.ll.out @@ -1,24 +1,24 @@ ; ModuleID = '<stdin>' -@b = constant i7 0 ; <i7*> [#uses=0] -@q = constant i7 63 ; <i7*> [#uses=0] -@c = constant i7 -2 ; <i7*> [#uses=0] -@d = constant i7 0 ; <i7*> [#uses=0] -@e = constant i7 -1 ; <i7*> [#uses=0] -@f = constant i7 1 ; <i7*> [#uses=0] -@g = constant i7 3 ; <i7*> [#uses=0] -@r = constant i7 5 ; <i7*> [#uses=0] -@s = constant i7 5 ; <i7*> [#uses=0] -@h = constant i7 undef ; <i7*> [#uses=0] -@i = constant i7 -64 ; <i7*> [#uses=0] -@j = constant i7 1 ; <i7*> [#uses=0] -@l = constant i7 -1 ; <i7*> [#uses=0] -@m2 = constant i7 -1 ; <i7*> [#uses=0] -@n = constant i7 -2 ; <i7*> [#uses=0] -@t = constant i7 -2 ; <i7*> [#uses=0] -@u = constant i7 -64 ; <i7*> [#uses=0] -@v = constant i7 0 ; <i7*> [#uses=0] -@w = constant i7 2 ; <i7*> [#uses=0] -@x = constant i7 1 ; <i7*> [#uses=0] -@y = constant i7 0 ; <i7*> [#uses=0] -@o = constant i7 0 ; <i7*> [#uses=0] -@p = constant i7 -1 ; <i7*> [#uses=0] +@b = constant i7 0 ; <i7*> [#uses=0] +@q = constant i7 63 ; <i7*> [#uses=0] +@c = constant i7 -2 ; <i7*> [#uses=0] +@d = constant i7 0 ; <i7*> [#uses=0] +@e = constant i7 -1 ; <i7*> [#uses=0] +@f = constant i7 1 ; <i7*> [#uses=0] +@g = constant i7 3 ; <i7*> [#uses=0] +@r = constant i7 5 ; <i7*> [#uses=0] +@s = constant i7 5 ; <i7*> [#uses=0] +@h = constant i7 undef ; <i7*> [#uses=0] +@i = constant i7 -64 ; <i7*> [#uses=0] +@j = constant i7 1 ; <i7*> [#uses=0] +@l = constant i7 -1 ; <i7*> [#uses=0] +@m2 = constant i7 -1 ; <i7*> [#uses=0] +@n = constant i7 -2 ; <i7*> [#uses=0] +@t = constant i7 -2 ; <i7*> [#uses=0] +@u = constant i7 -64 ; <i7*> [#uses=0] +@v = constant i7 0 ; <i7*> [#uses=0] +@w = constant i7 2 ; <i7*> [#uses=0] +@x = constant i7 1 ; <i7*> [#uses=0] +@y = constant i7 0 ; <i7*> [#uses=0] +@o = constant i7 0 ; <i7*> [#uses=0] +@p = constant i7 -1 ; <i7*> [#uses=0] diff --git a/test/Integer/a9.ll.out b/test/Integer/a9.ll.out index 6525b9a..fd329d4 100644 --- a/test/Integer/a9.ll.out +++ b/test/Integer/a9.ll.out @@ -1,18 +1,18 @@ ; ModuleID = '<stdin>' -@b = constant i9 0 ; <i9*> [#uses=0] -@c = constant i9 -2 ; <i9*> [#uses=0] -@d = constant i9 0 ; <i9*> [#uses=0] -@e = constant i9 -1 ; <i9*> [#uses=0] -@f = constant i9 1 ; <i9*> [#uses=0] -@g = constant i9 3 ; <i9*> [#uses=0] -@h = constant i9 undef ; <i9*> [#uses=0] -@i = constant i9 -256 ; <i9*> [#uses=0] -@j = constant i9 1 ; <i9*> [#uses=0] -@l = constant i9 -1 ; <i9*> [#uses=0] -@n = constant i9 -2 ; <i9*> [#uses=0] -@q = constant i9 0 ; <i9*> [#uses=0] -@r = constant i9 255 ; <i9*> [#uses=0] -@s = constant i9 0 ; <i9*> [#uses=0] -@t = constant i9 1 ; <i9*> [#uses=0] -@o = constant i9 0 ; <i9*> [#uses=0] -@p = constant i9 -1 ; <i9*> [#uses=0] +@b = constant i9 0 ; <i9*> [#uses=0] +@c = constant i9 -2 ; <i9*> [#uses=0] +@d = constant i9 0 ; <i9*> [#uses=0] +@e = constant i9 -1 ; <i9*> [#uses=0] +@f = constant i9 1 ; <i9*> [#uses=0] +@g = constant i9 3 ; <i9*> [#uses=0] +@h = constant i9 undef ; <i9*> [#uses=0] +@i = constant i9 -256 ; <i9*> [#uses=0] +@j = constant i9 1 ; <i9*> [#uses=0] +@l = constant i9 -1 ; <i9*> [#uses=0] +@n = constant i9 -2 ; <i9*> [#uses=0] +@q = constant i9 0 ; <i9*> [#uses=0] +@r = constant i9 255 ; <i9*> [#uses=0] +@s = constant i9 0 ; <i9*> [#uses=0] +@t = constant i9 1 ; <i9*> [#uses=0] +@o = constant i9 0 ; <i9*> [#uses=0] +@p = constant i9 -1 ; <i9*> [#uses=0] |