diff options
author | Chris Lattner <sabre@nondot.org> | 2005-01-31 05:17:31 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-01-31 05:17:31 +0000 |
commit | 2a73a0bbb130fc00a59958acab12bc950985f4b0 (patch) | |
tree | b3b239bb6f7fb1c0925db62c79c45d3d73f98c78 /test/Transforms/InstCombine/cast.ll | |
parent | f9527850e679646275c810c7822127f48144ccc1 (diff) | |
download | llvm-2a73a0bbb130fc00a59958acab12bc950985f4b0.tar.gz llvm-2a73a0bbb130fc00a59958acab12bc950985f4b0.tar.bz2 llvm-2a73a0bbb130fc00a59958acab12bc950985f4b0.tar.xz |
Rename these to start with %c, as they are the only ones that are checked.
No change to the tests themselves.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19948 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/cast.ll')
-rw-r--r-- | test/Transforms/InstCombine/cast.ll | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/test/Transforms/InstCombine/cast.ll b/test/Transforms/InstCombine/cast.ll index bf7d405059..dc3f6a7201 100644 --- a/test/Transforms/InstCombine/cast.ll +++ b/test/Transforms/InstCombine/cast.ll @@ -118,40 +118,40 @@ short %test18(sbyte %tmp3) { } bool %test19(int %X) { - %Y = cast int %X to long - %Z = setlt long %Y, 12345 + %c = cast int %X to long + %Z = setlt long %c, 12345 ret bool %Z } bool %test20(bool %B) { - %C = cast bool %B to int - %D = setlt int %C, -1 + %c = cast bool %B to int + %D = setlt int %c, -1 ret bool %D ;; false } uint %test21(uint %X) { - %Y = cast uint %X to sbyte - %Z = cast sbyte %Y to uint ;; sext -> zext -> and -> nop - %RV = and uint %Z, 255 + %c1 = cast uint %X to sbyte + %c2 = cast sbyte %c1 to uint ;; sext -> zext -> and -> nop + %RV = and uint %c2, 255 ret uint %RV } uint %test22(uint %X) { - %Y = cast uint %X to sbyte - %Z = cast sbyte %Y to uint ;; sext -> zext -> and -> nop - %RV = shl uint %Z, ubyte 24 + %c1 = cast uint %X to sbyte + %c2 = cast sbyte %c1 to uint ;; sext -> zext -> and -> nop + %RV = shl uint %c2, ubyte 24 ret uint %RV } int %test23(int %X) { - %Y = cast int %X to ushort ;; Turn into an AND even though X - %Z = cast ushort %Y to int ;; and Z are signed. - ret int %Z + %c1 = cast int %X to ushort ;; Turn into an AND even though X + %c2 = cast ushort %c1 to int ;; and Z are signed. + ret int %c2 } bool %test24(bool %C) { %X = select bool %C, uint 14, uint 1234 - %Y = cast uint %X to bool ;; Fold cast into select - ret bool %Y + %c = cast uint %X to bool ;; Fold cast into select + ret bool %c } |