aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/PowerPC/rotl.ll
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-01-02 05:53:06 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-01-02 05:53:06 +0000
commit8aabc9eb23cd0f09a865e71a052eb2f6f51ea6df (patch)
treee29ccb6d0449ed9b53cd674f71ba931e7d31590e /test/CodeGen/PowerPC/rotl.ll
parenta14c3f11accf900fbde1af574a62258d4b246a2e (diff)
downloadexternal_llvm-8aabc9eb23cd0f09a865e71a052eb2f6f51ea6df.zip
external_llvm-8aabc9eb23cd0f09a865e71a052eb2f6f51ea6df.tar.gz
external_llvm-8aabc9eb23cd0f09a865e71a052eb2f6f51ea6df.tar.bz2
For PR1070:
Revert previous patch now that llvm-upgrade can handle collapsed type plane conversion properly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32814 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/rotl.ll')
-rw-r--r--test/CodeGen/PowerPC/rotl.ll20
1 files changed, 12 insertions, 8 deletions
diff --git a/test/CodeGen/PowerPC/rotl.ll b/test/CodeGen/PowerPC/rotl.ll
index e2045fe..fc3a6bc 100644
--- a/test/CodeGen/PowerPC/rotl.ll
+++ b/test/CodeGen/PowerPC/rotl.ll
@@ -7,11 +7,12 @@ implementation ; Functions:
int %rotlw(uint %x, int %sh) {
entry:
%tmp.3 = cast int %sh to ubyte ; <ubyte> [#uses=1]
- %x.s = cast uint %x to int ; <int> [#uses=1]
+ %x = cast uint %x to int ; <int> [#uses=1]
%tmp.7 = sub int 32, %sh ; <int> [#uses=1]
%tmp.9 = cast int %tmp.7 to ubyte ; <ubyte> [#uses=1]
%tmp.10 = shr uint %x, ubyte %tmp.9 ; <uint> [#uses=1]
- %tmp.4 = shl int %x.s, ubyte %tmp.3 ; <int> [#uses=1]
+ %tmp.4 = shl int %x, ubyte %tmp.3 ; <int> [#uses=1]
+ %tmp.10 = cast uint %tmp.10 to int ; <int> [#uses=1]
%tmp.12 = or int %tmp.10, %tmp.4 ; <int> [#uses=1]
ret int %tmp.12
}
@@ -22,17 +23,19 @@ entry:
%tmp.4 = shr uint %x, ubyte %tmp.3 ; <uint> [#uses=1]
%tmp.7 = sub int 32, %sh ; <int> [#uses=1]
%tmp.9 = cast int %tmp.7 to ubyte ; <ubyte> [#uses=1]
- %x.s = cast uint %x to int ; <int> [#uses=1]
- %tmp.10 = shl int %x.s, ubyte %tmp.9 ; <int> [#uses=1]
+ %x = cast uint %x to int ; <int> [#uses=1]
+ %tmp.4 = cast uint %tmp.4 to int ; <int> [#uses=1]
+ %tmp.10 = shl int %x, ubyte %tmp.9 ; <int> [#uses=1]
%tmp.12 = or int %tmp.4, %tmp.10 ; <int> [#uses=1]
ret int %tmp.12
}
int %rotlwi(uint %x) {
entry:
- %x.s = cast uint %x to int ; <int> [#uses=1]
+ %x = cast uint %x to int ; <int> [#uses=1]
%tmp.7 = shr uint %x, ubyte 27 ; <uint> [#uses=1]
- %tmp.3 = shl int %x.s, ubyte 5 ; <int> [#uses=1]
+ %tmp.3 = shl int %x, ubyte 5 ; <int> [#uses=1]
+ %tmp.7 = cast uint %tmp.7 to int ; <int> [#uses=1]
%tmp.9 = or int %tmp.3, %tmp.7 ; <int> [#uses=1]
ret int %tmp.9
}
@@ -40,8 +43,9 @@ entry:
int %rotrwi(uint %x) {
entry:
%tmp.3 = shr uint %x, ubyte 5 ; <uint> [#uses=1]
- %x.s = cast uint %x to int ; <int> [#uses=1]
- %tmp.7 = shl int %x.s, ubyte 27 ; <int> [#uses=1]
+ %x = cast uint %x to int ; <int> [#uses=1]
+ %tmp.3 = cast uint %tmp.3 to int ; <int> [#uses=1]
+ %tmp.7 = shl int %x, ubyte 27 ; <int> [#uses=1]
%tmp.9 = or int %tmp.3, %tmp.7 ; <int> [#uses=1]
ret int %tmp.9
}