summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 14:35:57 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 14:35:57 +0000
commit73fcd3d9625e579cbd205817ff6731e8ffb5aae2 (patch)
treef9a3f1a6c799e7acbe209ad10a392a6207bd8d46
parent460e59034b001a4a69cc0d9354a1e30e4b553c2d (diff)
downloadbcm5719-llvm-73fcd3d9625e579cbd205817ff6731e8ffb5aae2.tar.gz
bcm5719-llvm-73fcd3d9625e579cbd205817ff6731e8ffb5aae2.zip
Temporary disable 16 bit bswap
llvm-svn: 76063
-rw-r--r--llvm/lib/Target/SystemZ/SystemZInstrInfo.td7
-rw-r--r--llvm/test/CodeGen/SystemZ/11-BSwap.ll1
2 files changed, 5 insertions, 3 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZInstrInfo.td b/llvm/lib/Target/SystemZ/SystemZInstrInfo.td
index f45ef458b54..8985169e6cf 100644
--- a/llvm/lib/Target/SystemZ/SystemZInstrInfo.td
+++ b/llvm/lib/Target/SystemZ/SystemZInstrInfo.td
@@ -494,9 +494,10 @@ def BSWAP64rr : RREI<0xB90F,
"lrvgr\t{$dst, $src}",
[(set GR64:$dst, (bswap GR64:$src))]>;
-def BSWAP16rm : RXYI<0x1FE3, (outs GR32:$dst), (ins rriaddr:$src),
- "lrvh\t{$dst, $src}",
- [(set GR32:$dst, (bswap (extloadi32i16 rriaddr:$src)))]>;
+// FIXME: this is invalid pattern for big-endian
+//def BSWAP16rm : RXYI<0x1FE3, (outs GR32:$dst), (ins rriaddr:$src),
+// "lrvh\t{$dst, $src}",
+// [(set GR32:$dst, (bswap (extloadi32i16 rriaddr:$src)))]>;
def BSWAP32rm : RXYI<0x1EE3, (outs GR32:$dst), (ins rriaddr:$src),
"lrv\t{$dst, $src}",
[(set GR32:$dst, (bswap (load rriaddr:$src)))]>;
diff --git a/llvm/test/CodeGen/SystemZ/11-BSwap.ll b/llvm/test/CodeGen/SystemZ/11-BSwap.ll
index d04fa42bc18..44708030ebf 100644
--- a/llvm/test/CodeGen/SystemZ/11-BSwap.ll
+++ b/llvm/test/CodeGen/SystemZ/11-BSwap.ll
@@ -1,3 +1,4 @@
+; XFAIL
; RUN: llvm-as < %s | llc | grep lrvr | count 2
; RUN: llvm-as < %s | llc | grep lrvgr | count 1
; RUN: llvm-as < %s | llc | grep lrvh | count 1
OpenPOWER on IntegriCloud