diff options
author | Richard Sandiford <rsandifo@linux.vnet.ibm.com> | 2013-07-11 09:10:09 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@linux.vnet.ibm.com> | 2013-07-11 09:10:09 +0000 |
commit | 261e2877ebcb3c6139ddcc67992662494232b096 (patch) | |
tree | 76654e9edb8c1c3b668633c9ee83a39137f36347 /test/CodeGen/SystemZ | |
parent | b3cabb44c32b5a3aba9b4d23aae9723d498ea7a9 (diff) | |
download | external_llvm-261e2877ebcb3c6139ddcc67992662494232b096.zip external_llvm-261e2877ebcb3c6139ddcc67992662494232b096.tar.gz external_llvm-261e2877ebcb3c6139ddcc67992662494232b096.tar.bz2 |
[SystemZ] Use zeroing form of RISBG for shift-and-AND sequences
Extend r186072 to handle shifts and ANDs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186073 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/SystemZ')
-rw-r--r-- | test/CodeGen/SystemZ/fp-move-02.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/SystemZ/fp-move-02.ll b/test/CodeGen/SystemZ/fp-move-02.ll index a02c856..f828b2d 100644 --- a/test/CodeGen/SystemZ/fp-move-02.ll +++ b/test/CodeGen/SystemZ/fp-move-02.ll @@ -16,7 +16,7 @@ define float @f1(i32 %a) { ; surrounding code. define float @f2(i64 %big) { ; CHECK: f2: -; CHECK: sllg [[REGISTER:%r[0-5]]], %r2, 31 +; CHECK: risbg [[REGISTER:%r[0-5]]], %r2, 0, 159, 31 ; CHECK: ldgr %f0, [[REGISTER]] %shift = lshr i64 %big, 1 %a = trunc i64 %shift to i32 @@ -27,7 +27,7 @@ define float @f2(i64 %big) { ; Another example of the same thing. define float @f3(i64 %big) { ; CHECK: f3: -; CHECK: sllg [[REGISTER:%r[0-5]]], %r2, 2 +; CHECK: risbg [[REGISTER:%r[0-5]]], %r2, 0, 159, 2 ; CHECK: ldgr %f0, [[REGISTER]] %shift = ashr i64 %big, 30 %a = trunc i64 %shift to i32 |