diff options
author | Richard Sandiford <rsandifo@linux.vnet.ibm.com> | 2013-09-16 09:03:10 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@linux.vnet.ibm.com> | 2013-09-16 09:03:10 +0000 |
commit | 219d2b8695d4322b7a3d6b9892880e65915106a7 (patch) | |
tree | 258f9c7ef657acf4759a8888b78921b8b9658edf /test/CodeGen/SystemZ | |
parent | 5fefc00bac5ddd6f0700e71169bd7823af6b7c65 (diff) | |
download | external_llvm-219d2b8695d4322b7a3d6b9892880e65915106a7.zip external_llvm-219d2b8695d4322b7a3d6b9892880e65915106a7.tar.gz external_llvm-219d2b8695d4322b7a3d6b9892880e65915106a7.tar.bz2 |
[SystemZ] Improve extload handling
The port originally had special patterns for extload, mapping them to the
same instructions as sextload. It seemed neater to have patterns that
match "an extension that is allowed to be signed" and "an extension that
is allowed to be unsigned".
This was originally meant to be a clean-up, but it does improve the handling
of promoted integers a little, as shown by args-06.ll.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190777 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/SystemZ')
-rw-r--r-- | test/CodeGen/SystemZ/args-06.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/SystemZ/args-06.ll b/test/CodeGen/SystemZ/args-06.ll index a89fe9b..644fcec9 100644 --- a/test/CodeGen/SystemZ/args-06.ll +++ b/test/CodeGen/SystemZ/args-06.ll @@ -27,8 +27,8 @@ define i16 @f2(i16 %a, i16 %b, i16 %c, i16 %d, i16 %e, i16 %f, i16 %g) { ; CHECK: ar %r2, %r4 ; CHECK: ar %r2, %r5 ; CHECK: ar %r2, %r6 -; CHECK: lh {{%r[0-5]}}, 166(%r15) -; CHECK: lh {{%r[0-5]}}, 174(%r15) +; CHECK: ah %r2, 166(%r15) +; CHECK: ah %r2, 174(%r15) ; CHECK: br %r14 %addb = add i16 %a, %b %addc = add i16 %addb, %c |