diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2006-12-31 06:02:00 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2006-12-31 06:02:00 +0000 |
| commit | deb4d5ab46cff6109a2f296bb9474e964da2ef46 (patch) | |
| tree | cfe9023c2d2687932470ed692b1a83622e30b79d /llvm/test/Regression/Transforms/ConstProp | |
| parent | e63b6518fa257f47f8b46c116ac683616d74cb36 (diff) | |
| download | bcm5719-llvm-deb4d5ab46cff6109a2f296bb9474e964da2ef46.tar.gz bcm5719-llvm-deb4d5ab46cff6109a2f296bb9474e964da2ef46.zip | |
For PR950:
Update the test suite to accommodate the change from signed integer types
to signless integer types. The changes were of only a few kinds:
1. Make sure llvm-upgrade is run on the source which does the bulk of the
changes automatically.
2. Change things like "grep 'int'" to "grep 'i32'"
3. In several tests bitcasting caused the same name to be reused in the
same type plane. These had to be manually fixed. The fix was (generally)
to leave the bitcast and provide the instruction with a new name. This
should not affect the semantics of the test. In a few cases, the
bitcasts were known to be superfluous and irrelevant to the test case
so they were removed.
4. One test case uses a bytecode file which needed to be updated to the
latest bytecode format.
llvm-svn: 32789
Diffstat (limited to 'llvm/test/Regression/Transforms/ConstProp')
4 files changed, 6 insertions, 6 deletions
diff --git a/llvm/test/Regression/Transforms/ConstProp/2006-11-30-vector-cast.ll b/llvm/test/Regression/Transforms/ConstProp/2006-11-30-vector-cast.ll index 5f52d6e1bc6..4a9d8a586fc 100644 --- a/llvm/test/Regression/Transforms/ConstProp/2006-11-30-vector-cast.ll +++ b/llvm/test/Regression/Transforms/ConstProp/2006-11-30-vector-cast.ll @@ -1,4 +1,4 @@ -; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | grep 'uint -1' && +; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | grep 'i32 -1' && ; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | not grep zeroinitializer < 4 x uint> %test() { diff --git a/llvm/test/Regression/Transforms/ConstProp/2006-12-01-bool-casts.ll b/llvm/test/Regression/Transforms/ConstProp/2006-12-01-bool-casts.ll index a2d6feb2609..fbc3111146a 100644 --- a/llvm/test/Regression/Transforms/ConstProp/2006-12-01-bool-casts.ll +++ b/llvm/test/Regression/Transforms/ConstProp/2006-12-01-bool-casts.ll @@ -1,5 +1,5 @@ -; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | grep 'ret int -1' && -; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | grep 'ret uint 1' +; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | grep 'ret i32 -1' && +; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | grep 'ret i32 1' int %test1() { %A = sext bool true to int diff --git a/llvm/test/Regression/Transforms/ConstProp/bitcast.ll b/llvm/test/Regression/Transforms/ConstProp/bitcast.ll index 9987ca79272..39cd53487f7 100644 --- a/llvm/test/Regression/Transforms/ConstProp/bitcast.ll +++ b/llvm/test/Regression/Transforms/ConstProp/bitcast.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | llvm-dis && -; RUN: llvm-as < %s | llvm-dis | grep 0x36A0000000000000 +; RUN: llvm-upgrade < %s | llvm-as | llvm-dis && +; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | grep 0x36A0000000000000 %A = global float bitcast (int 1 to float) diff --git a/llvm/test/Regression/Transforms/ConstProp/float-to-ptr-cast.ll b/llvm/test/Regression/Transforms/ConstProp/float-to-ptr-cast.ll index dc6c391976b..df641cd0c81 100644 --- a/llvm/test/Regression/Transforms/ConstProp/float-to-ptr-cast.ll +++ b/llvm/test/Regression/Transforms/ConstProp/float-to-ptr-cast.ll @@ -1,4 +1,4 @@ -; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | grep -F 'ret int* null' | wc -l | grep 2 +; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | grep -F 'ret i32* null' | wc -l | grep 2 int* %test1() { %X = cast float 0.0 to int* ret int* %X |

